chrome-devtools-frontend 1.0.943182 → 1.0.944903
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 +3 -0
- package/front_end/core/common/ParsedURL.ts +1 -1
- package/front_end/core/host/InspectorFrontendHostAPI.ts +5 -5
- package/front_end/core/host/UserMetrics.ts +0 -1
- package/front_end/core/i18n/locales/af.json +455 -44
- package/front_end/core/i18n/locales/am.json +455 -44
- package/front_end/core/i18n/locales/ar.json +455 -44
- package/front_end/core/i18n/locales/as.json +455 -44
- package/front_end/core/i18n/locales/az.json +455 -44
- package/front_end/core/i18n/locales/be.json +456 -45
- package/front_end/core/i18n/locales/bg.json +455 -44
- package/front_end/core/i18n/locales/bn.json +455 -44
- package/front_end/core/i18n/locales/bs.json +455 -44
- package/front_end/core/i18n/locales/ca.json +457 -46
- package/front_end/core/i18n/locales/cs.json +458 -47
- package/front_end/core/i18n/locales/cy.json +455 -44
- package/front_end/core/i18n/locales/da.json +455 -44
- package/front_end/core/i18n/locales/de.json +455 -44
- package/front_end/core/i18n/locales/el.json +455 -44
- package/front_end/core/i18n/locales/en-GB.json +449 -38
- package/front_end/core/i18n/locales/en-US.json +10 -34
- package/front_end/core/i18n/locales/en-XL.json +22 -46
- package/front_end/core/i18n/locales/es-419.json +455 -44
- package/front_end/core/i18n/locales/es.json +455 -44
- package/front_end/core/i18n/locales/et.json +455 -44
- package/front_end/core/i18n/locales/eu.json +462 -51
- package/front_end/core/i18n/locales/fa.json +455 -44
- package/front_end/core/i18n/locales/fi.json +455 -44
- package/front_end/core/i18n/locales/fil.json +454 -43
- package/front_end/core/i18n/locales/fr-CA.json +455 -44
- package/front_end/core/i18n/locales/fr.json +456 -45
- package/front_end/core/i18n/locales/gl.json +455 -44
- package/front_end/core/i18n/locales/gu.json +456 -45
- package/front_end/core/i18n/locales/he.json +455 -44
- package/front_end/core/i18n/locales/hi.json +455 -44
- package/front_end/core/i18n/locales/hr.json +455 -44
- package/front_end/core/i18n/locales/hu.json +455 -44
- package/front_end/core/i18n/locales/hy.json +455 -44
- package/front_end/core/i18n/locales/id.json +455 -44
- package/front_end/core/i18n/locales/is.json +455 -44
- package/front_end/core/i18n/locales/it.json +502 -91
- package/front_end/core/i18n/locales/ja.json +456 -45
- package/front_end/core/i18n/locales/ka.json +455 -44
- package/front_end/core/i18n/locales/kk.json +456 -45
- package/front_end/core/i18n/locales/km.json +455 -44
- package/front_end/core/i18n/locales/kn.json +455 -44
- package/front_end/core/i18n/locales/ko.json +455 -44
- package/front_end/core/i18n/locales/ky.json +456 -45
- package/front_end/core/i18n/locales/lo.json +454 -43
- package/front_end/core/i18n/locales/lt.json +455 -44
- package/front_end/core/i18n/locales/lv.json +458 -47
- package/front_end/core/i18n/locales/mk.json +455 -44
- package/front_end/core/i18n/locales/ml.json +461 -50
- package/front_end/core/i18n/locales/mn.json +455 -44
- package/front_end/core/i18n/locales/mr.json +455 -44
- package/front_end/core/i18n/locales/ms.json +455 -44
- package/front_end/core/i18n/locales/my.json +456 -45
- package/front_end/core/i18n/locales/ne.json +456 -45
- package/front_end/core/i18n/locales/nl.json +532 -121
- package/front_end/core/i18n/locales/no.json +455 -44
- package/front_end/core/i18n/locales/or.json +455 -44
- package/front_end/core/i18n/locales/pa.json +455 -44
- package/front_end/core/i18n/locales/pl.json +455 -44
- package/front_end/core/i18n/locales/pt-PT.json +504 -93
- package/front_end/core/i18n/locales/pt.json +454 -43
- package/front_end/core/i18n/locales/ro.json +455 -44
- package/front_end/core/i18n/locales/ru.json +455 -44
- package/front_end/core/i18n/locales/si.json +455 -44
- package/front_end/core/i18n/locales/sk.json +456 -45
- package/front_end/core/i18n/locales/sl.json +455 -44
- package/front_end/core/i18n/locales/sq.json +455 -44
- package/front_end/core/i18n/locales/sr-Latn.json +455 -44
- package/front_end/core/i18n/locales/sr.json +455 -44
- package/front_end/core/i18n/locales/sv.json +456 -45
- package/front_end/core/i18n/locales/sw.json +455 -44
- package/front_end/core/i18n/locales/ta.json +456 -45
- package/front_end/core/i18n/locales/te.json +454 -43
- package/front_end/core/i18n/locales/th.json +455 -44
- package/front_end/core/i18n/locales/tr.json +455 -44
- package/front_end/core/i18n/locales/uk.json +455 -44
- package/front_end/core/i18n/locales/ur.json +455 -44
- package/front_end/core/i18n/locales/uz.json +455 -44
- package/front_end/core/i18n/locales/vi.json +455 -44
- package/front_end/core/i18n/locales/zh-HK.json +459 -48
- package/front_end/core/i18n/locales/zh-TW.json +457 -46
- package/front_end/core/i18n/locales/zh.json +460 -49
- package/front_end/core/i18n/locales/zu.json +455 -44
- package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
- package/front_end/core/protocol_client/NodeURL.ts +1 -0
- package/front_end/core/sdk/AccessibilityModel.ts +99 -78
- package/front_end/core/sdk/CSSStyleDeclaration.ts +4 -0
- 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 +6 -0
- package/front_end/core/sdk/NetworkRequest.ts +2 -2
- package/front_end/core/sdk/OverlayModel.ts +0 -9
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/Script.ts +2 -7
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
- package/front_end/core/sdk/sdk-meta.ts +0 -26
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +0 -13
- package/front_end/entrypoints/main/MainImpl.ts +2 -4
- package/front_end/generated/InspectorBackendCommands.js +3 -1
- package/front_end/generated/protocol-mapping.d.ts +1 -0
- package/front_end/generated/protocol-proxy-api.d.ts +2 -0
- package/front_end/generated/protocol.d.ts +40 -0
- package/front_end/models/bindings/BreakpointManager.ts +3 -4
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -9
- package/front_end/models/bindings/ResourceMapping.ts +1 -2
- package/front_end/models/bindings/ResourceScriptMapping.ts +3 -11
- package/front_end/models/bindings/StylesSourceMapping.ts +1 -2
- package/front_end/models/formatter/SourceFormatter.ts +0 -15
- package/front_end/models/persistence/IsolatedFileSystem.ts +7 -6
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +10 -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 +3 -16
- package/front_end/models/timeline_model/TimelineModel.ts +0 -1
- package/front_end/models/workspace/UISourceCode.ts +2 -2
- package/front_end/panels/animation/animationTimeline.css +2 -0
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -1
- package/front_end/panels/application/BackForwardCacheView.ts +26 -26
- 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/console/ConsolePinPane.ts +1 -0
- package/front_end/panels/console/ConsolePrompt.ts +121 -171
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/console/consoleView.css +1 -1
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +2 -2
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +98 -67
- package/front_end/panels/elements/AccessibilityTreeView.ts +76 -125
- package/front_end/panels/elements/ElementsPanel.ts +6 -7
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
- package/front_end/panels/elements/StyleEditorWidget.ts +13 -2
- package/front_end/panels/elements/StylePropertyHighlighter.ts +29 -19
- package/front_end/panels/elements/StylePropertyTreeElement.ts +7 -4
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +27 -3
- package/front_end/panels/network/NetworkDataGridNode.ts +5 -1
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +1 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/Plugin.ts +0 -3
- package/front_end/panels/sources/UISourceCodeFrame.ts +23 -50
- package/front_end/panels/timeline/TimelineController.ts +0 -3
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -34
- package/front_end/panels/timeline/TimelineUIUtils.ts +51 -3
- 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/codemirror.next/bundle.ts +4 -3
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +39 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +3 -3
- 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/text_editor/TextEditor.ts +29 -0
- package/front_end/ui/components/text_editor/config.ts +36 -14
- package/front_end/ui/components/text_editor/javascript.ts +14 -9
- package/front_end/ui/components/text_editor/theme.ts +29 -4
- package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -0
- package/front_end/ui/legacy/Dialog.ts +8 -3
- 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/components/source_frame/SourceFrame.ts +6 -4
- package/front_end/ui/legacy/components/utils/Linkifier.ts +49 -79
- package/front_end/ui/legacy/themeColors.css +2 -0
- package/inspector_overlay/css_grid_label_helpers.ts +1 -1
- package/inspector_overlay/highlight_common.ts +1 -1
- package/inspector_overlay/tool_highlight.ts +1 -1
- package/package.json +1 -1
- package/scripts/eslint_rules/lib/es_modules_import.js +0 -16
- package/scripts/eslint_rules/tests/es_modules_import_test.js +0 -16
|
@@ -764,6 +764,10 @@ export class TargetBase {
|
|
|
764
764
|
manager.removeDomainDispatcher(dispatcher);
|
|
765
765
|
}
|
|
766
766
|
|
|
767
|
+
registerAccessibilityDispatcher(dispatcher: ProtocolProxyApi.AccessibilityDispatcher): void {
|
|
768
|
+
this.registerDispatcher('Accessibility', dispatcher);
|
|
769
|
+
}
|
|
770
|
+
|
|
767
771
|
registerAnimationDispatcher(dispatcher: ProtocolProxyApi.AnimationDispatcher): void {
|
|
768
772
|
this.registerDispatcher('Animation', dispatcher);
|
|
769
773
|
}
|
|
@@ -14,6 +14,7 @@ export class NodeURL {
|
|
|
14
14
|
|
|
15
15
|
function process(object: {url?: string}, path: string): void {
|
|
16
16
|
if (object.url && NodeURL.isPlatformPath(object.url, Host.Platform.isWin())) {
|
|
17
|
+
// object.url can be ob both types: RawPathString and UrlString
|
|
17
18
|
object.url = Common.ParsedURL.ParsedURL.rawPathToUrlString(object.url as Platform.DevToolsPath.RawPathString);
|
|
18
19
|
}
|
|
19
20
|
for (const entry of Object.entries(object)) {
|
|
@@ -6,7 +6,6 @@ import type * as Protocol from '../../generated/protocol.js';
|
|
|
6
6
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
7
7
|
|
|
8
8
|
import type {DOMNode} from './DOMModel.js';
|
|
9
|
-
import {DOMModel} from './DOMModel.js';
|
|
10
9
|
import {DeferredDOMNode} from './DOMModel.js';
|
|
11
10
|
import type {Target} from './Target.js';
|
|
12
11
|
import {Capability} from './Target.js';
|
|
@@ -39,8 +38,9 @@ export class AccessibilityNode {
|
|
|
39
38
|
readonly #descriptionInternal: Protocol.Accessibility.AXValue|null;
|
|
40
39
|
readonly #valueInternal: Protocol.Accessibility.AXValue|null;
|
|
41
40
|
readonly #propertiesInternal: Protocol.Accessibility.AXProperty[]|null;
|
|
42
|
-
#
|
|
43
|
-
#
|
|
41
|
+
readonly #parentId: Protocol.Accessibility.AXNodeId|null;
|
|
42
|
+
readonly #frameId: Protocol.Page.FrameId|null;
|
|
43
|
+
readonly #childIds: Protocol.Accessibility.AXNodeId[]|null;
|
|
44
44
|
|
|
45
45
|
constructor(accessibilityModel: AccessibilityModel, payload: Protocol.Accessibility.AXNode) {
|
|
46
46
|
this.#accessibilityModelInternal = accessibilityModel;
|
|
@@ -67,7 +67,13 @@ export class AccessibilityNode {
|
|
|
67
67
|
this.#valueInternal = payload.value || null;
|
|
68
68
|
this.#propertiesInternal = payload.properties || null;
|
|
69
69
|
this.#childIds = payload.childIds || null;
|
|
70
|
-
this.#
|
|
70
|
+
this.#parentId = payload.parentId || null;
|
|
71
|
+
if (payload.frameId && !payload.parentId) {
|
|
72
|
+
this.#frameId = payload.frameId;
|
|
73
|
+
accessibilityModel.setRootAXNodeForFrameId(payload.frameId, this);
|
|
74
|
+
} else {
|
|
75
|
+
this.#frameId = null;
|
|
76
|
+
}
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
id(): Protocol.Accessibility.AXNodeId {
|
|
@@ -123,11 +129,10 @@ export class AccessibilityNode {
|
|
|
123
129
|
}
|
|
124
130
|
|
|
125
131
|
parentNode(): AccessibilityNode|null {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
this.#parentNodeInternal = parentNode;
|
|
132
|
+
if (this.#parentId) {
|
|
133
|
+
return this.#accessibilityModelInternal.axNodeForId(this.#parentId);
|
|
134
|
+
}
|
|
135
|
+
return null;
|
|
131
136
|
}
|
|
132
137
|
|
|
133
138
|
isDOMNode(): boolean {
|
|
@@ -178,38 +183,57 @@ export class AccessibilityNode {
|
|
|
178
183
|
if (!this.#childIds || !this.#childIds.length) {
|
|
179
184
|
return false;
|
|
180
185
|
}
|
|
181
|
-
|
|
182
186
|
return this.#childIds.every(id => this.#accessibilityModelInternal.axNodeForId(id) === null);
|
|
183
187
|
}
|
|
184
188
|
|
|
189
|
+
hasUnloadedChildren(): boolean {
|
|
190
|
+
if (!this.#childIds || !this.#childIds.length) {
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
193
|
+
return this.#childIds.some(id => this.#accessibilityModelInternal.axNodeForId(id) === null);
|
|
194
|
+
}
|
|
185
195
|
// Only the root node gets a frameId, so nodes have to walk up the tree to find their frameId.
|
|
186
196
|
getFrameId(): Protocol.Page.FrameId|null {
|
|
187
|
-
|
|
188
|
-
if (!domNode) {
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
return domNode.frameId();
|
|
197
|
+
return this.#frameId || this.parentNode()?.getFrameId() || null;
|
|
192
198
|
}
|
|
193
199
|
}
|
|
194
200
|
|
|
195
|
-
|
|
201
|
+
// TODO(crbug.com/1167717): Make this a const enum again
|
|
202
|
+
// eslint-disable-next-line rulesdir/const_enum
|
|
203
|
+
export enum Events {
|
|
204
|
+
TreeUpdated = 'TreeUpdated',
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type EventTypes = {
|
|
208
|
+
[Events.TreeUpdated]: {root?: AccessibilityNode},
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export class AccessibilityModel extends SDKModel<EventTypes> implements ProtocolProxyApi.AccessibilityDispatcher {
|
|
196
212
|
agent: ProtocolProxyApi.AccessibilityApi;
|
|
197
213
|
#axIdToAXNode: Map<string, AccessibilityNode>;
|
|
198
|
-
|
|
199
|
-
|
|
214
|
+
#backendDOMNodeIdToAXNode: Map<Protocol.DOM.BackendNodeId, AccessibilityNode>;
|
|
215
|
+
#frameIdToAXNode: Map<Protocol.Page.FrameId, AccessibilityNode>;
|
|
216
|
+
#pendingChildRequests: Map<string, Promise<Protocol.Accessibility.GetChildAXNodesResponse>>;
|
|
217
|
+
#root: AccessibilityNode|null;
|
|
200
218
|
|
|
201
219
|
constructor(target: Target) {
|
|
202
220
|
super(target);
|
|
221
|
+
target.registerAccessibilityDispatcher(this);
|
|
203
222
|
this.agent = target.accessibilityAgent();
|
|
204
223
|
this.resumeModel();
|
|
205
224
|
|
|
206
225
|
this.#axIdToAXNode = new Map();
|
|
207
226
|
this.#backendDOMNodeIdToAXNode = new Map();
|
|
208
|
-
this.#
|
|
227
|
+
this.#frameIdToAXNode = new Map();
|
|
228
|
+
this.#pendingChildRequests = new Map();
|
|
229
|
+
this.#root = null;
|
|
209
230
|
}
|
|
210
231
|
|
|
211
232
|
clear(): void {
|
|
233
|
+
this.#root = null;
|
|
212
234
|
this.#axIdToAXNode.clear();
|
|
235
|
+
this.#backendDOMNodeIdToAXNode.clear();
|
|
236
|
+
this.#frameIdToAXNode.clear();
|
|
213
237
|
}
|
|
214
238
|
|
|
215
239
|
async resumeModel(): Promise<void> {
|
|
@@ -225,60 +249,64 @@ export class AccessibilityModel extends SDKModel<void> {
|
|
|
225
249
|
if (!nodes) {
|
|
226
250
|
return;
|
|
227
251
|
}
|
|
228
|
-
|
|
252
|
+
const axNodes = [];
|
|
229
253
|
for (const payload of nodes) {
|
|
230
|
-
new AccessibilityNode(this, payload);
|
|
254
|
+
axNodes.push(new AccessibilityNode(this, payload));
|
|
231
255
|
}
|
|
256
|
+
}
|
|
232
257
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
258
|
+
loadComplete({root}: Protocol.Accessibility.LoadCompleteEvent): void {
|
|
259
|
+
this.clear();
|
|
260
|
+
this.#root = new AccessibilityNode(this, root);
|
|
261
|
+
this.dispatchEventToListeners(Events.TreeUpdated, {root: this.#root});
|
|
238
262
|
}
|
|
239
263
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
const newNodesToTrack = await domModel.pushNodesByBackendIdsToFrontend(backendIds);
|
|
246
|
-
newNodesToTrack?.forEach((value, key) => this.#backendDOMNodeIdToDOMNode.set(key, value));
|
|
264
|
+
nodesUpdated({nodes}: Protocol.Accessibility.NodesUpdatedEvent): void {
|
|
265
|
+
this.createNodesFromPayload(nodes);
|
|
266
|
+
this.dispatchEventToListeners(Events.TreeUpdated, {});
|
|
267
|
+
return;
|
|
247
268
|
}
|
|
248
269
|
|
|
249
270
|
private createNodesFromPayload(payloadNodes: Protocol.Accessibility.AXNode[]): AccessibilityNode[] {
|
|
250
|
-
const backendIds: Set<Protocol.DOM.BackendNodeId> = new Set();
|
|
251
271
|
const accessibilityNodes = payloadNodes.map(node => {
|
|
252
272
|
const sdkNode = new AccessibilityNode(this, node);
|
|
253
|
-
const backendId = sdkNode.backendDOMNodeId();
|
|
254
|
-
if (backendId) {
|
|
255
|
-
backendIds.add(backendId);
|
|
256
|
-
}
|
|
257
273
|
return sdkNode;
|
|
258
274
|
});
|
|
259
|
-
this.pushNodesToFrontend(backendIds);
|
|
260
275
|
|
|
261
|
-
for (const sdkNode of accessibilityNodes) {
|
|
262
|
-
for (const sdkChild of sdkNode.children()) {
|
|
263
|
-
sdkChild.setParentNode(sdkNode);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
276
|
return accessibilityNodes;
|
|
267
277
|
}
|
|
268
278
|
|
|
269
|
-
async requestRootNode(
|
|
270
|
-
|
|
271
|
-
|
|
279
|
+
async requestRootNode(frameId?: Protocol.Page.FrameId): Promise<AccessibilityNode|undefined> {
|
|
280
|
+
if (frameId && this.#frameIdToAXNode.has(frameId)) {
|
|
281
|
+
return this.#frameIdToAXNode.get(frameId);
|
|
282
|
+
}
|
|
283
|
+
if (!frameId && this.#root) {
|
|
284
|
+
return this.#root;
|
|
285
|
+
}
|
|
286
|
+
const {node} = await this.agent.invoke_getRootAXNode({frameId});
|
|
287
|
+
if (!node) {
|
|
272
288
|
return;
|
|
273
289
|
}
|
|
274
|
-
|
|
275
|
-
const root = axNodes[0];
|
|
276
|
-
return root;
|
|
290
|
+
return this.createNodesFromPayload([node])[0];
|
|
277
291
|
}
|
|
278
292
|
|
|
279
293
|
async requestAXChildren(nodeId: Protocol.Accessibility.AXNodeId, frameId?: Protocol.Page.FrameId):
|
|
280
294
|
Promise<AccessibilityNode[]> {
|
|
281
|
-
const
|
|
295
|
+
const parent = this.#axIdToAXNode.get(nodeId);
|
|
296
|
+
if (parent && !parent.hasUnloadedChildren()) {
|
|
297
|
+
return parent.children();
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
let nodes;
|
|
301
|
+
const request = this.#pendingChildRequests.get(nodeId);
|
|
302
|
+
if (request) {
|
|
303
|
+
nodes = (await request).nodes;
|
|
304
|
+
} else {
|
|
305
|
+
const req = this.agent.invoke_getChildAXNodes({id: nodeId, frameId});
|
|
306
|
+
this.#pendingChildRequests.set(nodeId, req);
|
|
307
|
+
nodes = (await req).nodes;
|
|
308
|
+
this.#pendingChildRequests.delete(nodeId);
|
|
309
|
+
}
|
|
282
310
|
if (!nodes) {
|
|
283
311
|
return [];
|
|
284
312
|
}
|
|
@@ -286,36 +314,37 @@ export class AccessibilityModel extends SDKModel<void> {
|
|
|
286
314
|
return axNodes;
|
|
287
315
|
}
|
|
288
316
|
|
|
289
|
-
async requestAndLoadSubTreeToNode(node: DOMNode): Promise<AccessibilityNode|null> {
|
|
317
|
+
async requestAndLoadSubTreeToNode(node: DOMNode): Promise<AccessibilityNode[]|null> {
|
|
290
318
|
// Node may have already been loaded, so don't bother requesting it again.
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
|
|
319
|
+
const result = [];
|
|
320
|
+
let ancestor = this.axNodeForDOMNode(node);
|
|
321
|
+
while (ancestor) {
|
|
322
|
+
result.push(ancestor);
|
|
323
|
+
const parent = ancestor.parentNode();
|
|
324
|
+
if (!parent) {
|
|
325
|
+
return result;
|
|
326
|
+
}
|
|
327
|
+
ancestor = parent;
|
|
294
328
|
}
|
|
295
|
-
|
|
296
|
-
const {nodes} = await this.agent.invoke_getPartialAXTree({nodeId: node.id, fetchRelatives: true});
|
|
329
|
+
const {nodes} = await this.agent.invoke_getAXNodeAndAncestors({backendNodeId: node.backendNodeId()});
|
|
297
330
|
if (!nodes) {
|
|
298
331
|
return null;
|
|
299
332
|
}
|
|
300
333
|
const ancestors = this.createNodesFromPayload(nodes);
|
|
301
|
-
// Request top level children nodes.
|
|
302
|
-
for (const node of ancestors) {
|
|
303
|
-
await this.requestAXChildren(node.id());
|
|
304
|
-
}
|
|
305
334
|
|
|
306
|
-
return
|
|
335
|
+
return ancestors;
|
|
307
336
|
}
|
|
308
337
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
if (!nodes) {
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
|
-
this.createNodesFromPayload(nodes);
|
|
338
|
+
axNodeForId(axId: Protocol.Accessibility.AXNodeId): AccessibilityNode|null {
|
|
339
|
+
return this.#axIdToAXNode.get(axId) || null;
|
|
315
340
|
}
|
|
316
341
|
|
|
317
|
-
|
|
318
|
-
|
|
342
|
+
setRootAXNodeForFrameId(frameId: Protocol.Page.FrameId, axNode: AccessibilityNode): void {
|
|
343
|
+
this.#frameIdToAXNode.set(frameId, axNode);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
axNodeForFrameId(frameId: Protocol.Page.FrameId): AccessibilityNode|null {
|
|
347
|
+
return this.#frameIdToAXNode.get(frameId) ?? null;
|
|
319
348
|
}
|
|
320
349
|
|
|
321
350
|
setAXNodeForAXId(axId: string, axNode: AccessibilityNode): void {
|
|
@@ -329,14 +358,6 @@ export class AccessibilityModel extends SDKModel<void> {
|
|
|
329
358
|
return this.#backendDOMNodeIdToAXNode.get(domNode.backendNodeId()) ?? null;
|
|
330
359
|
}
|
|
331
360
|
|
|
332
|
-
domNodeforAXNode(axNode: AccessibilityNode): DOMNode|null {
|
|
333
|
-
const backendDOMNodeId = axNode.backendDOMNodeId();
|
|
334
|
-
if (!backendDOMNodeId) {
|
|
335
|
-
return null;
|
|
336
|
-
}
|
|
337
|
-
return this.#backendDOMNodeIdToDOMNode.get(backendDOMNodeId) ?? null;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
361
|
setAXNodeForBackendDOMNodeId(backendDOMNodeId: Protocol.DOM.BackendNodeId, axNode: AccessibilityNode): void {
|
|
341
362
|
this.#backendDOMNodeIdToAXNode.set(backendDOMNodeId, axNode);
|
|
342
363
|
}
|
|
@@ -289,6 +289,10 @@ export class CSSStyleDeclaration {
|
|
|
289
289
|
return this.#allPropertiesInternal;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
+
hasActiveProperty(name: string): boolean {
|
|
293
|
+
return this.#activePropertyMap.has(name);
|
|
294
|
+
}
|
|
295
|
+
|
|
292
296
|
getPropertyValue(name: string): string {
|
|
293
297
|
const property = this.#activePropertyMap.get(name);
|
|
294
298
|
return property ? property.value : '';
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
6
6
|
import * as Common from '../common/common.js';
|
|
7
|
-
import type * as Platform from '../platform/platform.js';
|
|
8
7
|
import * as i18n from '../i18n/i18n.js';
|
|
9
8
|
import type * as Protocol from '../../generated/protocol.js';
|
|
10
9
|
|
|
@@ -147,8 +146,8 @@ export class CSSStyleSheetHeader implements TextUtils.ContentProvider.ContentPro
|
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
// TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
|
|
150
|
-
contentURL():
|
|
151
|
-
return this.resourceURL()
|
|
149
|
+
contentURL(): string {
|
|
150
|
+
return this.resourceURL();
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
contentType(): Common.ResourceType.ResourceType {
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
|
|
31
31
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
32
32
|
import type * as Common from '../common/common.js';
|
|
33
|
-
import type * as Platform from '../platform/platform.js';
|
|
34
33
|
import * as i18n from '../i18n/i18n.js';
|
|
35
34
|
|
|
36
35
|
import type {PageResourceLoadInitiator} from './PageResourceLoader.js';
|
|
@@ -60,8 +59,8 @@ export class CompilerSourceMappingContentProvider implements TextUtils.ContentPr
|
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
// TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
|
|
63
|
-
contentURL():
|
|
64
|
-
return this.#sourceURL
|
|
62
|
+
contentURL(): string {
|
|
63
|
+
return this.#sourceURL;
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
contentType(): Common.ResourceType.ResourceType {
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import type * as Protocol from '../../generated/protocol.js';
|
|
6
6
|
|
|
7
|
+
const OPAQUE_PARITION_KEY = '<opaque>';
|
|
8
|
+
|
|
7
9
|
export class Cookie {
|
|
8
10
|
readonly #nameInternal: string;
|
|
9
11
|
readonly #valueInternal: string;
|
|
@@ -49,6 +51,12 @@ export class Cookie {
|
|
|
49
51
|
if ('sourceScheme' in protocolCookie) {
|
|
50
52
|
cookie.addAttribute('sourceScheme', protocolCookie.sourceScheme);
|
|
51
53
|
}
|
|
54
|
+
if ('partitionKey' in protocolCookie) {
|
|
55
|
+
cookie.addAttribute('partitionKey', protocolCookie.partitionKey);
|
|
56
|
+
}
|
|
57
|
+
if ('partitionKeyOpaque' in protocolCookie) {
|
|
58
|
+
cookie.addAttribute('partitionKey', OPAQUE_PARITION_KEY);
|
|
59
|
+
}
|
|
52
60
|
cookie.setSize(protocolCookie['size']);
|
|
53
61
|
return cookie;
|
|
54
62
|
}
|
|
@@ -87,6 +95,14 @@ export class Cookie {
|
|
|
87
95
|
return 'sameparty' in this.#attributes;
|
|
88
96
|
}
|
|
89
97
|
|
|
98
|
+
partitionKey(): string {
|
|
99
|
+
return this.#attributes['partitionkey'] as string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
partitionKeyOpaque(): boolean {
|
|
103
|
+
return (this.#attributes['partitionkey'] === OPAQUE_PARITION_KEY);
|
|
104
|
+
}
|
|
105
|
+
|
|
90
106
|
priority(): Protocol.Network.CookiePriority {
|
|
91
107
|
return this.#priorityInternal;
|
|
92
108
|
}
|
|
@@ -245,6 +261,7 @@ export enum Attributes {
|
|
|
245
261
|
SourceScheme = 'sourceScheme',
|
|
246
262
|
SourcePort = 'sourcePort',
|
|
247
263
|
Priority = 'priority',
|
|
264
|
+
PartitionKey = 'partitionKey',
|
|
248
265
|
}
|
|
249
266
|
|
|
250
267
|
/**
|
|
@@ -91,6 +91,7 @@ export class CookieModel extends SDKModel<void> {
|
|
|
91
91
|
expires,
|
|
92
92
|
priority: cookie.priority(),
|
|
93
93
|
sameParty: cookie.sameParty(),
|
|
94
|
+
partitionKey: cookie.partitionKey(),
|
|
94
95
|
sourceScheme: enabled ? cookie.sourceScheme() : preserveUnset(cookie.sourceScheme()),
|
|
95
96
|
sourcePort: enabled ? cookie.sourcePort() : undefined,
|
|
96
97
|
};
|
|
@@ -418,13 +418,14 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
|
418
418
|
return this.agent.invoke_pauseOnAsyncCall({parentStackTraceId: parentStackTraceId});
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
async setBreakpointByURL(
|
|
422
|
-
|
|
423
|
-
condition?: string): Promise<SetBreakpointResult> {
|
|
421
|
+
async setBreakpointByURL(url: string, lineNumber: number, columnNumber?: number, condition?: string):
|
|
422
|
+
Promise<SetBreakpointResult> {
|
|
424
423
|
// Convert file url to node-js path.
|
|
425
424
|
let urlRegex;
|
|
426
425
|
if (this.target().type() === Type.Node && url.startsWith('file://')) {
|
|
427
|
-
|
|
426
|
+
// TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
|
|
427
|
+
const platformPath =
|
|
428
|
+
Common.ParsedURL.ParsedURL.capFilePrefix(url as Platform.DevToolsPath.UrlString, Host.Platform.isWin());
|
|
428
429
|
urlRegex =
|
|
429
430
|
`${Platform.StringUtilities.escapeForRegExp(platformPath)}|${Platform.StringUtilities.escapeForRegExp(url)}`;
|
|
430
431
|
}
|
|
@@ -305,6 +305,7 @@ export enum Events {
|
|
|
305
305
|
LoadingFinished = 'LoadingFinished',
|
|
306
306
|
ReportingApiReportAdded = 'ReportingApiReportAdded',
|
|
307
307
|
ReportingApiReportUpdated = 'ReportingApiReportUpdated',
|
|
308
|
+
ReportingApiEndpointsChangedForOrigin = 'ReportingApiEndpointsChangedForOrigin',
|
|
308
309
|
}
|
|
309
310
|
|
|
310
311
|
export interface RequestStartedEvent {
|
|
@@ -334,6 +335,7 @@ export type EventTypes = {
|
|
|
334
335
|
[Events.LoadingFinished]: NetworkRequest,
|
|
335
336
|
[Events.ReportingApiReportAdded]: Protocol.Network.ReportingApiReport,
|
|
336
337
|
[Events.ReportingApiReportUpdated]: Protocol.Network.ReportingApiReport,
|
|
338
|
+
[Events.ReportingApiEndpointsChangedForOrigin]: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent,
|
|
337
339
|
};
|
|
338
340
|
|
|
339
341
|
export const NoThrottlingConditions: Conditions = {
|
|
@@ -1044,6 +1046,10 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
|
1044
1046
|
this.#manager.dispatchEventToListeners(Events.ReportingApiReportUpdated, data.report);
|
|
1045
1047
|
}
|
|
1046
1048
|
|
|
1049
|
+
reportingApiEndpointsChangedForOrigin(data: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent): void {
|
|
1050
|
+
this.#manager.dispatchEventToListeners(Events.ReportingApiEndpointsChangedForOrigin, data);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1047
1053
|
/**
|
|
1048
1054
|
* @deprecated
|
|
1049
1055
|
* This method is only kept for usage in a web test.
|
|
@@ -1176,8 +1176,8 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
1178
|
// TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
|
|
1179
|
-
contentURL():
|
|
1180
|
-
return this.#urlInternal
|
|
1179
|
+
contentURL(): string {
|
|
1180
|
+
return this.#urlInternal;
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
1183
|
contentType(): Common.ResourceType.ResourceType {
|
|
@@ -79,9 +79,6 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
79
79
|
#showScrollBottleneckRectsSetting: Common.Settings.Setting<any>;
|
|
80
80
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
81
81
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
82
|
-
#showHitTestBordersSetting: Common.Settings.Setting<any>;
|
|
83
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
84
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
85
82
|
#showWebVitalsSetting: Common.Settings.Setting<any>;
|
|
86
83
|
#registeredListeners: Common.EventTarget.EventDescriptor[];
|
|
87
84
|
#showViewportSizeOnResize: boolean;
|
|
@@ -123,7 +120,6 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
123
120
|
this.#showFPSCounterSetting = Common.Settings.Settings.instance().moduleSetting('showFPSCounter');
|
|
124
121
|
this.#showScrollBottleneckRectsSetting =
|
|
125
122
|
Common.Settings.Settings.instance().moduleSetting('showScrollBottleneckRects');
|
|
126
|
-
this.#showHitTestBordersSetting = Common.Settings.Settings.instance().moduleSetting('showHitTestBorders');
|
|
127
123
|
this.#showWebVitalsSetting = Common.Settings.Settings.instance().moduleSetting('showWebVitals');
|
|
128
124
|
|
|
129
125
|
this.#registeredListeners = [];
|
|
@@ -213,8 +209,6 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
213
209
|
this.#showScrollBottleneckRectsSetting.addChangeListener(
|
|
214
210
|
() => this.overlayAgent.invoke_setShowScrollBottleneckRects(
|
|
215
211
|
{show: this.#showScrollBottleneckRectsSetting.get()})),
|
|
216
|
-
this.#showHitTestBordersSetting.addChangeListener(
|
|
217
|
-
() => this.overlayAgent.invoke_setShowHitTestBorders({show: this.#showHitTestBordersSetting.get()})),
|
|
218
212
|
this.#showWebVitalsSetting.addChangeListener(
|
|
219
213
|
() => this.overlayAgent.invoke_setShowWebVitals({show: this.#showWebVitalsSetting.get()})),
|
|
220
214
|
];
|
|
@@ -237,9 +231,6 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
237
231
|
if (this.#showScrollBottleneckRectsSetting.get()) {
|
|
238
232
|
this.overlayAgent.invoke_setShowScrollBottleneckRects({show: true});
|
|
239
233
|
}
|
|
240
|
-
if (this.#showHitTestBordersSetting.get()) {
|
|
241
|
-
this.overlayAgent.invoke_setShowHitTestBorders({show: true});
|
|
242
|
-
}
|
|
243
234
|
if (this.#showWebVitalsSetting.get()) {
|
|
244
235
|
this.overlayAgent.invoke_setShowWebVitals({show: true});
|
|
245
236
|
}
|
|
@@ -152,8 +152,8 @@ export class Resource implements TextUtils.ContentProvider.ContentProvider {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
// TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
|
|
155
|
-
contentURL():
|
|
156
|
-
return this.#urlInternal
|
|
155
|
+
contentURL(): string {
|
|
156
|
+
return this.#urlInternal;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
contentType(): Common.ResourceType.ResourceType {
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
import * as Protocol from '../../generated/protocol.js';
|
|
31
31
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
32
32
|
import * as Common from '../common/common.js';
|
|
33
|
-
import type * as Platform from '../platform/platform.js';
|
|
34
33
|
import * as i18n from '../i18n/i18n.js';
|
|
35
34
|
|
|
36
35
|
import type {DebuggerModel} from './DebuggerModel.js';
|
|
@@ -165,8 +164,8 @@ export class Script implements TextUtils.ContentProvider.ContentProvider, FrameA
|
|
|
165
164
|
}
|
|
166
165
|
|
|
167
166
|
// TODO(crbug.com/1253323): Cast to RawPathString will be removed when migration to branded types is complete.
|
|
168
|
-
contentURL():
|
|
169
|
-
return this.sourceURL
|
|
167
|
+
contentURL(): string {
|
|
168
|
+
return this.sourceURL;
|
|
170
169
|
}
|
|
171
170
|
|
|
172
171
|
contentType(): Common.ResourceType.ResourceType {
|
|
@@ -313,10 +312,6 @@ export class Script implements TextUtils.ContentProvider.ContentProvider, FrameA
|
|
|
313
312
|
return !this.sourceURL;
|
|
314
313
|
}
|
|
315
314
|
|
|
316
|
-
isInlineScriptWithSourceURL(): boolean {
|
|
317
|
-
return Boolean(this.hasSourceURL) && this.isInlineScript();
|
|
318
|
-
}
|
|
319
|
-
|
|
320
315
|
async setBlackboxedRanges(positions: Protocol.Debugger.ScriptPosition[]): Promise<boolean> {
|
|
321
316
|
const response = await this.debuggerModel.target().debuggerAgent().invoke_setBlackboxedRanges(
|
|
322
317
|
{scriptId: this.scriptId, positions});
|
|
@@ -25,13 +25,17 @@ const str_ = i18n.i18n.registerUIStrings('core/sdk/ServiceWorkerCacheModel.ts',
|
|
|
25
25
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
26
26
|
|
|
27
27
|
export class ServiceWorkerCacheModel extends SDKModel<EventTypes> implements ProtocolProxyApi.StorageDispatcher {
|
|
28
|
-
readonly #cachesInternal: Map<string, Cache>;
|
|
29
28
|
readonly cacheAgent: ProtocolProxyApi.CacheStorageApi;
|
|
30
29
|
readonly #storageAgent: ProtocolProxyApi.StorageApi;
|
|
31
30
|
readonly #securityOriginManager: SecurityOriginManager;
|
|
32
|
-
|
|
33
|
-
readonly #
|
|
34
|
-
#
|
|
31
|
+
|
|
32
|
+
readonly #cachesInternal = new Map<string, Cache>();
|
|
33
|
+
readonly #originsUpdated = new Set<string>();
|
|
34
|
+
readonly #throttler = new Common.Throttler.Throttler(2000);
|
|
35
|
+
#enabled = false;
|
|
36
|
+
|
|
37
|
+
// Used by tests to remove the Throttler timeout.
|
|
38
|
+
#scheduleAsSoonAsPossible = false;
|
|
35
39
|
|
|
36
40
|
/**
|
|
37
41
|
* Invariant: This #model can only be constructed on a ServiceWorker target.
|
|
@@ -40,16 +44,9 @@ export class ServiceWorkerCacheModel extends SDKModel<EventTypes> implements Pro
|
|
|
40
44
|
super(target);
|
|
41
45
|
target.registerStorageDispatcher(this);
|
|
42
46
|
|
|
43
|
-
this.#cachesInternal = new Map();
|
|
44
|
-
|
|
45
47
|
this.cacheAgent = target.cacheStorageAgent();
|
|
46
48
|
this.#storageAgent = target.storageAgent();
|
|
47
49
|
this.#securityOriginManager = (target.model(SecurityOriginManager) as SecurityOriginManager);
|
|
48
|
-
|
|
49
|
-
this.#originsUpdated = new Set();
|
|
50
|
-
this.#throttler = new Common.Throttler.Throttler(2000);
|
|
51
|
-
|
|
52
|
-
this.#enabled = false;
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
enable(): void {
|
|
@@ -240,7 +237,7 @@ export class ServiceWorkerCacheModel extends SDKModel<EventTypes> implements Pro
|
|
|
240
237
|
const promises = Array.from(this.#originsUpdated, origin => this.loadCacheNames(origin));
|
|
241
238
|
this.#originsUpdated.clear();
|
|
242
239
|
return Promise.all(promises);
|
|
243
|
-
});
|
|
240
|
+
}, this.#scheduleAsSoonAsPossible);
|
|
244
241
|
}
|
|
245
242
|
|
|
246
243
|
cacheStorageContentUpdated({origin, cacheName}: Protocol.Storage.CacheStorageContentUpdatedEvent): void {
|
|
@@ -252,6 +249,10 @@ export class ServiceWorkerCacheModel extends SDKModel<EventTypes> implements Pro
|
|
|
252
249
|
|
|
253
250
|
indexedDBContentUpdated(_event: Protocol.Storage.IndexedDBContentUpdatedEvent): void {
|
|
254
251
|
}
|
|
252
|
+
|
|
253
|
+
setThrottlerSchedulesAsSoonAsPossibleForTest(): void {
|
|
254
|
+
this.#scheduleAsSoonAsPossible = true;
|
|
255
|
+
}
|
|
255
256
|
}
|
|
256
257
|
|
|
257
258
|
// TODO(crbug.com/1167717): Make this a const enum again
|
|
@@ -155,14 +155,6 @@ const UIStrings = {
|
|
|
155
155
|
*/
|
|
156
156
|
hideScrollPerformanceBottlenecks: 'Hide scroll performance bottlenecks',
|
|
157
157
|
/**
|
|
158
|
-
*@description Title of a setting under the Rendering category that can be invoked through the Command Menu
|
|
159
|
-
*/
|
|
160
|
-
showHittestBorders: 'Show hit-test borders',
|
|
161
|
-
/**
|
|
162
|
-
*@description Title of a setting under the Rendering category that can be invoked through the Command Menu
|
|
163
|
-
*/
|
|
164
|
-
hideHittestBorders: 'Hide hit-test borders',
|
|
165
|
-
/**
|
|
166
158
|
*@description Title of a Rendering setting that can be invoked through the Command Menu
|
|
167
159
|
*/
|
|
168
160
|
emulateAFocusedPage: 'Emulate a focused page',
|
|
@@ -665,24 +657,6 @@ Common.Settings.registerSettingExtension({
|
|
|
665
657
|
defaultValue: false,
|
|
666
658
|
});
|
|
667
659
|
|
|
668
|
-
Common.Settings.registerSettingExtension({
|
|
669
|
-
category: Common.Settings.SettingCategory.RENDERING,
|
|
670
|
-
settingName: 'showHitTestBorders',
|
|
671
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
672
|
-
storageType: Common.Settings.SettingStorageType.Session,
|
|
673
|
-
options: [
|
|
674
|
-
{
|
|
675
|
-
value: true,
|
|
676
|
-
title: i18nLazyString(UIStrings.showHittestBorders),
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
value: false,
|
|
680
|
-
title: i18nLazyString(UIStrings.hideHittestBorders),
|
|
681
|
-
},
|
|
682
|
-
],
|
|
683
|
-
defaultValue: false,
|
|
684
|
-
});
|
|
685
|
-
|
|
686
660
|
Common.Settings.registerSettingExtension({
|
|
687
661
|
category: Common.Settings.SettingCategory.RENDERING,
|
|
688
662
|
title: i18nLazyString(UIStrings.emulateAFocusedPage),
|