chrome-devtools-frontend 1.0.944427 → 1.0.945677
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/gni/devtools_grd_files.gni +4 -0
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/Images/src/circled_exclamation_icon.svg +3 -0
- package/front_end/core/common/ParsedURL.ts +1 -1
- package/front_end/core/host/UserMetrics.ts +3 -1
- package/front_end/core/i18n/i18nImpl.ts +7 -4
- package/front_end/core/i18n/locales/en-US.json +3 -60
- package/front_end/core/i18n/locales/en-XL.json +15 -72
- package/front_end/core/protocol_client/NodeURL.ts +1 -0
- package/front_end/core/sdk/CSSMetadata.ts +0 -1
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -3
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -3
- package/front_end/core/sdk/Cookie.ts +17 -0
- package/front_end/core/sdk/CookieModel.ts +1 -0
- package/front_end/core/sdk/DebuggerModel.ts +5 -4
- package/front_end/core/sdk/NetworkManager.ts +4 -1
- package/front_end/core/sdk/NetworkRequest.ts +2 -2
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/Script.ts +2 -3
- package/front_end/entrypoints/main/MainImpl.ts +6 -0
- package/front_end/generated/protocol.d.ts +0 -4
- package/front_end/models/bindings/BreakpointManager.ts +3 -4
- package/front_end/models/bindings/ResourceMapping.ts +1 -2
- package/front_end/models/bindings/StylesSourceMapping.ts +1 -2
- package/front_end/models/emulation/EmulatedDevices.ts +2 -4
- package/front_end/models/persistence/IsolatedFileSystem.ts +7 -6
- package/front_end/models/persistence/PersistenceActions.ts +4 -1
- package/front_end/models/persistence/PlatformFileSystem.ts +3 -4
- package/front_end/models/text_utils/ContentProvider.ts +1 -2
- package/front_end/models/text_utils/StaticContentProvider.ts +2 -3
- package/front_end/models/timeline_model/TimelineJSProfile.ts +16 -3
- package/front_end/models/timeline_model/TimelineModel.ts +1 -0
- package/front_end/models/workspace/UISourceCode.ts +2 -2
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +20 -6
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +2 -0
- package/front_end/panels/application/BackForwardCacheStrings.ts +15 -75
- package/front_end/panels/application/BackForwardCacheView.ts +8 -1
- package/front_end/panels/application/ReportingApiView.ts +15 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +63 -4
- package/front_end/panels/application/components/FrameDetailsView.ts +21 -34
- package/front_end/panels/changes/ChangesView.ts +8 -7
- package/front_end/panels/elements/StyleEditorWidget.ts +7 -7
- package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -15
- package/front_end/panels/elements/StylesSidebarPane.ts +35 -9
- package/front_end/panels/emulation/DeviceModeView.ts +3 -0
- package/front_end/panels/help/ReleaseNoteText.ts +3 -1
- package/front_end/panels/network/NetworkItemView.ts +7 -1
- package/front_end/panels/profiler/heapProfiler.css +2 -5
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +0 -1
- package/front_end/panels/timeline/TimelineController.ts +3 -0
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -34
- package/front_end/panels/timeline/TimelineUIUtils.ts +51 -3
- package/front_end/panels/webauthn/WebauthnPane.ts +31 -32
- package/front_end/services/window_bounds/WindowBoundsService.ts +27 -0
- package/front_end/services/window_bounds/window_bounds.ts +9 -0
- package/front_end/third_party/acorn/README.chromium +2 -2
- package/front_end/third_party/acorn/acorn.ts +1 -1
- package/front_end/third_party/acorn/package/CHANGELOG.md +31 -1
- package/front_end/third_party/acorn/package/README.md +1 -1
- package/front_end/third_party/acorn/package/dist/acorn.d.ts +3 -0
- package/front_end/third_party/acorn/package/dist/acorn.js +772 -708
- package/front_end/third_party/acorn/package/dist/acorn.mjs +767 -703
- package/front_end/third_party/acorn/package/dist/bin.js +47 -21
- package/front_end/third_party/acorn/package/package.json +1 -1
- package/front_end/third_party/acorn-loose/README.chromium +2 -2
- package/front_end/third_party/acorn-loose/package/CHANGELOG.md +12 -0
- package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js +27 -7
- package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs +28 -8
- package/front_end/third_party/acorn-loose/package/package.json +2 -2
- package/front_end/third_party/codemirror.next/bundle.ts +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +8 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +1 -1
- package/front_end/third_party/i18n/i18n-impl.ts +1 -1
- package/front_end/third_party/lit-html/README.chromium +2 -2
- package/front_end/third_party/lit-html/package/CHANGELOG.md +216 -28
- package/front_end/third_party/lit-html/package/LICENSE +9 -9
- package/front_end/third_party/lit-html/package/README.md +12 -162
- package/front_end/third_party/lit-html/package/async-directive.d.ts +23 -54
- package/front_end/third_party/lit-html/package/async-directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/async-directive.js +2 -7
- package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.d.ts +23 -54
- package/front_end/third_party/lit-html/package/development/async-directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.js +44 -194
- package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts +6 -5
- package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive-helpers.js +25 -9
- package/front_end/third_party/lit-html/package/development/directive-helpers.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive.d.ts +3 -16
- package/front_end/third_party/lit-html/package/development/directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive.js +6 -1
- package/front_end/third_party/lit-html/package/development/directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts +7 -14
- package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-append.js +17 -58
- package/front_end/third_party/lit-html/package/development/directives/async-append.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts +9 -14
- package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-replace.js +57 -37
- package/front_end/third_party/lit-html/package/development/directives/async-replace.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/cache.d.ts +2 -3
- package/front_end/third_party/lit-html/package/development/directives/cache.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/cache.js +4 -6
- package/front_end/third_party/lit-html/package/development/directives/cache.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts +2 -2
- package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/class-map.js +17 -7
- package/front_end/third_party/lit-html/package/development/directives/class-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/guard.d.ts +3 -2
- package/front_end/third_party/lit-html/package/development/directives/guard.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/guard.js +3 -2
- package/front_end/third_party/lit-html/package/development/directives/guard.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/live.d.ts +4 -3
- package/front_end/third_party/lit-html/package/development/directives/live.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/live.js +5 -7
- package/front_end/third_party/lit-html/package/development/directives/live.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts +58 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js +85 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/ref.d.ts +14 -11
- package/front_end/third_party/lit-html/package/development/directives/ref.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/ref.js +13 -11
- package/front_end/third_party/lit-html/package/development/directives/ref.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts +8 -4
- package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/repeat.js +23 -9
- package/front_end/third_party/lit-html/package/development/directives/repeat.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts +1 -2
- package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/style-map.js +1 -2
- package/front_end/third_party/lit-html/package/development/directives/style-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -2
- package/front_end/third_party/lit-html/package/development/directives/template-content.js +1 -2
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts +6 -4
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js +7 -5
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts +4 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js +3 -0
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/until.d.ts +12 -8
- package/front_end/third_party/lit-html/package/development/directives/until.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/until.js +63 -23
- package/front_end/third_party/lit-html/package/development/directives/until.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.js +9 -8
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts +81 -136
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/lit-html.js +249 -76
- package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts +1 -41
- package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/polyfill-support.js +40 -21
- package/front_end/third_party/lit-html/package/development/polyfill-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts +12 -10
- package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/private-ssr-support.js +11 -3
- package/front_end/third_party/lit-html/package/development/private-ssr-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.js +6 -5
- package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
- package/front_end/third_party/lit-html/package/directive-helpers.d.ts +6 -5
- package/front_end/third_party/lit-html/package/directive-helpers.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directive-helpers.js +2 -2
- package/front_end/third_party/lit-html/package/directive-helpers.js.map +1 -1
- package/front_end/third_party/lit-html/package/directive.d.ts +3 -16
- package/front_end/third_party/lit-html/package/directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directive.js +1 -1
- package/front_end/third_party/lit-html/package/directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-append.d.ts +7 -14
- package/front_end/third_party/lit-html/package/directives/async-append.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-append.js +2 -6
- package/front_end/third_party/lit-html/package/directives/async-append.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-replace.d.ts +9 -14
- package/front_end/third_party/lit-html/package/directives/async-replace.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-replace.js +2 -5
- package/front_end/third_party/lit-html/package/directives/async-replace.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/cache.d.ts +2 -3
- package/front_end/third_party/lit-html/package/directives/cache.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/cache.js +2 -5
- package/front_end/third_party/lit-html/package/directives/cache.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/class-map.d.ts +2 -2
- package/front_end/third_party/lit-html/package/directives/class-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/class-map.js +2 -4
- package/front_end/third_party/lit-html/package/directives/class-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.d.ts +3 -2
- package/front_end/third_party/lit-html/package/directives/guard.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.js +2 -4
- package/front_end/third_party/lit-html/package/directives/guard.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/live.d.ts +4 -3
- package/front_end/third_party/lit-html/package/directives/live.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/live.js +1 -4
- package/front_end/third_party/lit-html/package/directives/live.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts +58 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.js +7 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/ref.d.ts +14 -11
- package/front_end/third_party/lit-html/package/directives/ref.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/ref.js +2 -5
- package/front_end/third_party/lit-html/package/directives/ref.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.d.ts +8 -4
- package/front_end/third_party/lit-html/package/directives/repeat.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.js +2 -5
- package/front_end/third_party/lit-html/package/directives/repeat.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.d.ts +1 -2
- package/front_end/third_party/lit-html/package/directives/style-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.js +2 -4
- package/front_end/third_party/lit-html/package/directives/style-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -2
- package/front_end/third_party/lit-html/package/directives/template-content.js +2 -4
- package/front_end/third_party/lit-html/package/directives/template-content.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts +6 -4
- package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js +2 -4
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts +4 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/until.d.ts +12 -8
- package/front_end/third_party/lit-html/package/directives/until.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/until.js +2 -6
- package/front_end/third_party/lit-html/package/directives/until.js.map +1 -1
- package/front_end/third_party/lit-html/package/experimental-hydrate.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/experimental-hydrate.js +2 -5
- package/front_end/third_party/lit-html/package/experimental-hydrate.js.map +1 -1
- package/front_end/third_party/lit-html/package/lit-html.d.ts +81 -136
- package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/package.json +75 -24
- package/front_end/third_party/lit-html/package/polyfill-support.d.ts +1 -41
- package/front_end/third_party/lit-html/package/polyfill-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/polyfill-support.js +1 -1
- package/front_end/third_party/lit-html/package/polyfill-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.d.ts +12 -10
- package/front_end/third_party/lit-html/package/private-ssr-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.js +2 -2
- package/front_end/third_party/lit-html/package/private-ssr-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/static.js +1 -1
- package/front_end/third_party/lit-html/package/static.js.map +1 -1
- package/front_end/third_party/marked/README.chromium +2 -2
- package/front_end/third_party/marked/marked.ts +2 -2
- package/front_end/third_party/marked/package/README.md +7 -1
- package/front_end/third_party/marked/package/bin/marked.js +214 -0
- package/front_end/third_party/marked/package/lib/marked.cjs +2907 -0
- package/front_end/third_party/marked/package/lib/marked.esm.d.ts +1 -3
- package/front_end/third_party/marked/package/lib/marked.esm.js +627 -586
- package/front_end/third_party/marked/package/lib/marked.umd.js +2913 -0
- package/front_end/third_party/marked/package/man/marked.1 +5 -24
- package/front_end/third_party/marked/package/man/marked.1.txt +21 -31
- package/front_end/third_party/marked/package/marked.min.js +1 -1
- package/front_end/third_party/marked/package/package.json +41 -32
- package/front_end/third_party/marked/package/src/Lexer.js +109 -108
- package/front_end/third_party/marked/package/src/Parser.js +38 -15
- package/front_end/third_party/marked/package/src/Renderer.js +5 -5
- package/front_end/third_party/marked/package/src/Slugger.js +2 -2
- package/front_end/third_party/marked/package/src/TextRenderer.js +2 -2
- package/front_end/third_party/marked/package/src/Tokenizer.js +215 -190
- package/front_end/third_party/marked/package/src/defaults.js +6 -9
- package/front_end/third_party/marked/package/src/helpers.js +16 -27
- package/front_end/third_party/marked/package/src/marked.js +146 -63
- package/front_end/third_party/marked/package/src/rules.js +20 -45
- package/front_end/third_party/wasmparser/README.chromium +2 -2
- package/front_end/third_party/wasmparser/package/.github/workflows/main.yml +47 -0
- package/front_end/third_party/wasmparser/package/CHANGELOG.md +12 -0
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +53 -53
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +53 -53
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/package.json +1 -1
- package/front_end/third_party/wasmparser/package/src/WasmParser.ts +53 -53
- package/front_end/ui/components/adorners/Adorner.ts +14 -14
- package/front_end/ui/components/buttons/Button.ts +133 -42
- package/front_end/ui/components/buttons/button.css +31 -0
- package/front_end/ui/components/data_grid/DataGrid.ts +131 -122
- package/front_end/ui/components/data_grid/DataGridController.ts +42 -42
- package/front_end/ui/components/diff_view/DiffView.ts +4 -4
- package/front_end/ui/components/docs/button/basic.html +3 -0
- package/front_end/ui/components/docs/button/basic.ts +58 -0
- package/front_end/ui/components/expandable_list/ExpandableList.ts +11 -11
- package/front_end/ui/components/icon_button/Icon.ts +24 -21
- package/front_end/ui/components/icon_button/IconButton.ts +31 -31
- package/front_end/ui/components/issue_counter/IssueCounter.ts +52 -52
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +42 -42
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +67 -67
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +22 -22
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +36 -36
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryNavigator.ts +19 -19
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryValueInterpreter.ts +25 -25
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +52 -52
- package/front_end/ui/components/linear_memory_inspector/ValueInterpreterDisplay.ts +21 -21
- package/front_end/ui/components/linear_memory_inspector/ValueInterpreterSettings.ts +6 -6
- package/front_end/ui/components/markdown_view/MarkdownImage.ts +14 -14
- package/front_end/ui/components/markdown_view/MarkdownLink.ts +8 -8
- package/front_end/ui/components/markdown_view/MarkdownView.ts +6 -6
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +33 -33
- package/front_end/ui/components/report_view/ReportView.ts +18 -18
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +53 -53
- package/front_end/ui/components/settings/SettingCheckbox.ts +15 -15
- package/front_end/ui/components/survey_link/SurveyLink.ts +28 -28
- package/front_end/ui/components/text_editor/TextEditor.ts +68 -36
- package/front_end/ui/components/text_editor/config.ts +4 -2
- package/front_end/ui/components/text_editor/javascript.ts +6 -6
- package/front_end/ui/components/text_prompt/TextPrompt.ts +19 -19
- package/front_end/ui/components/tree_outline/TreeOutline.ts +56 -56
- package/front_end/ui/legacy/Infobar.ts +9 -0
- package/front_end/ui/legacy/InspectorView.ts +1 -1
- package/front_end/ui/legacy/ListWidget.ts +2 -2
- package/front_end/ui/legacy/ViewManager.ts +6 -0
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +20 -0
- package/front_end/ui/legacy/tabbedPane.css +1 -1
- package/inspector_overlay/main.ts +3 -0
- package/package.json +1 -1
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +17 -4
- package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +21 -0
|
@@ -48,6 +48,7 @@ export class Infobar {
|
|
|
48
48
|
private readonly toggleElement: HTMLButtonElement;
|
|
49
49
|
private readonly closeButton: HTMLElement;
|
|
50
50
|
private closeCallback: (() => void)|null;
|
|
51
|
+
#firstFocusableElement: HTMLElement|null = null;
|
|
51
52
|
private parentView?: Widget;
|
|
52
53
|
|
|
53
54
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
@@ -88,6 +89,9 @@ export class Infobar {
|
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
const button = createTextButton(action.text, actionCallback, buttonClass);
|
|
92
|
+
if (action.highlight && !this.#firstFocusableElement) {
|
|
93
|
+
this.#firstFocusableElement = button;
|
|
94
|
+
}
|
|
91
95
|
this.actionContainer.appendChild(button);
|
|
92
96
|
}
|
|
93
97
|
}
|
|
@@ -202,6 +206,11 @@ export class Infobar {
|
|
|
202
206
|
this.toggleElement.remove();
|
|
203
207
|
this.onResize();
|
|
204
208
|
ARIAUtils.alert(this.detailsMessage);
|
|
209
|
+
if (this.#firstFocusableElement) {
|
|
210
|
+
this.#firstFocusableElement.focus();
|
|
211
|
+
} else {
|
|
212
|
+
this.closeButton.focus();
|
|
213
|
+
}
|
|
205
214
|
}
|
|
206
215
|
|
|
207
216
|
createDetailsRowMessage(message?: string): Element {
|
|
@@ -471,7 +471,7 @@ function createLocaleInfobar(): Infobar {
|
|
|
471
471
|
// @ts-ignore TODO(crbug.com/1163928) Wait for Intl support.
|
|
472
472
|
const locale = new Intl.Locale(closestSupportedLocale);
|
|
473
473
|
const closestSupportedLanguageInCurrentLocale =
|
|
474
|
-
new Intl.DisplayNames([devtoolsLocale.locale], {type: 'language'}).of(locale.language);
|
|
474
|
+
new Intl.DisplayNames([devtoolsLocale.locale], {type: 'language'}).of(locale.language || 'en');
|
|
475
475
|
|
|
476
476
|
const languageSetting = Common.Settings.Settings.instance().moduleSetting<string>('language');
|
|
477
477
|
return new Infobar(
|
|
@@ -276,10 +276,10 @@ export class Editor<T> {
|
|
|
276
276
|
this.element = document.createElement('div');
|
|
277
277
|
this.element.classList.add('editor-container');
|
|
278
278
|
this.element.addEventListener('keydown', onKeyDown.bind(null, isEscKey, this.cancelClicked.bind(this)), false);
|
|
279
|
-
this.element.addEventListener(
|
|
280
|
-
'keydown', onKeyDown.bind(null, event => event.key === 'Enter', this.commitClicked.bind(this)), false);
|
|
281
279
|
|
|
282
280
|
this.contentElementInternal = this.element.createChild('div', 'editor-content');
|
|
281
|
+
this.contentElementInternal.addEventListener(
|
|
282
|
+
'keydown', onKeyDown.bind(null, event => event.key === 'Enter', this.commitClicked.bind(this)), false);
|
|
283
283
|
|
|
284
284
|
const buttonsRow = this.element.createChild('div', 'editor-buttons');
|
|
285
285
|
this.commitButton = createTextButton('', this.commitClicked.bind(this), '', true /* primary */);
|
|
@@ -828,6 +828,12 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
|
|
|
828
828
|
this.tabOrderSetting.set(tabOrders);
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
+
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
832
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
833
|
+
getCloseableTabSetting(): Common.Settings.Setting<any> {
|
|
834
|
+
return this.closeableTabSetting.get();
|
|
835
|
+
}
|
|
836
|
+
|
|
831
837
|
static orderStep = 10; // Keep in sync with descriptors.
|
|
832
838
|
}
|
|
833
839
|
|
|
@@ -103,6 +103,10 @@ const UIStrings = {
|
|
|
103
103
|
* @example {9001628746521180} seconds
|
|
104
104
|
*/
|
|
105
105
|
timeAfterTooltip: 'The expiration timestamp is {seconds}, which corresponds to a date after {date}',
|
|
106
|
+
/**
|
|
107
|
+
* @description Text to be show in the Partition Key column in case it is an opaque origin.
|
|
108
|
+
*/
|
|
109
|
+
opaquePartitionKey: '(opaque)',
|
|
106
110
|
};
|
|
107
111
|
const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/cookie_table/CookiesTable.ts', UIStrings);
|
|
108
112
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -215,6 +219,13 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
215
219
|
dataType: DataGrid.DataGrid.DataType.Boolean,
|
|
216
220
|
editable: editable,
|
|
217
221
|
},
|
|
222
|
+
{
|
|
223
|
+
id: SDK.Cookie.Attributes.PartitionKey,
|
|
224
|
+
title: 'Partition Key',
|
|
225
|
+
sortable: true,
|
|
226
|
+
weight: 7,
|
|
227
|
+
editable: editable,
|
|
228
|
+
},
|
|
218
229
|
{
|
|
219
230
|
id: SDK.Cookie.Attributes.Priority,
|
|
220
231
|
title: 'Priority',
|
|
@@ -462,6 +473,8 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
462
473
|
return String(cookie.sameSite());
|
|
463
474
|
case SDK.Cookie.Attributes.SameParty:
|
|
464
475
|
return String(cookie.sameParty());
|
|
476
|
+
case SDK.Cookie.Attributes.PartitionKey:
|
|
477
|
+
return cookie.partitionKeyOpaque() ? i18nString(UIStrings.opaquePartitionKey) : String(cookie.partitionKey());
|
|
465
478
|
case SDK.Cookie.Attributes.SourceScheme:
|
|
466
479
|
return String(cookie.sourceScheme());
|
|
467
480
|
default:
|
|
@@ -570,6 +583,7 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
570
583
|
data[SDK.Cookie.Attributes.SourcePort] = cookie.sourcePort();
|
|
571
584
|
data[SDK.Cookie.Attributes.SourceScheme] = cookie.sourceScheme();
|
|
572
585
|
data[SDK.Cookie.Attributes.Priority] = cookie.priority() || '';
|
|
586
|
+
data[SDK.Cookie.Attributes.PartitionKey] = cookie.partitionKey() || '';
|
|
573
587
|
|
|
574
588
|
const blockedReasons = this.cookieToBlockedReasons?.get(cookie);
|
|
575
589
|
const node = new DataGridNode(data, cookie, blockedReasons || null);
|
|
@@ -613,6 +627,9 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
613
627
|
if (node.data[SDK.Cookie.Attributes.Expires] === null) {
|
|
614
628
|
node.data[SDK.Cookie.Attributes.Expires] = expiresSessionValue();
|
|
615
629
|
}
|
|
630
|
+
if (node.data[SDK.Cookie.Attributes.PartitionKey] === null) {
|
|
631
|
+
node.data[SDK.Cookie.Attributes.PartitionKey] = '';
|
|
632
|
+
}
|
|
616
633
|
}
|
|
617
634
|
|
|
618
635
|
private saveNode(node: DataGridNode): void {
|
|
@@ -660,6 +677,9 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
660
677
|
cookie.addAttribute(
|
|
661
678
|
SDK.Cookie.Attributes.SourcePort, Number.parseInt(data[SDK.Cookie.Attributes.SourcePort], 10) || undefined);
|
|
662
679
|
}
|
|
680
|
+
if (SDK.Cookie.Attributes.PartitionKey in data) {
|
|
681
|
+
cookie.addAttribute(SDK.Cookie.Attributes.PartitionKey, data[SDK.Cookie.Attributes.PartitionKey]);
|
|
682
|
+
}
|
|
663
683
|
cookie.setSize(data[SDK.Cookie.Attributes.Name].length + data[SDK.Cookie.Attributes.Value].length);
|
|
664
684
|
return cookie;
|
|
665
685
|
}
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
.tabbed-pane-header-tab:hover,
|
|
135
135
|
.tabbed-pane-shadow .tabbed-pane-header-tab:focus-visible {
|
|
136
136
|
color: var(--color-text-primary);
|
|
137
|
-
background-color: var(--
|
|
137
|
+
background-color: var(--color-background-elevation-1);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
.tabbed-pane-header-tab-title {
|
|
@@ -77,6 +77,7 @@ let platformName: PlatformName;
|
|
|
77
77
|
type MessageLookup = {
|
|
78
78
|
'setOverlay': keyof Overlays,
|
|
79
79
|
'setPlatform': PlatformName,
|
|
80
|
+
drawingFinished: '',
|
|
80
81
|
};
|
|
81
82
|
|
|
82
83
|
const dispatch = <K extends keyof MessageLookup>(message: [a: K, b: MessageLookup[K]]) => {
|
|
@@ -95,6 +96,8 @@ const dispatch = <K extends keyof MessageLookup>(message: [a: K, b: MessageLooku
|
|
|
95
96
|
}
|
|
96
97
|
} else if (functionName === 'setPlatform') {
|
|
97
98
|
platformName = message[1];
|
|
99
|
+
} else if (functionName === 'drawingFinished') {
|
|
100
|
+
// TODO The logic needs to be added here once the backend starts sending this event.
|
|
98
101
|
} else {
|
|
99
102
|
currentOverlay.dispatch(message);
|
|
100
103
|
}
|
package/package.json
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
7
|
const path = require('path');
|
|
8
|
+
const {devtoolsRootPath} = require('../../devtools_paths.js');
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
+
const DEFAULT_FRONT_END_DIRECTORY = path.join(devtoolsRootPath(), 'front_end');
|
|
10
11
|
|
|
11
12
|
function isModuleScope(context) {
|
|
12
13
|
return context.getScope().type === 'module';
|
|
@@ -36,7 +37,15 @@ module.exports = {
|
|
|
36
37
|
category: 'Possible Errors',
|
|
37
38
|
},
|
|
38
39
|
fixable: 'code',
|
|
39
|
-
schema: [
|
|
40
|
+
schema: [{
|
|
41
|
+
'type': 'object',
|
|
42
|
+
'properties': {
|
|
43
|
+
'rootFrontendDirectory': {
|
|
44
|
+
'type': 'string',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
additionalProperties: false,
|
|
48
|
+
}]
|
|
40
49
|
},
|
|
41
50
|
create: function(context) {
|
|
42
51
|
return {
|
|
@@ -51,8 +60,12 @@ module.exports = {
|
|
|
51
60
|
return;
|
|
52
61
|
}
|
|
53
62
|
|
|
63
|
+
let frontEndDirectory = DEFAULT_FRONT_END_DIRECTORY;
|
|
64
|
+
if (context.options && context.options[0]?.rootFrontendDirectory) {
|
|
65
|
+
frontEndDirectory = context.options[0].rootFrontendDirectory;
|
|
66
|
+
}
|
|
54
67
|
const currentSourceFile = path.resolve(context.getFilename());
|
|
55
|
-
const currentFileRelativeToFrontEnd = path.relative(
|
|
68
|
+
const currentFileRelativeToFrontEnd = path.relative(frontEndDirectory, currentSourceFile);
|
|
56
69
|
|
|
57
70
|
const currentModuleDirectory = path.dirname(currentSourceFile);
|
|
58
71
|
const allowedPathArguments = [
|
|
@@ -62,7 +75,7 @@ module.exports = {
|
|
|
62
75
|
];
|
|
63
76
|
|
|
64
77
|
const previousFileLocationArgument = callExpression.arguments[0];
|
|
65
|
-
const actualPath = path.join(
|
|
78
|
+
const actualPath = path.join(frontEndDirectory, previousFileLocationArgument.value);
|
|
66
79
|
if (!allowedPathArguments.includes(actualPath)) {
|
|
67
80
|
const newFileName = currentFileRelativeToFrontEnd.replace(/\\/g, '/');
|
|
68
81
|
context.report({
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
+
const path = require('path');
|
|
8
|
+
|
|
7
9
|
const rule = require('../lib/l10n_filename_matches.js');
|
|
8
10
|
const ruleTester = new (require('eslint').RuleTester)({
|
|
9
11
|
parserOptions: {ecmaVersion: 9, sourceType: 'module'},
|
|
@@ -24,6 +26,16 @@ ruleTester.run('l10n_filename_matches', rule, {
|
|
|
24
26
|
code: 'const str_ = i18n.i18n.registerUIStrings(\'components/ModuleUIStrings.ts\', UIStrings);',
|
|
25
27
|
filename: 'front_end/components/test.ts',
|
|
26
28
|
},
|
|
29
|
+
{
|
|
30
|
+
code: 'const str_ = i18n.i18n.registerUIStrings(\'ModuleUIStrings.ts\', UIStrings);',
|
|
31
|
+
filename: 'front_end/components/test.ts',
|
|
32
|
+
options: [{rootFrontendDirectory: path.join(__dirname, '..', '..', '..', 'front_end', 'components')}]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
code: 'const str_ = i18n.i18n.registerUIStrings(\'test.ts\', UIStrings);',
|
|
36
|
+
filename: 'front_end/components/test.ts',
|
|
37
|
+
options: [{rootFrontendDirectory: path.join(__dirname, '..', '..', '..', 'front_end', 'components')}]
|
|
38
|
+
},
|
|
27
39
|
],
|
|
28
40
|
invalid: [
|
|
29
41
|
{
|
|
@@ -35,5 +47,14 @@ ruleTester.run('l10n_filename_matches', rule, {
|
|
|
35
47
|
}],
|
|
36
48
|
output: 'const str_ = i18n.i18n.registerUIStrings(\'components/test.ts\', UIStrings);',
|
|
37
49
|
},
|
|
50
|
+
{
|
|
51
|
+
code: 'const str_ = i18n.i18n.registerUIStrings(\'components/test.ts\', UIStrings);',
|
|
52
|
+
filename: 'front_end/components/test.ts',
|
|
53
|
+
errors: [
|
|
54
|
+
{message: 'First argument to \'registerUIStrings\' call must be \'test.ts\' or the ModuleUIStrings.(js|ts)'}
|
|
55
|
+
],
|
|
56
|
+
output: 'const str_ = i18n.i18n.registerUIStrings(\'test.ts\', UIStrings);',
|
|
57
|
+
options: [{rootFrontendDirectory: path.join(__dirname, '..', '..', '..', 'front_end', 'components')}]
|
|
58
|
+
},
|
|
38
59
|
]
|
|
39
60
|
});
|