chrome-devtools-frontend 1.0.982087 → 1.0.995227
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/AUTHORS +2 -0
- package/config/gni/devtools_grd_files.gni +8 -7
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/.eslintrc.js +10 -0
- package/front_end/Images/src/ic_rendering.svg +3 -0
- package/front_end/core/common/ParsedURL.ts +39 -28
- package/front_end/core/common/ResourceType.ts +1 -1
- package/front_end/core/common/SettingRegistration.ts +1 -0
- package/front_end/core/host/InspectorFrontendHost.ts +4 -4
- package/front_end/core/host/InspectorFrontendHostAPI.ts +7 -6
- package/front_end/core/host/Platform.ts +11 -2
- package/front_end/core/host/UserMetrics.ts +27 -2
- package/front_end/core/i18n/DevToolsLocale.ts +4 -0
- package/front_end/core/i18n/locales/af.json +76 -16
- package/front_end/core/i18n/locales/am.json +76 -16
- package/front_end/core/i18n/locales/ar.json +77 -17
- package/front_end/core/i18n/locales/as.json +76 -16
- package/front_end/core/i18n/locales/az.json +76 -16
- package/front_end/core/i18n/locales/be.json +75 -15
- package/front_end/core/i18n/locales/bg.json +76 -16
- package/front_end/core/i18n/locales/bn.json +76 -16
- package/front_end/core/i18n/locales/bs.json +88 -28
- package/front_end/core/i18n/locales/ca.json +76 -16
- package/front_end/core/i18n/locales/cs.json +76 -16
- package/front_end/core/i18n/locales/cy.json +76 -16
- package/front_end/core/i18n/locales/da.json +77 -17
- package/front_end/core/i18n/locales/de.json +178 -118
- package/front_end/core/i18n/locales/el.json +76 -16
- package/front_end/core/i18n/locales/en-GB.json +76 -16
- package/front_end/core/i18n/locales/en-US.json +193 -52
- package/front_end/core/i18n/locales/en-XL.json +193 -52
- package/front_end/core/i18n/locales/es-419.json +76 -16
- package/front_end/core/i18n/locales/es.json +76 -16
- package/front_end/core/i18n/locales/et.json +76 -16
- package/front_end/core/i18n/locales/eu.json +76 -16
- package/front_end/core/i18n/locales/fa.json +83 -23
- package/front_end/core/i18n/locales/fi.json +76 -16
- package/front_end/core/i18n/locales/fil.json +76 -16
- package/front_end/core/i18n/locales/fr-CA.json +76 -16
- package/front_end/core/i18n/locales/fr.json +76 -16
- package/front_end/core/i18n/locales/gl.json +76 -16
- package/front_end/core/i18n/locales/gu.json +76 -16
- package/front_end/core/i18n/locales/he.json +76 -16
- package/front_end/core/i18n/locales/hi.json +76 -16
- package/front_end/core/i18n/locales/hr.json +76 -16
- package/front_end/core/i18n/locales/hu.json +76 -16
- package/front_end/core/i18n/locales/hy.json +76 -16
- package/front_end/core/i18n/locales/id.json +79 -19
- package/front_end/core/i18n/locales/is.json +75 -15
- package/front_end/core/i18n/locales/it.json +124 -64
- package/front_end/core/i18n/locales/ja.json +76 -16
- package/front_end/core/i18n/locales/ka.json +76 -16
- package/front_end/core/i18n/locales/kk.json +76 -16
- package/front_end/core/i18n/locales/km.json +76 -16
- package/front_end/core/i18n/locales/kn.json +76 -16
- package/front_end/core/i18n/locales/ko.json +76 -16
- package/front_end/core/i18n/locales/ky.json +76 -16
- package/front_end/core/i18n/locales/lo.json +76 -16
- package/front_end/core/i18n/locales/lt.json +76 -16
- package/front_end/core/i18n/locales/lv.json +76 -16
- package/front_end/core/i18n/locales/mk.json +76 -16
- package/front_end/core/i18n/locales/ml.json +76 -16
- package/front_end/core/i18n/locales/mn.json +76 -16
- package/front_end/core/i18n/locales/mr.json +76 -16
- package/front_end/core/i18n/locales/ms.json +76 -16
- package/front_end/core/i18n/locales/my.json +78 -18
- package/front_end/core/i18n/locales/ne.json +76 -16
- package/front_end/core/i18n/locales/nl.json +77 -17
- package/front_end/core/i18n/locales/no.json +76 -16
- package/front_end/core/i18n/locales/or.json +76 -16
- package/front_end/core/i18n/locales/pa.json +76 -16
- package/front_end/core/i18n/locales/pl.json +78 -18
- package/front_end/core/i18n/locales/pt-PT.json +123 -63
- package/front_end/core/i18n/locales/pt.json +78 -18
- package/front_end/core/i18n/locales/ro.json +76 -16
- package/front_end/core/i18n/locales/ru.json +77 -17
- package/front_end/core/i18n/locales/si.json +76 -16
- package/front_end/core/i18n/locales/sk.json +76 -16
- package/front_end/core/i18n/locales/sl.json +76 -16
- package/front_end/core/i18n/locales/sq.json +76 -16
- package/front_end/core/i18n/locales/sr-Latn.json +76 -16
- package/front_end/core/i18n/locales/sr.json +76 -16
- package/front_end/core/i18n/locales/sv.json +76 -16
- package/front_end/core/i18n/locales/sw.json +76 -16
- package/front_end/core/i18n/locales/ta.json +77 -17
- package/front_end/core/i18n/locales/te.json +76 -16
- package/front_end/core/i18n/locales/th.json +76 -16
- package/front_end/core/i18n/locales/tr.json +76 -16
- package/front_end/core/i18n/locales/uk.json +76 -16
- package/front_end/core/i18n/locales/ur.json +76 -16
- package/front_end/core/i18n/locales/uz.json +77 -17
- package/front_end/core/i18n/locales/vi.json +76 -16
- package/front_end/core/i18n/locales/zh-HK.json +76 -16
- package/front_end/core/i18n/locales/zh-TW.json +76 -16
- package/front_end/core/i18n/locales/zh.json +76 -16
- package/front_end/core/i18n/locales/zu.json +76 -16
- package/front_end/core/platform/dom-utilities.ts +16 -0
- package/front_end/core/platform/platform.ts +2 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +2 -1
- package/front_end/core/protocol_client/NodeURL.ts +1 -1
- package/front_end/core/root/Runtime.ts +6 -0
- package/front_end/core/sdk/AccessibilityModel.ts +7 -6
- package/front_end/core/sdk/CSSMatchedStyles.ts +71 -17
- package/front_end/core/sdk/CSSMetadata.ts +15 -0
- package/front_end/core/sdk/CSSModel.ts +9 -7
- package/front_end/core/sdk/CSSProperty.ts +97 -11
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +9 -5
- package/front_end/core/sdk/CSSSupports.ts +4 -1
- package/front_end/core/sdk/ChildTargetManager.ts +3 -1
- package/front_end/core/sdk/Connections.ts +3 -2
- package/front_end/core/sdk/ConsoleModel.ts +6 -5
- package/front_end/core/sdk/Cookie.ts +4 -2
- package/front_end/core/sdk/DOMDebuggerModel.ts +10 -6
- package/front_end/core/sdk/DOMModel.ts +2 -2
- package/front_end/core/sdk/DebuggerModel.ts +27 -5
- package/front_end/core/sdk/HeapProfilerModel.ts +2 -1
- package/front_end/core/sdk/NetworkManager.ts +13 -12
- package/front_end/core/sdk/NetworkRequest.ts +1 -1
- package/front_end/core/sdk/PageLoad.ts +3 -1
- package/front_end/core/sdk/PageResourceLoader.ts +9 -7
- package/front_end/core/sdk/ProfileTreeModel.ts +3 -2
- package/front_end/core/sdk/RemoteObject.ts +18 -6
- package/front_end/core/sdk/ResourceTreeModel.ts +17 -11
- package/front_end/core/sdk/ScreenCaptureModel.ts +3 -0
- package/front_end/core/sdk/Script.ts +4 -3
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +2 -1
- package/front_end/core/sdk/SourceMap.ts +10 -6
- package/front_end/core/sdk/SourceMapManager.ts +47 -5
- package/front_end/core/sdk/TracingModel.ts +0 -9
- package/front_end/devtools_compatibility.js +1 -0
- package/front_end/entrypoints/formatter_worker/CSSRuleParser.ts +1 -1
- package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +10 -3
- package/front_end/entrypoints/main/MainImpl.ts +22 -2
- package/front_end/generated/InspectorBackendCommands.js +79 -14
- package/front_end/generated/SupportedCSSProperties.js +21 -8
- package/front_end/generated/protocol-mapping.d.ts +4 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +158 -28
- package/front_end/legacy/legacy-defs.d.ts +0 -4
- package/front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js +1 -1
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +1 -0
- package/front_end/models/bindings/BreakpointManager.ts +68 -11
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +9 -2
- package/front_end/models/bindings/CompilerScriptMapping.ts +3 -2
- package/front_end/models/bindings/ContentProviderBasedProject.ts +12 -9
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +10 -8
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -1
- package/front_end/models/bindings/DefaultScriptMapping.ts +8 -2
- package/front_end/models/bindings/IgnoreListManager.ts +5 -5
- package/front_end/models/bindings/ResourceUtils.ts +5 -4
- package/front_end/models/emulation/EmulatedDevices.ts +17 -0
- package/front_end/models/extensions/ExtensionAPI.ts +5 -2
- package/front_end/models/extensions/ExtensionPanel.ts +2 -1
- package/front_end/models/extensions/ExtensionServer.ts +13 -8
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +0 -63
- package/front_end/models/issues_manager/CookieIssue.ts +7 -0
- package/front_end/models/issues_manager/DeprecationIssue.ts +326 -8
- package/front_end/models/issues_manager/IssuesManager.ts +4 -0
- package/front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/front_end/models/issues_manager/descriptions/deprecation.md +1 -1
- package/front_end/models/logs/LogManager.ts +2 -1
- package/front_end/models/logs/NetworkLog.ts +14 -12
- package/front_end/models/persistence/Automapping.ts +17 -16
- package/front_end/models/persistence/EditFileSystemView.ts +5 -4
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +24 -24
- package/front_end/models/persistence/IsolatedFileSystem.ts +2 -2
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +7 -6
- package/front_end/models/persistence/NetworkPersistenceManager.ts +92 -54
- package/front_end/models/persistence/PersistenceImpl.ts +7 -7
- package/front_end/models/persistence/PlatformFileSystem.ts +7 -8
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +3 -2
- package/front_end/models/text_utils/CodeMirrorUtils.ts +53 -0
- package/front_end/models/text_utils/text_utils.ts +2 -0
- package/front_end/models/timeline_model/TimelineModel.ts +31 -30
- package/front_end/models/timeline_model/TimelineProfileTree.ts +3 -2
- package/front_end/models/workspace/UISourceCode.ts +16 -14
- package/front_end/models/workspace/WorkspaceImpl.ts +40 -16
- package/front_end/panels/accessibility/AccessibilitySubPane.ts +2 -1
- package/front_end/panels/application/AppManifestView.ts +1 -1
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +5 -4
- package/front_end/panels/application/ApplicationPanelSidebar.ts +34 -30
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +5 -4
- package/front_end/panels/application/DatabaseQueryView.ts +2 -1
- package/front_end/panels/application/InterestGroupTreeElement.ts +3 -2
- package/front_end/panels/application/ReportingApiTreeElement.ts +3 -2
- package/front_end/panels/application/ResourcesPanel.ts +4 -3
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +6 -1
- package/front_end/panels/application/TrustTokensTreeElement.ts +3 -2
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +10 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +163 -13
- package/front_end/panels/application/components/backForwardCacheView.css +15 -4
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +19 -19
- package/front_end/panels/changes/ChangesView.ts +38 -0
- package/front_end/panels/console/ConsolePinPane.ts +7 -0
- package/front_end/panels/console/ConsolePrompt.ts +11 -1
- package/front_end/panels/console/ConsoleSidebar.ts +2 -1
- package/front_end/panels/console/ConsoleView.ts +57 -31
- package/front_end/panels/console/ConsoleViewMessage.ts +12 -9
- package/front_end/panels/console/ConsoleViewport.ts +2 -1
- package/front_end/panels/console/ErrorStackParser.ts +8 -4
- package/front_end/panels/console/consoleView.css +0 -1
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/coverage/CoverageModel.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +2 -1
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +7 -6
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +0 -48
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +5 -0
- package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +2 -0
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +2 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -1
- package/front_end/panels/elements/ElementStatePaneWidget.ts +4 -6
- package/front_end/panels/elements/ElementsPanel.ts +16 -5
- package/front_end/panels/elements/ImagePreviewPopover.ts +6 -4
- package/front_end/panels/elements/PropertiesWidget.ts +4 -24
- package/front_end/panels/elements/StyleEditorWidget.ts +2 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +1614 -0
- package/front_end/panels/elements/StylePropertyHighlighter.ts +2 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +20 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +97 -1675
- package/front_end/panels/elements/elements-legacy.ts +3 -3
- package/front_end/panels/elements/elements.ts +3 -0
- package/front_end/panels/elements/stylesSidebarPane.css +3 -1
- package/front_end/panels/input/InputTimeline.ts +1 -1
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +0 -50
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +14 -2
- package/front_end/panels/issues/IssueAggregator.ts +8 -0
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/lighthouse/LighthouseController.ts +5 -1
- package/front_end/panels/lighthouse/LighthousePanel.ts +3 -1
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +3 -3
- package/front_end/panels/network/BlockedURLsPane.ts +3 -2
- package/front_end/panels/network/NetworkConfigView.ts +6 -0
- package/front_end/panels/network/NetworkDataGridNode.ts +4 -0
- package/front_end/panels/network/NetworkLogView.ts +1 -1
- package/front_end/panels/network/RequestHTMLView.ts +1 -0
- package/front_end/panels/network/RequestHeadersView.ts +71 -10
- package/front_end/panels/network/networkLogView.css +9 -17
- package/front_end/panels/network/requestHeadersTree.css +16 -0
- package/front_end/panels/profiler/HeapSnapshotView.ts +2 -0
- package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -1
- package/front_end/panels/profiler/heapProfiler.css +15 -3
- package/front_end/panels/screencast/ScreencastView.ts +1 -1
- package/front_end/panels/search/SearchConfig.ts +2 -1
- package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -2
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +4 -4
- package/front_end/panels/sources/BreakpointEditDialog.ts +0 -1
- package/front_end/panels/sources/CSSPlugin.ts +6 -6
- package/front_end/panels/sources/CoveragePlugin.ts +2 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +4 -4
- package/front_end/panels/sources/EditingLocationHistoryManager.ts +4 -1
- package/front_end/panels/sources/NavigatorView.ts +28 -20
- package/front_end/panels/sources/SearchSourcesView.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +4 -2
- package/front_end/panels/sources/SourcesPanel.ts +4 -4
- package/front_end/panels/sources/SourcesSearchScope.ts +12 -8
- package/front_end/panels/sources/SourcesView.ts +3 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/components/HeadersView.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +9 -9
- package/front_end/panels/timeline/TimelinePanel.ts +1 -1
- package/front_end/panels/timeline/timelinePanel.css +1 -2
- package/front_end/panels/utils/utils.ts +97 -0
- package/front_end/third_party/codemirror.next/bundle.ts +27 -25
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/java.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/json.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/php.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/python.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/wast.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +2 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1884 -2281
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +21 -32
- package/front_end/third_party/lit-html/README.chromium +3 -3
- package/front_end/third_party/lit-html/package/README.md +1 -1
- package/front_end/third_party/lit-html/package/async-directive.d.ts +1 -1
- 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 +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/choose.d.ts +32 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.js +41 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/join.d.ts +21 -0
- package/front_end/third_party/lit-html/package/development/directives/join.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/join.js +19 -0
- package/front_end/third_party/lit-html/package/development/directives/join.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts +23 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.js +39 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/map.d.ts +23 -0
- package/front_end/third_party/lit-html/package/development/directives/map.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/map.js +30 -0
- package/front_end/third_party/lit-html/package/development/directives/map.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/range.d.ts +24 -0
- package/front_end/third_party/lit-html/package/development/directives/range.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/range.js +13 -0
- package/front_end/third_party/lit-html/package/development/directives/range.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -1
- package/front_end/third_party/lit-html/package/development/directives/when.d.ts +26 -0
- package/front_end/third_party/lit-html/package/development/directives/when.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/when.js +9 -0
- package/front_end/third_party/lit-html/package/development/directives/when.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts +182 -1
- 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 +187 -4
- package/front_end/third_party/lit-html/package/development/lit-html.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 +7 -0
- package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/choose.d.ts +32 -0
- package/front_end/third_party/lit-html/package/directives/choose.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/choose.js +7 -0
- package/front_end/third_party/lit-html/package/directives/choose.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/class-map.js +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.js +1 -1
- package/front_end/third_party/lit-html/package/directives/join.d.ts +21 -0
- package/front_end/third_party/lit-html/package/directives/join.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/join.js +7 -0
- package/front_end/third_party/lit-html/package/directives/join.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/keyed.d.ts +23 -0
- package/front_end/third_party/lit-html/package/directives/keyed.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/keyed.js +7 -0
- package/front_end/third_party/lit-html/package/directives/keyed.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/map.d.ts +23 -0
- package/front_end/third_party/lit-html/package/directives/map.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/map.js +7 -0
- package/front_end/third_party/lit-html/package/directives/map.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/range.d.ts +24 -0
- package/front_end/third_party/lit-html/package/directives/range.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/range.js +7 -0
- package/front_end/third_party/lit-html/package/directives/range.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/ref.js +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.js +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.js +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.js +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js +1 -1
- package/front_end/third_party/lit-html/package/directives/until.js +1 -1
- package/front_end/third_party/lit-html/package/directives/when.d.ts +26 -0
- package/front_end/third_party/lit-html/package/directives/when.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/when.js +7 -0
- package/front_end/third_party/lit-html/package/directives/when.js.map +1 -0
- package/front_end/third_party/lit-html/package/lit-html.d.ts +182 -1
- 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 +25 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.js +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/puppeteer/README.chromium +1 -1
- package/front_end/third_party/puppeteer/package/README.md +12 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +12 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +7 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +8 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +6 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +6 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +2 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +10 -6
- package/front_end/third_party/puppeteer/package/package.json +17 -17
- package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +1 -1
- package/front_end/ui/components/data_grid/DataGrid.ts +8 -9
- package/front_end/ui/components/data_grid/DataGridController.ts +3 -1
- package/front_end/ui/components/docs/panel_introduction_steps/basic.html +25 -0
- package/front_end/ui/components/docs/panel_introduction_steps/basic.ts +25 -0
- package/front_end/ui/components/input/input.ts +2 -2
- package/front_end/ui/components/linkifier/LinkifierUtils.ts +3 -1
- package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +44 -0
- package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +56 -0
- package/front_end/ui/components/panel_introduction_steps/panel_introduction_steps.ts +5 -0
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +3 -4
- package/front_end/ui/components/text_editor/TextEditor.ts +1 -1
- package/front_end/ui/components/text_editor/config.ts +1 -35
- package/front_end/ui/components/text_editor/javascript.ts +8 -8
- package/front_end/ui/components/tree_outline/TreeOutline.ts +10 -9
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
- package/front_end/ui/legacy/ARIAUtils.ts +4 -2
- package/front_end/ui/legacy/ContextMenu.ts +14 -0
- package/front_end/ui/legacy/DockController.ts +2 -1
- package/front_end/ui/legacy/SettingsUI.ts +3 -3
- package/front_end/ui/legacy/SoftContextMenu.ts +43 -14
- package/front_end/ui/legacy/Toolbar.ts +16 -0
- package/front_end/ui/legacy/Treeoutline.ts +17 -7
- package/front_end/ui/legacy/UIUtils.ts +2 -2
- package/front_end/ui/legacy/View.ts +14 -8
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/ViewRegistration.ts +6 -0
- package/front_end/ui/legacy/Widget.ts +2 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +43 -11
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +98 -48
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +4 -3
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +24 -28
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +5 -11
- package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +8 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -7
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +11 -10
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -1
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +12 -7
- package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -5
- package/front_end/ui/legacy/reportView.css +1 -0
- package/front_end/ui/legacy/splitWidget.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +1 -0
- package/front_end/ui/legacy/themeColors.css +1 -1
- package/front_end/ui/legacy/toolbar.css +17 -1
- package/front_end/ui/legacy/utils/focus-changed.ts +3 -1
- package/inspector_overlay/.eslintrc.js +9 -0
- package/package.json +17 -17
- package/scripts/eslint_rules/lib/check_component_naming.js +4 -0
- package/scripts/eslint_rules/lib/es_modules_import.js +6 -0
- package/scripts/eslint_rules/lib/inject_checkbox_styles.js +121 -0
- package/scripts/eslint_rules/tests/es_modules_import_test.js +12 -0
- package/scripts/eslint_rules/tests/inject_checkbox_styles_test.js +127 -0
- package/front_end/models/issues_manager/descriptions/arAttributionEventSourceTriggerDataTooLarge.md +0 -4
- package/front_end/models/issues_manager/descriptions/arAttributionTriggerDataTooLarge.md +0 -4
- package/front_end/models/issues_manager/descriptions/arInvalidAttributionData.md +0 -8
- package/front_end/models/issues_manager/descriptions/arInvalidEventSourceTriggerData.md +0 -9
- package/front_end/models/issues_manager/descriptions/arInvalidTriggerDedupKey.md +0 -5
- package/front_end/models/issues_manager/descriptions/arInvalidTriggerPriority.md +0 -5
- package/front_end/models/issues_manager/descriptions/arMissingAttributionData.md +0 -7
@@ -964,16 +964,10 @@ export namespace Audits {
|
|
964
964
|
export const enum AttributionReportingIssueType {
|
965
965
|
PermissionPolicyDisabled = 'PermissionPolicyDisabled',
|
966
966
|
InvalidAttributionSourceEventId = 'InvalidAttributionSourceEventId',
|
967
|
-
InvalidAttributionData = 'InvalidAttributionData',
|
968
967
|
AttributionSourceUntrustworthyOrigin = 'AttributionSourceUntrustworthyOrigin',
|
969
968
|
AttributionUntrustworthyOrigin = 'AttributionUntrustworthyOrigin',
|
970
|
-
AttributionTriggerDataTooLarge = 'AttributionTriggerDataTooLarge',
|
971
|
-
AttributionEventSourceTriggerDataTooLarge = 'AttributionEventSourceTriggerDataTooLarge',
|
972
969
|
InvalidAttributionSourceExpiry = 'InvalidAttributionSourceExpiry',
|
973
970
|
InvalidAttributionSourcePriority = 'InvalidAttributionSourcePriority',
|
974
|
-
InvalidEventSourceTriggerData = 'InvalidEventSourceTriggerData',
|
975
|
-
InvalidTriggerPriority = 'InvalidTriggerPriority',
|
976
|
-
InvalidTriggerDedupKey = 'InvalidTriggerDedupKey',
|
977
971
|
}
|
978
972
|
|
979
973
|
/**
|
@@ -1024,6 +1018,42 @@ export namespace Audits {
|
|
1024
1018
|
frameId?: Page.FrameId;
|
1025
1019
|
}
|
1026
1020
|
|
1021
|
+
export const enum DeprecationIssueType {
|
1022
|
+
AuthorizationCoveredByWildcard = 'AuthorizationCoveredByWildcard',
|
1023
|
+
CookieWithTruncatingChar = 'CookieWithTruncatingChar',
|
1024
|
+
CrossOriginAccessBasedOnDocumentDomain = 'CrossOriginAccessBasedOnDocumentDomain',
|
1025
|
+
CrossOriginWindowAlert = 'CrossOriginWindowAlert',
|
1026
|
+
CrossOriginWindowConfirm = 'CrossOriginWindowConfirm',
|
1027
|
+
DeprecationExample = 'DeprecationExample',
|
1028
|
+
DocumentDomainSettingWithoutOriginAgentClusterHeader = 'DocumentDomainSettingWithoutOriginAgentClusterHeader',
|
1029
|
+
GeolocationInsecureOrigin = 'GeolocationInsecureOrigin',
|
1030
|
+
GeolocationInsecureOriginDeprecatedNotRemoved = 'GeolocationInsecureOriginDeprecatedNotRemoved',
|
1031
|
+
GetUserMediaInsecureOrigin = 'GetUserMediaInsecureOrigin',
|
1032
|
+
LegacyConstraintGoogCpuOveruseDetection = 'LegacyConstraintGoogCpuOveruseDetection',
|
1033
|
+
LegacyConstraintGoogIPv6 = 'LegacyConstraintGoogIPv6',
|
1034
|
+
LegacyConstraintGoogScreencastMinBitrate = 'LegacyConstraintGoogScreencastMinBitrate',
|
1035
|
+
LegacyConstraintGoogSuspendBelowMinBitrate = 'LegacyConstraintGoogSuspendBelowMinBitrate',
|
1036
|
+
LocalCSSFileExtensionRejected = 'LocalCSSFileExtensionRejected',
|
1037
|
+
NotificationInsecureOrigin = 'NotificationInsecureOrigin',
|
1038
|
+
ObsoleteWebRtcCipherSuite = 'ObsoleteWebRtcCipherSuite',
|
1039
|
+
PictureSourceSrc = 'PictureSourceSrc',
|
1040
|
+
PrefixedCancelAnimationFrame = 'PrefixedCancelAnimationFrame',
|
1041
|
+
PrefixedRequestAnimationFrame = 'PrefixedRequestAnimationFrame',
|
1042
|
+
RTCConstraintEnableDtlsSrtpFalse = 'RTCConstraintEnableDtlsSrtpFalse',
|
1043
|
+
RTCConstraintEnableDtlsSrtpTrue = 'RTCConstraintEnableDtlsSrtpTrue',
|
1044
|
+
RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics =
|
1045
|
+
'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics',
|
1046
|
+
RTCPeerConnectionLegacyCreateWithMediaConstraints = 'RTCPeerConnectionLegacyCreateWithMediaConstraints',
|
1047
|
+
RTPDataChannel = 'RTPDataChannel',
|
1048
|
+
SharedArrayBufferConstructedWithoutIsolation = 'SharedArrayBufferConstructedWithoutIsolation',
|
1049
|
+
Untranslated = 'Untranslated',
|
1050
|
+
V8SharedArrayBufferConstructedInExtensionWithoutIsolation =
|
1051
|
+
'V8SharedArrayBufferConstructedInExtensionWithoutIsolation',
|
1052
|
+
WebCodecsVideoFrameDefaultTimestamp = 'WebCodecsVideoFrameDefaultTimestamp',
|
1053
|
+
XHRJSONEncodingDetection = 'XHRJSONEncodingDetection',
|
1054
|
+
XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload = 'XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload',
|
1055
|
+
}
|
1056
|
+
|
1027
1057
|
/**
|
1028
1058
|
* This issue tracks information needed to print a deprecation message.
|
1029
1059
|
* The formatting is inherited from the old console.log version, see more at:
|
@@ -1035,14 +1065,18 @@ export namespace Audits {
|
|
1035
1065
|
affectedFrame?: AffectedFrame;
|
1036
1066
|
sourceCodeLocation: SourceCodeLocation;
|
1037
1067
|
/**
|
1038
|
-
* The content of
|
1068
|
+
* The content of an untranslated deprecation issue,
|
1039
1069
|
* e.g. "window.inefficientLegacyStorageMethod will be removed in M97,
|
1040
1070
|
* around January 2022. Please use Web Storage or Indexed Database
|
1041
1071
|
* instead. This standard was abandoned in January, 1970. See
|
1042
1072
|
* https://www.chromestatus.com/feature/5684870116278272 for more details."
|
1043
1073
|
*/
|
1044
1074
|
message?: string;
|
1045
|
-
|
1075
|
+
/**
|
1076
|
+
* The id of an untranslated deprecation issue e.g. PrefixedStorageInfo.
|
1077
|
+
*/
|
1078
|
+
deprecationType?: string;
|
1079
|
+
type: DeprecationIssueType;
|
1046
1080
|
}
|
1047
1081
|
|
1048
1082
|
export const enum ClientHintIssueReason {
|
@@ -1063,6 +1097,11 @@ export namespace Audits {
|
|
1063
1097
|
export const enum FederatedAuthRequestIssueReason {
|
1064
1098
|
ApprovalDeclined = 'ApprovalDeclined',
|
1065
1099
|
TooManyRequests = 'TooManyRequests',
|
1100
|
+
ManifestListHttpNotFound = 'ManifestListHttpNotFound',
|
1101
|
+
ManifestListNoResponse = 'ManifestListNoResponse',
|
1102
|
+
ManifestListInvalidResponse = 'ManifestListInvalidResponse',
|
1103
|
+
ManifestNotInManifestList = 'ManifestNotInManifestList',
|
1104
|
+
ManifestListTooBig = 'ManifestListTooBig',
|
1066
1105
|
ManifestHttpNotFound = 'ManifestHttpNotFound',
|
1067
1106
|
ManifestNoResponse = 'ManifestNoResponse',
|
1068
1107
|
ManifestInvalidResponse = 'ManifestInvalidResponse',
|
@@ -2189,6 +2228,10 @@ export namespace CSS {
|
|
2189
2228
|
* Supports rule text.
|
2190
2229
|
*/
|
2191
2230
|
text: string;
|
2231
|
+
/**
|
2232
|
+
* Whether the supports condition is satisfied.
|
2233
|
+
*/
|
2234
|
+
active: boolean;
|
2192
2235
|
/**
|
2193
2236
|
* The associated rule header range in the enclosing stylesheet (if
|
2194
2237
|
* available).
|
@@ -10112,13 +10155,16 @@ export namespace Page {
|
|
10112
10155
|
AmbientLightSensor = 'ambient-light-sensor',
|
10113
10156
|
AttributionReporting = 'attribution-reporting',
|
10114
10157
|
Autoplay = 'autoplay',
|
10158
|
+
BrowsingTopics = 'browsing-topics',
|
10115
10159
|
Camera = 'camera',
|
10116
10160
|
ChDpr = 'ch-dpr',
|
10117
10161
|
ChDeviceMemory = 'ch-device-memory',
|
10118
10162
|
ChDownlink = 'ch-downlink',
|
10119
10163
|
ChEct = 'ch-ect',
|
10164
|
+
ChPartitionedCookies = 'ch-partitioned-cookies',
|
10120
10165
|
ChPrefersColorScheme = 'ch-prefers-color-scheme',
|
10121
10166
|
ChRtt = 'ch-rtt',
|
10167
|
+
ChSaveData = 'ch-save-data',
|
10122
10168
|
ChUa = 'ch-ua',
|
10123
10169
|
ChUaArch = 'ch-ua-arch',
|
10124
10170
|
ChUaBitness = 'ch-ua-bitness',
|
@@ -10134,7 +10180,6 @@ export namespace Page {
|
|
10134
10180
|
ChViewportHeight = 'ch-viewport-height',
|
10135
10181
|
ChViewportWidth = 'ch-viewport-width',
|
10136
10182
|
ChWidth = 'ch-width',
|
10137
|
-
ChPartitionedCookies = 'ch-partitioned-cookies',
|
10138
10183
|
ClipboardRead = 'clipboard-read',
|
10139
10184
|
ClipboardWrite = 'clipboard-write',
|
10140
10185
|
CrossOriginIsolated = 'cross-origin-isolated',
|
@@ -10152,6 +10197,7 @@ export namespace Page {
|
|
10152
10197
|
Gyroscope = 'gyroscope',
|
10153
10198
|
Hid = 'hid',
|
10154
10199
|
IdleDetection = 'idle-detection',
|
10200
|
+
InterestCohort = 'interest-cohort',
|
10155
10201
|
JoinAdInterestGroup = 'join-ad-interest-group',
|
10156
10202
|
KeyboardMap = 'keyboard-map',
|
10157
10203
|
Magnetometer = 'magnetometer',
|
@@ -10625,10 +10671,6 @@ export namespace Page {
|
|
10625
10671
|
* The fantasy font-family.
|
10626
10672
|
*/
|
10627
10673
|
fantasy?: string;
|
10628
|
-
/**
|
10629
|
-
* The pictograph font-family.
|
10630
|
-
*/
|
10631
|
-
pictograph?: string;
|
10632
10674
|
}
|
10633
10675
|
|
10634
10676
|
/**
|
@@ -10759,7 +10801,6 @@ export namespace Page {
|
|
10759
10801
|
JavaScriptExecution = 'JavaScriptExecution',
|
10760
10802
|
RendererProcessKilled = 'RendererProcessKilled',
|
10761
10803
|
RendererProcessCrashed = 'RendererProcessCrashed',
|
10762
|
-
GrantedMediaStreamAccess = 'GrantedMediaStreamAccess',
|
10763
10804
|
SchedulerTrackedFeatureUsed = 'SchedulerTrackedFeatureUsed',
|
10764
10805
|
ConflictingBrowsingInstance = 'ConflictingBrowsingInstance',
|
10765
10806
|
CacheFlushed = 'CacheFlushed',
|
@@ -10786,7 +10827,6 @@ export namespace Page {
|
|
10786
10827
|
ForegroundCacheLimit = 'ForegroundCacheLimit',
|
10787
10828
|
BrowsingInstanceNotSwapped = 'BrowsingInstanceNotSwapped',
|
10788
10829
|
BackForwardCacheDisabledForDelegate = 'BackForwardCacheDisabledForDelegate',
|
10789
|
-
OptInUnloadHeaderNotPresent = 'OptInUnloadHeaderNotPresent',
|
10790
10830
|
UnloadHandlerExistsInMainFrame = 'UnloadHandlerExistsInMainFrame',
|
10791
10831
|
UnloadHandlerExistsInSubFrame = 'UnloadHandlerExistsInSubFrame',
|
10792
10832
|
ServiceWorkerUnregistration = 'ServiceWorkerUnregistration',
|
@@ -10796,6 +10836,8 @@ export namespace Page {
|
|
10796
10836
|
NoResponseHead = 'NoResponseHead',
|
10797
10837
|
Unknown = 'Unknown',
|
10798
10838
|
ActivationNavigationsDisallowedForBug1234857 = 'ActivationNavigationsDisallowedForBug1234857',
|
10839
|
+
ErrorDocument = 'ErrorDocument',
|
10840
|
+
FencedFramesEmbedder = 'FencedFramesEmbedder',
|
10799
10841
|
WebSocket = 'WebSocket',
|
10800
10842
|
WebTransport = 'WebTransport',
|
10801
10843
|
WebRTC = 'WebRTC',
|
@@ -10910,6 +10952,13 @@ export namespace Page {
|
|
10910
10952
|
children: BackForwardCacheNotRestoredExplanationTree[];
|
10911
10953
|
}
|
10912
10954
|
|
10955
|
+
/**
|
10956
|
+
* List of FinalStatus reasons for Prerender2.
|
10957
|
+
*/
|
10958
|
+
export const enum PrerenderFinalStatus {
|
10959
|
+
Activated = 'Activated',
|
10960
|
+
}
|
10961
|
+
|
10913
10962
|
export interface AddScriptToEvaluateOnLoadRequest {
|
10914
10963
|
scriptSource: string;
|
10915
10964
|
}
|
@@ -11082,15 +11131,15 @@ export namespace Page {
|
|
11082
11131
|
|
11083
11132
|
export interface GetLayoutMetricsResponse extends ProtocolResponseWithError {
|
11084
11133
|
/**
|
11085
|
-
* Deprecated metrics relating to the layout viewport.
|
11134
|
+
* Deprecated metrics relating to the layout viewport. Is in device pixels. Use `cssLayoutViewport` instead.
|
11086
11135
|
*/
|
11087
11136
|
layoutViewport: LayoutViewport;
|
11088
11137
|
/**
|
11089
|
-
* Deprecated metrics relating to the visual viewport.
|
11138
|
+
* Deprecated metrics relating to the visual viewport. Is in device pixels. Use `cssVisualViewport` instead.
|
11090
11139
|
*/
|
11091
11140
|
visualViewport: VisualViewport;
|
11092
11141
|
/**
|
11093
|
-
* Deprecated size of scrollable area.
|
11142
|
+
* Deprecated size of scrollable area. Is in DP. Use `cssContentSize` instead.
|
11094
11143
|
*/
|
11095
11144
|
contentSize: DOM.Rect;
|
11096
11145
|
/**
|
@@ -11909,6 +11958,18 @@ export namespace Page {
|
|
11909
11958
|
notRestoredExplanationsTree?: BackForwardCacheNotRestoredExplanationTree;
|
11910
11959
|
}
|
11911
11960
|
|
11961
|
+
/**
|
11962
|
+
* Fired when a prerender attempt is completed.
|
11963
|
+
*/
|
11964
|
+
export interface PrerenderAttemptCompletedEvent {
|
11965
|
+
/**
|
11966
|
+
* The frame id of the frame initiating prerendering.
|
11967
|
+
*/
|
11968
|
+
initiatingFrameId: FrameId;
|
11969
|
+
prerenderingUrl: string;
|
11970
|
+
finalStatus: PrerenderFinalStatus;
|
11971
|
+
}
|
11972
|
+
|
11912
11973
|
export interface LoadEventFiredEvent {
|
11913
11974
|
timestamp: Network.MonotonicTime;
|
11914
11975
|
}
|
@@ -14466,24 +14527,38 @@ export namespace Media {
|
|
14466
14527
|
value: string;
|
14467
14528
|
}
|
14468
14529
|
|
14469
|
-
|
14470
|
-
|
14471
|
-
|
14530
|
+
/**
|
14531
|
+
* Represents logged source line numbers reported in an error.
|
14532
|
+
* NOTE: file and line are from chromium c++ implementation code, not js.
|
14533
|
+
*/
|
14534
|
+
export interface PlayerErrorSourceLocation {
|
14535
|
+
file: string;
|
14536
|
+
line: integer;
|
14472
14537
|
}
|
14473
14538
|
|
14474
14539
|
/**
|
14475
14540
|
* Corresponds to kMediaError
|
14476
14541
|
*/
|
14477
14542
|
export interface PlayerError {
|
14478
|
-
|
14543
|
+
errorType: string;
|
14479
14544
|
/**
|
14480
|
-
*
|
14481
|
-
*
|
14482
|
-
* a Status instance. This also seems like a duplicate of the error
|
14483
|
-
* level enum - there is a todo bug to have that level removed and
|
14484
|
-
* use this instead. (crbug.com/1068454)
|
14545
|
+
* Code is the numeric enum entry for a specific set of error codes, such
|
14546
|
+
* as PipelineStatusCodes in media/base/pipeline_status.h
|
14485
14547
|
*/
|
14486
|
-
|
14548
|
+
code: integer;
|
14549
|
+
/**
|
14550
|
+
* A trace of where this error was caused / where it passed through.
|
14551
|
+
*/
|
14552
|
+
stack: PlayerErrorSourceLocation[];
|
14553
|
+
/**
|
14554
|
+
* Errors potentially have a root cause error, ie, a DecoderError might be
|
14555
|
+
* caused by an WindowsError
|
14556
|
+
*/
|
14557
|
+
cause: PlayerError[];
|
14558
|
+
/**
|
14559
|
+
* Extra data attached to an error, such as an HRESULT, Video Codec, etc.
|
14560
|
+
*/
|
14561
|
+
data: any;
|
14487
14562
|
}
|
14488
14563
|
|
14489
14564
|
/**
|
@@ -14619,6 +14694,13 @@ export namespace Debugger {
|
|
14619
14694
|
* The value being returned, if the function is at return point.
|
14620
14695
|
*/
|
14621
14696
|
returnValue?: Runtime.RemoteObject;
|
14697
|
+
/**
|
14698
|
+
* Valid only while the VM is paused and indicates whether this frame
|
14699
|
+
* can be restarted or not. Note that a `true` value here does not
|
14700
|
+
* guarantee that Debugger#restartFrame with this CallFrameId will be
|
14701
|
+
* successful, but it is very likely.
|
14702
|
+
*/
|
14703
|
+
canBeRestarted?: boolean;
|
14622
14704
|
}
|
14623
14705
|
|
14624
14706
|
export const enum ScopeType {
|
@@ -15869,6 +15951,42 @@ export namespace Runtime {
|
|
15869
15951
|
*/
|
15870
15952
|
export type ScriptId = OpaqueIdentifier<string, 'Protocol.Runtime.ScriptId'>;
|
15871
15953
|
|
15954
|
+
export const enum WebDriverValueType {
|
15955
|
+
Undefined = 'undefined',
|
15956
|
+
Null = 'null',
|
15957
|
+
String = 'string',
|
15958
|
+
Number = 'number',
|
15959
|
+
Boolean = 'boolean',
|
15960
|
+
Bigint = 'bigint',
|
15961
|
+
Regexp = 'regexp',
|
15962
|
+
Date = 'date',
|
15963
|
+
Symbol = 'symbol',
|
15964
|
+
Array = 'array',
|
15965
|
+
Object = 'object',
|
15966
|
+
Function = 'function',
|
15967
|
+
Map = 'map',
|
15968
|
+
Set = 'set',
|
15969
|
+
Weakmap = 'weakmap',
|
15970
|
+
Weakset = 'weakset',
|
15971
|
+
Error = 'error',
|
15972
|
+
Proxy = 'proxy',
|
15973
|
+
Promise = 'promise',
|
15974
|
+
Typedarray = 'typedarray',
|
15975
|
+
Arraybuffer = 'arraybuffer',
|
15976
|
+
Node = 'node',
|
15977
|
+
Window = 'window',
|
15978
|
+
}
|
15979
|
+
|
15980
|
+
/**
|
15981
|
+
* Represents the value serialiazed by the WebDriver BiDi specification
|
15982
|
+
* https://w3c.github.io/webdriver-bidi.
|
15983
|
+
*/
|
15984
|
+
export interface WebDriverValue {
|
15985
|
+
type: WebDriverValueType;
|
15986
|
+
value?: any;
|
15987
|
+
objectId?: string;
|
15988
|
+
}
|
15989
|
+
|
15872
15990
|
/**
|
15873
15991
|
* Unique object identifier.
|
15874
15992
|
*/
|
@@ -15944,6 +16062,10 @@ export namespace Runtime {
|
|
15944
16062
|
* String representation of the object.
|
15945
16063
|
*/
|
15946
16064
|
description?: string;
|
16065
|
+
/**
|
16066
|
+
* WebDriver BiDi representation of the value.
|
16067
|
+
*/
|
16068
|
+
webDriverValue?: WebDriverValue;
|
15947
16069
|
/**
|
15948
16070
|
* Unique object identifier (for non-primitive values).
|
15949
16071
|
*/
|
@@ -16440,6 +16562,10 @@ export namespace Runtime {
|
|
16440
16562
|
* Whether to throw an exception if side effect cannot be ruled out during evaluation.
|
16441
16563
|
*/
|
16442
16564
|
throwOnSideEffect?: boolean;
|
16565
|
+
/**
|
16566
|
+
* Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi.
|
16567
|
+
*/
|
16568
|
+
generateWebDriverValue?: boolean;
|
16443
16569
|
}
|
16444
16570
|
|
16445
16571
|
export interface CallFunctionOnResponse extends ProtocolResponseWithError {
|
@@ -16562,6 +16688,10 @@ export namespace Runtime {
|
|
16562
16688
|
* This is mutually exclusive with `contextId`.
|
16563
16689
|
*/
|
16564
16690
|
uniqueContextId?: string;
|
16691
|
+
/**
|
16692
|
+
* Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi.
|
16693
|
+
*/
|
16694
|
+
generateWebDriverValue?: boolean;
|
16565
16695
|
}
|
16566
16696
|
|
16567
16697
|
export interface EvaluateResponse extends ProtocolResponseWithError {
|
@@ -60,10 +60,6 @@ declare namespace Adb {
|
|
60
60
|
type NetworkDiscoveryConfig = string[];
|
61
61
|
}
|
62
62
|
|
63
|
-
interface Document {
|
64
|
-
deepActiveElement(): Element|null;
|
65
|
-
}
|
66
|
-
|
67
63
|
interface HTMLElement {
|
68
64
|
createChild(tagName: string, className?: string, content?: string): HTMLElement;
|
69
65
|
totalOffset(): {left: number, top: number};
|
@@ -474,7 +474,7 @@ HeapProfilerTestRunner.checkArrayIsSorted = function(contents, sortType, sortOrd
|
|
474
474
|
|
475
475
|
HeapProfilerTestRunner.clickColumn = function(column, callback) {
|
476
476
|
callback = TestRunner.safeWrap(callback);
|
477
|
-
const cell = this.currentGrid().
|
477
|
+
const cell = this.currentGrid().dataTableHeaders[column.id];
|
478
478
|
|
479
479
|
const event = {target: cell};
|
480
480
|
|
@@ -23,6 +23,7 @@ self.Platform = self.Platform || {};
|
|
23
23
|
self.Platform.StringUtilities = Platform.StringUtilities;
|
24
24
|
self.Platform.MapUtilities = Platform.MapUtilities;
|
25
25
|
self.Platform.ArrayUtilities = Platform.ArrayUtilities;
|
26
|
+
self.Platform.DOMUtilities = Platform.DOMUtilities;
|
26
27
|
self.createPlainTextSearchRegex = Platform.StringUtilities.createPlainTextSearchRegex;
|
27
28
|
String.sprintf = Platform.StringUtilities.sprintf;
|
28
29
|
String.regexSpecialCharacters = Platform.StringUtilities.regexSpecialCharacters;
|
@@ -29,6 +29,7 @@
|
|
29
29
|
*/
|
30
30
|
|
31
31
|
import * as Common from '../../core/common/common.js';
|
32
|
+
import * as Root from '../../core/root/root.js';
|
32
33
|
import * as SDK from '../../core/sdk/sdk.js';
|
33
34
|
import type * as Platform from '../../core/platform/platform.js';
|
34
35
|
import type * as Protocol from '../../generated/protocol.js';
|
@@ -38,10 +39,12 @@ import * as Workspace from '../workspace/workspace.js';
|
|
38
39
|
import {DebuggerWorkspaceBinding} from './DebuggerWorkspaceBinding.js';
|
39
40
|
import type {LiveLocation} from './LiveLocation.js';
|
40
41
|
import {LiveLocationPool} from './LiveLocation.js';
|
42
|
+
import {DefaultScriptMapping} from './DefaultScriptMapping.js';
|
41
43
|
|
42
44
|
let breakpointManagerInstance: BreakpointManager;
|
43
45
|
|
44
|
-
export class BreakpointManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
46
|
+
export class BreakpointManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes> implements
|
47
|
+
SDK.TargetManager.SDKModelObserver<SDK.DebuggerModel.DebuggerModel> {
|
45
48
|
readonly storage: Storage;
|
46
49
|
readonly #workspace: Workspace.Workspace.WorkspaceImpl;
|
47
50
|
readonly targetManager: SDK.TargetManager.TargetManager;
|
@@ -64,6 +67,8 @@ export class BreakpointManager extends Common.ObjectWrapper.ObjectWrapper<EventT
|
|
64
67
|
this.#workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeAdded, this.uiSourceCodeAdded, this);
|
65
68
|
this.#workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeRemoved, this.uiSourceCodeRemoved, this);
|
66
69
|
this.#workspace.addEventListener(Workspace.Workspace.Events.ProjectRemoved, this.projectRemoved, this);
|
70
|
+
|
71
|
+
this.targetManager.observeModels(SDK.DebuggerModel.DebuggerModel, this);
|
67
72
|
}
|
68
73
|
|
69
74
|
static instance(opts: {
|
@@ -86,20 +91,73 @@ export class BreakpointManager extends Common.ObjectWrapper.ObjectWrapper<EventT
|
|
86
91
|
return breakpointManagerInstance;
|
87
92
|
}
|
88
93
|
|
89
|
-
static breakpointStorageId(url:
|
94
|
+
static breakpointStorageId(url: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber?: number): string {
|
90
95
|
if (!url) {
|
91
96
|
return '';
|
92
97
|
}
|
93
98
|
return `${url}:${lineNumber}` + (typeof columnNumber === 'number' ? `:${columnNumber}` : '');
|
94
99
|
}
|
95
100
|
|
96
|
-
|
101
|
+
modelAdded(debuggerModel: SDK.DebuggerModel.DebuggerModel): void {
|
102
|
+
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.INSTRUMENTATION_BREAKPOINTS)) {
|
103
|
+
debuggerModel.setSynchronizeBreakpointsCallback(this.#restoreBreakpointsForScript.bind(this));
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
modelRemoved(): void {
|
108
|
+
}
|
109
|
+
|
110
|
+
async copyBreakpoints(fromURL: Platform.DevToolsPath.UrlString, toSourceCode: Workspace.UISourceCode.UISourceCode):
|
111
|
+
Promise<void> {
|
97
112
|
const breakpointItems = this.storage.breakpointItems(fromURL);
|
98
113
|
for (const item of breakpointItems) {
|
99
114
|
await this.setBreakpoint(toSourceCode, item.lineNumber, item.columnNumber, item.condition, item.enabled);
|
100
115
|
}
|
101
116
|
}
|
102
117
|
|
118
|
+
// This method explicitly awaits the source map (if necessary) and the uiSourceCodes
|
119
|
+
// required to set all breakpoints that are related to this script.
|
120
|
+
async #restoreBreakpointsForScript(script: SDK.Script.Script): Promise<void> {
|
121
|
+
if (!Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.INSTRUMENTATION_BREAKPOINTS)) {
|
122
|
+
return;
|
123
|
+
}
|
124
|
+
const debuggerModel = script.debuggerModel;
|
125
|
+
if (this.#hasBreakpointsForUrl(script.sourceURL)) {
|
126
|
+
// Handle inline scripts without sourceURL comment separately:
|
127
|
+
// The UISourceCode of inline scripts without sourceURLs will not be availabe
|
128
|
+
// until a later point. Use the v8 script for setting the breakpoint.
|
129
|
+
const isInlineScriptWithoutSourceURL = script.isInlineScript() && !script.hasSourceURL;
|
130
|
+
const sourceURL =
|
131
|
+
isInlineScriptWithoutSourceURL ? DefaultScriptMapping.createV8ScriptURL(script) : script.sourceURL;
|
132
|
+
const uiSourceCode = await Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURLPromise(sourceURL);
|
133
|
+
await this.#restoreBreakpointsForUrl(uiSourceCode);
|
134
|
+
}
|
135
|
+
|
136
|
+
// Handle source maps and the original sources.
|
137
|
+
const sourceMap = await debuggerModel.sourceMapManager().sourceMapForClientPromise(script);
|
138
|
+
if (sourceMap) {
|
139
|
+
for (const sourceURL of sourceMap.sourceURLs()) {
|
140
|
+
if (this.#hasBreakpointsForUrl(sourceURL)) {
|
141
|
+
const uiSourceCode = await Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURLPromise(sourceURL);
|
142
|
+
await this.#restoreBreakpointsForUrl(uiSourceCode);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
async #restoreBreakpointsForUrl(uiSourceCode: Workspace.UISourceCode.UISourceCode): Promise<void> {
|
149
|
+
this.restoreBreakpoints(uiSourceCode);
|
150
|
+
const breakpoints = this.#breakpointByStorageId.values();
|
151
|
+
const affectedBreakpoints = Array.from(breakpoints).filter(x => x.uiSourceCodes.has(uiSourceCode));
|
152
|
+
// Make sure to properly await their updates
|
153
|
+
await Promise.all(affectedBreakpoints.map(bp => bp.updateBreakpoint()));
|
154
|
+
}
|
155
|
+
|
156
|
+
#hasBreakpointsForUrl(url: Platform.DevToolsPath.UrlString): boolean {
|
157
|
+
const breakpointItems = this.storage.breakpointItems(url);
|
158
|
+
return breakpointItems.length > 0;
|
159
|
+
}
|
160
|
+
|
103
161
|
private restoreBreakpoints(uiSourceCode: Workspace.UISourceCode.UISourceCode): void {
|
104
162
|
const url = uiSourceCode.url();
|
105
163
|
if (!url) {
|
@@ -158,7 +216,7 @@ export class BreakpointManager extends Common.ObjectWrapper.ObjectWrapper<EventT
|
|
158
216
|
if (breakpoint) {
|
159
217
|
breakpoint.updateState(condition, enabled);
|
160
218
|
breakpoint.addUISourceCode(uiSourceCode);
|
161
|
-
breakpoint.updateBreakpoint();
|
219
|
+
void breakpoint.updateBreakpoint();
|
162
220
|
return breakpoint;
|
163
221
|
}
|
164
222
|
breakpoint = new Breakpoint(this, uiSourceCode, uiSourceCode.url(), lineNumber, columnNumber, condition, enabled);
|
@@ -468,19 +526,18 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
|
|
468
526
|
this.#enabledInternal = enabled;
|
469
527
|
this.#conditionInternal = condition;
|
470
528
|
this.breakpointManager.storage.updateBreakpoint(this);
|
471
|
-
this.updateBreakpoint();
|
529
|
+
void this.updateBreakpoint();
|
472
530
|
}
|
473
531
|
|
474
|
-
updateBreakpoint(): void {
|
532
|
+
async updateBreakpoint(): Promise<void> {
|
475
533
|
if (!this.bound()) {
|
476
534
|
this.removeAllUnboundLocations();
|
477
535
|
if (!this.isRemoved) {
|
478
536
|
this.addAllUnboundLocations();
|
479
537
|
}
|
480
538
|
}
|
481
|
-
|
482
|
-
|
483
|
-
}
|
539
|
+
await Promise.all(
|
540
|
+
Array.from(this.#modelBreakpoints.values()).map(modelBreakpoint => modelBreakpoint.scheduleUpdateInDebugger()));
|
484
541
|
}
|
485
542
|
|
486
543
|
remove(keepInStorage: boolean): void {
|
@@ -868,7 +925,7 @@ class Storage {
|
|
868
925
|
this.#muted = undefined;
|
869
926
|
}
|
870
927
|
|
871
|
-
breakpointItems(url:
|
928
|
+
breakpointItems(url: Platform.DevToolsPath.UrlString): Storage.Item[] {
|
872
929
|
return Array.from(this.#breakpoints.values()).filter(item => item.url === url);
|
873
930
|
}
|
874
931
|
|
@@ -894,7 +951,7 @@ class Storage {
|
|
894
951
|
|
895
952
|
namespace Storage {
|
896
953
|
export class Item {
|
897
|
-
url:
|
954
|
+
url: Platform.DevToolsPath.UrlString;
|
898
955
|
lineNumber: number;
|
899
956
|
columnNumber?: number;
|
900
957
|
condition: string;
|
@@ -157,6 +157,13 @@ export class CSSWorkspaceBinding implements SDK.TargetManager.SDKModelObserver<S
|
|
157
157
|
addSourceMapping(sourceMapping: SourceMapping): void {
|
158
158
|
this.#sourceMappings.push(sourceMapping);
|
159
159
|
}
|
160
|
+
|
161
|
+
removeSourceMapping(sourceMapping: SourceMapping): void {
|
162
|
+
const index = this.#sourceMappings.indexOf(sourceMapping);
|
163
|
+
if (index !== -1) {
|
164
|
+
this.#sourceMappings.splice(index, 1);
|
165
|
+
}
|
166
|
+
}
|
160
167
|
}
|
161
168
|
|
162
169
|
export interface SourceMapping {
|
@@ -170,7 +177,7 @@ export class ModelInfo {
|
|
170
177
|
#stylesSourceMapping: StylesSourceMapping;
|
171
178
|
#sassSourceMapping: SASSSourceMapping;
|
172
179
|
readonly #locations: Platform.MapUtilities.Multimap<SDK.CSSStyleSheetHeader.CSSStyleSheetHeader, LiveLocation>;
|
173
|
-
readonly #unboundLocations: Platform.MapUtilities.Multimap<
|
180
|
+
readonly #unboundLocations: Platform.MapUtilities.Multimap<Platform.DevToolsPath.UrlString, LiveLocation>;
|
174
181
|
constructor(cssModel: SDK.CSSModel.CSSModel, workspace: Workspace.Workspace.WorkspaceImpl) {
|
175
182
|
this.#eventListeners = [
|
176
183
|
cssModel.addEventListener(
|
@@ -289,7 +296,7 @@ export class ModelInfo {
|
|
289
296
|
}
|
290
297
|
|
291
298
|
export class LiveLocation extends LiveLocationWithPool {
|
292
|
-
readonly url:
|
299
|
+
readonly url: Platform.DevToolsPath.UrlString;
|
293
300
|
readonly #lineNumber: number;
|
294
301
|
readonly #columnNumber: number;
|
295
302
|
readonly #info: ModelInfo;
|
@@ -107,7 +107,7 @@ export class CompilerScriptMapping implements DebuggerSourceMapping {
|
|
107
107
|
|
108
108
|
private addStubUISourceCode(script: SDK.Script.Script): void {
|
109
109
|
const stubUISourceCode = this.#stubProject.addContentProvider(
|
110
|
-
script.sourceURL
|
110
|
+
Common.ParsedURL.ParsedURL.concatenate(script.sourceURL, ':sourcemap'),
|
111
111
|
TextUtils.StaticContentProvider.StaticContentProvider.fromString(
|
112
112
|
script.sourceURL, Common.ResourceType.resourceTypes.Script,
|
113
113
|
'\n\n\n\n\n// Please wait a bit.\n// Compiled script is not shown while source map is being loaded!'),
|
@@ -161,7 +161,8 @@ export class CompilerScriptMapping implements DebuggerSourceMapping {
|
|
161
161
|
}
|
162
162
|
}
|
163
163
|
|
164
|
-
uiSourceCodeForURL(url:
|
164
|
+
uiSourceCodeForURL(url: Platform.DevToolsPath.UrlString, isContentScript: boolean):
|
165
|
+
Workspace.UISourceCode.UISourceCode|null {
|
165
166
|
return isContentScript ? this.#contentScriptsProject.uiSourceCodeForURL(url) :
|
166
167
|
this.#regularProject.uiSourceCodeForURL(url);
|
167
168
|
}
|
@@ -118,7 +118,7 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
118
118
|
rename(
|
119
119
|
uiSourceCode: Workspace.UISourceCode.UISourceCode, newName: Platform.DevToolsPath.RawPathString,
|
120
120
|
callback:
|
121
|
-
(arg0: boolean, arg1?: string|undefined, arg2?:
|
121
|
+
(arg0: boolean, arg1?: string|undefined, arg2?: Platform.DevToolsPath.UrlString|undefined,
|
122
122
|
arg3?: Common.ResourceType.ResourceType|undefined) => void): void {
|
123
123
|
const path = uiSourceCode.url();
|
124
124
|
this.performRename(path, newName, innerCallback.bind(this));
|
@@ -137,7 +137,7 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
137
137
|
}
|
138
138
|
}
|
139
139
|
|
140
|
-
excludeFolder(_path:
|
140
|
+
excludeFolder(_path: Platform.DevToolsPath.UrlString): void {
|
141
141
|
}
|
142
142
|
|
143
143
|
canExcludeFolder(_path: Platform.DevToolsPath.EncodedPathString): boolean {
|
@@ -160,7 +160,9 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
160
160
|
remove(): void {
|
161
161
|
}
|
162
162
|
|
163
|
-
performRename(
|
163
|
+
performRename(
|
164
|
+
path: Platform.DevToolsPath.UrlString, newName: string,
|
165
|
+
callback: (arg0: boolean, arg1?: string|undefined) => void): void {
|
164
166
|
callback(false);
|
165
167
|
}
|
166
168
|
|
@@ -173,11 +175,11 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
173
175
|
}
|
174
176
|
|
175
177
|
async findFilesMatchingSearchRequest(
|
176
|
-
searchConfig: Workspace.Workspace.ProjectSearchConfig,
|
178
|
+
searchConfig: Workspace.Workspace.ProjectSearchConfig, filesMatchingFileQuery: Platform.DevToolsPath.UrlString[],
|
177
179
|
progress: Common.Progress.Progress): Promise<string[]> {
|
178
180
|
const result: string[] = [];
|
179
|
-
progress.setTotalWork(
|
180
|
-
await Promise.all(
|
181
|
+
progress.setTotalWork(filesMatchingFileQuery.length);
|
182
|
+
await Promise.all(filesMatchingFileQuery.map(searchInContent.bind(this)));
|
181
183
|
progress.done();
|
182
184
|
return result;
|
183
185
|
|
@@ -211,14 +213,15 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
211
213
|
this.addUISourceCode(uiSourceCode);
|
212
214
|
}
|
213
215
|
|
214
|
-
addContentProvider(
|
215
|
-
|
216
|
+
addContentProvider(
|
217
|
+
url: Platform.DevToolsPath.UrlString, contentProvider: TextUtils.ContentProvider.ContentProvider,
|
218
|
+
mimeType: string): Workspace.UISourceCode.UISourceCode {
|
216
219
|
const uiSourceCode = this.createUISourceCode(url, contentProvider.contentType());
|
217
220
|
this.addUISourceCodeWithProvider(uiSourceCode, contentProvider, null, mimeType);
|
218
221
|
return uiSourceCode;
|
219
222
|
}
|
220
223
|
|
221
|
-
removeFile(path:
|
224
|
+
removeFile(path: Platform.DevToolsPath.UrlString): void {
|
222
225
|
this.#contentProviders.delete(path);
|
223
226
|
this.removeUISourceCode(path);
|
224
227
|
}
|