chrome-devtools-frontend 1.0.981004 → 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 +44 -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 +11 -10
- package/front_end/core/host/InspectorFrontendHostAPI.ts +15 -14
- 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 +208 -52
- package/front_end/core/i18n/locales/en-XL.json +208 -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/Target.ts +2 -1
- 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 +85 -16
- 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 +174 -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/FileUtils.ts +3 -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 +32 -30
- package/front_end/models/timeline_model/TimelineProfileTree.ts +3 -2
- package/front_end/models/workspace/FileManager.ts +9 -6
- 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/BackgroundServiceView.ts +2 -1
- 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/ConsoleFormat.ts +23 -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 +60 -32
- package/front_end/panels/console/ConsoleViewMessage.ts +15 -28
- 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/coverage/CoverageView.ts +2 -1
- 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/emulation/AdvancedApp.ts +6 -2
- package/front_end/panels/emulation/DeviceModeToolbar.ts +2 -1
- package/front_end/panels/input/InputTimeline.ts +3 -2
- 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/LighthouseReportRenderer.ts +1 -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 +3 -3
- 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 +5 -2
- package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
- package/front_end/panels/profiler/ProfileView.ts +2 -2
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -1
- package/front_end/panels/profiler/heapProfiler.css +15 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +4 -2
- package/front_end/panels/screencast/ScreencastView.ts +5 -2
- package/front_end/panels/search/SearchConfig.ts +2 -1
- package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +4 -1
- 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.css +17 -2
- package/front_end/panels/sources/components/HeadersView.ts +103 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +9 -9
- package/front_end/panels/timeline/TimelinePanel.ts +3 -2
- package/front_end/panels/timeline/TimelineUIUtils.ts +7 -0
- 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/lighthouse/lighthouse-dt-bundle.js +963 -886
- package/front_end/third_party/lighthouse/report/bundle.js +3 -2
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- 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_feedback/FeedbackButton.ts +4 -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/XLink.ts +8 -3
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +3 -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 +18 -9
- package/front_end/ui/legacy/components/utils/Linkifier.ts +13 -6
- 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 +2 -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
@@ -0,0 +1,53 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2022 Google Inc. All rights reserved.
|
3
|
+
*
|
4
|
+
* Redistribution and use in source and binary forms, with or without
|
5
|
+
* modification, are permitted provided that the following conditions are
|
6
|
+
* met:
|
7
|
+
*
|
8
|
+
* * Redistributions of source code must retain the above copyright
|
9
|
+
* notice, this list of conditions and the following disclaimer.
|
10
|
+
* * Redistributions in binary form must reproduce the above
|
11
|
+
* copyright notice, this list of conditions and the following disclaimer
|
12
|
+
* in the documentation and/or other materials provided with the
|
13
|
+
* distribution.
|
14
|
+
* * Neither the name of Google Inc. nor the names of its
|
15
|
+
* contributors may be used to endorse or promote products derived from
|
16
|
+
* this software without specific prior written permission.
|
17
|
+
*
|
18
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
+
*/
|
30
|
+
|
31
|
+
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
32
|
+
type Tokenizer =
|
33
|
+
(line: string, callback: (value: string, style: string|null) => void) => void;
|
34
|
+
|
35
|
+
export function createCssTokenizer(): Tokenizer {
|
36
|
+
async function tokenize(
|
37
|
+
line: string, callback: (value: string, style: string|null) => void): Promise<void> {
|
38
|
+
const streamParser = await CodeMirror.cssStreamParser();
|
39
|
+
const stream = new CodeMirror.StringStream();
|
40
|
+
stream.string = line;
|
41
|
+
|
42
|
+
const startState = streamParser.startState();
|
43
|
+
let lastPos = stream.pos;
|
44
|
+
while (!stream.eol()) {
|
45
|
+
const token = streamParser.token(stream, startState);
|
46
|
+
const segment = stream.current().substring(lastPos, stream.pos);
|
47
|
+
callback(segment, token);
|
48
|
+
lastPos = stream.pos;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
return tokenize;
|
52
|
+
}
|
53
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
+
import * as CodeMirrorUtils from './CodeMirrorUtils.js';
|
5
6
|
import * as ContentProvider from './ContentProvider.js';
|
6
7
|
import * as StaticContentProvider from './StaticContentProvider.js';
|
7
8
|
import * as Text from './Text.js';
|
@@ -10,6 +11,7 @@ import * as TextRange from './TextRange.js';
|
|
10
11
|
import * as TextUtils from './TextUtils.js';
|
11
12
|
|
12
13
|
export {
|
14
|
+
CodeMirrorUtils,
|
13
15
|
ContentProvider,
|
14
16
|
StaticContentProvider,
|
15
17
|
Text,
|
@@ -341,7 +341,7 @@ export class TimelineModelImpl {
|
|
341
341
|
}
|
342
342
|
this.legacyCurrentPage = metaEvent.args['data'] && metaEvent.args['data']['page'];
|
343
343
|
for (const thread of process.sortedThreads()) {
|
344
|
-
let workerUrl: null = null;
|
344
|
+
let workerUrl: Platform.DevToolsPath.UrlString|null = null;
|
345
345
|
if (thread.name() === TimelineModelImpl.WorkerThreadName ||
|
346
346
|
thread.name() === TimelineModelImpl.WorkerThreadNameLegacy) {
|
347
347
|
const workerMetaEvent = metadataEvents.workers.find(e => {
|
@@ -362,7 +362,7 @@ export class TimelineModelImpl {
|
|
362
362
|
if (workerId) {
|
363
363
|
this.workerIdByThread.set(thread, workerId);
|
364
364
|
}
|
365
|
-
workerUrl = workerMetaEvent.args['data']['url'] ||
|
365
|
+
workerUrl = workerMetaEvent.args['data']['url'] || Platform.DevToolsPath.EmptyUrlString;
|
366
366
|
}
|
367
367
|
this.processThreadEvents(
|
368
368
|
tracingModel, [{from: startTime, to: endTime}], thread, thread === metaEvent.thread, Boolean(workerUrl),
|
@@ -377,7 +377,7 @@ export class TimelineModelImpl {
|
|
377
377
|
from: number,
|
378
378
|
to: number,
|
379
379
|
main: boolean,
|
380
|
-
url:
|
380
|
+
url: Platform.DevToolsPath.UrlString,
|
381
381
|
}[]>();
|
382
382
|
for (const frame of this.pageFrames.values()) {
|
383
383
|
for (let i = 0; i < frame.processes.length; i++) {
|
@@ -399,8 +399,8 @@ export class TimelineModelImpl {
|
|
399
399
|
}
|
400
400
|
data.sort((a, b) => a.from - b.from || a.to - b.to);
|
401
401
|
const ranges = [];
|
402
|
-
let lastUrl:
|
403
|
-
let lastMainUrl:
|
402
|
+
let lastUrl: Platform.DevToolsPath.UrlString|null = null;
|
403
|
+
let lastMainUrl: Platform.DevToolsPath.UrlString|null = null;
|
404
404
|
let hasMain = false;
|
405
405
|
for (const item of data) {
|
406
406
|
const last = ranges[ranges.length - 1];
|
@@ -447,7 +447,7 @@ export class TimelineModelImpl {
|
|
447
447
|
this.workerIdByThread.set(thread, workerMetaEvent.args['data']['workerId'] || '');
|
448
448
|
this.processThreadEvents(
|
449
449
|
tracingModel, ranges, thread, false /* isMainThread */, true /* isWorker */, false /* forMainFrame */,
|
450
|
-
workerMetaEvent.args['data']['url'] ||
|
450
|
+
workerMetaEvent.args['data']['url'] || Platform.DevToolsPath.EmptyUrlString);
|
451
451
|
} else {
|
452
452
|
this.processThreadEvents(
|
453
453
|
tracingModel, ranges, thread, false /* isMainThread */, false /* isWorker */, false /* forMainFrame */,
|
@@ -695,18 +695,18 @@ export class TimelineModelImpl {
|
|
695
695
|
to: number,
|
696
696
|
}[],
|
697
697
|
thread: SDK.TracingModel.Thread, isMainThread: boolean, isWorker: boolean, forMainFrame: boolean,
|
698
|
-
url:
|
698
|
+
url: Platform.DevToolsPath.UrlString|null): void {
|
699
699
|
const track = new Track();
|
700
700
|
track.name = thread.name() || i18nString(UIStrings.threadS, {PH1: thread.id()});
|
701
701
|
track.type = TrackType.Other;
|
702
702
|
track.thread = thread;
|
703
703
|
if (isMainThread) {
|
704
704
|
track.type = TrackType.MainThread;
|
705
|
-
track.url = url ||
|
705
|
+
track.url = url || Platform.DevToolsPath.EmptyUrlString;
|
706
706
|
track.forMainFrame = forMainFrame;
|
707
707
|
} else if (isWorker) {
|
708
708
|
track.type = TrackType.Worker;
|
709
|
-
track.url = url ||
|
709
|
+
track.url = url || Platform.DevToolsPath.EmptyUrlString;
|
710
710
|
track.name = track.url ? i18nString(UIStrings.workerS, {PH1: track.url}) : i18nString(UIStrings.dedicatedWorker);
|
711
711
|
} else if (thread.name().startsWith('CompositorTileWorker')) {
|
712
712
|
track.type = TrackType.Raster;
|
@@ -840,26 +840,30 @@ export class TimelineModelImpl {
|
|
840
840
|
if (!lastStep) {
|
841
841
|
throw new Error('AsyncEvent.steps access is out of bounds.');
|
842
842
|
}
|
843
|
-
|
844
|
-
if (lastStep.phase !== SDK.TracingModel.Phase.AsyncEnd) {
|
843
|
+
if (lastStep.phase !== SDK.TracingModel.Phase.NestableAsyncEnd) {
|
845
844
|
continue;
|
846
845
|
}
|
847
|
-
const
|
848
|
-
|
846
|
+
const chromeLatencyInfo = asyncEvent.args['chrome_latency_info'];
|
847
|
+
|
848
|
+
const data = chromeLatencyInfo?.['component_info'];
|
849
|
+
asyncEvent.causedFrame =
|
850
|
+
Boolean(data?.some((c: any) => c['component_type'] === 'COMPONENT_INPUT_EVENT_LATENCY_RENDERER_SWAP'));
|
849
851
|
if (asyncEvent.hasCategory(TimelineModelImpl.Category.LatencyInfo)) {
|
850
|
-
if (lastStep.id && !this.knownInputEvents.has(
|
852
|
+
if (lastStep.id && !this.knownInputEvents.has(chromeLatencyInfo.trace_id)) {
|
851
853
|
continue;
|
852
854
|
}
|
853
855
|
if (asyncEvent.name === RecordType.InputLatencyMouseMove && !asyncEvent.causedFrame) {
|
854
856
|
continue;
|
855
857
|
}
|
856
858
|
// Coalesced events are not really been processed, no need to track them.
|
857
|
-
if (data['is_coalesced']) {
|
859
|
+
if (!data || data['is_coalesced']) {
|
858
860
|
continue;
|
859
861
|
}
|
860
|
-
|
862
|
+
|
863
|
+
const rendererMain =
|
864
|
+
data?.find((c: any) => c['component_type'] === 'COMPONENT_INPUT_EVENT_LATENCY_RENDERER_MAIN');
|
861
865
|
if (rendererMain) {
|
862
|
-
const time = rendererMain['
|
866
|
+
const time = rendererMain['time_us'] / 1000;
|
863
867
|
TimelineData.forEvent(asyncEvent.steps[0]).timeWaitingForMainThread =
|
864
868
|
time - asyncEvent.steps[0].startTime;
|
865
869
|
}
|
@@ -1207,9 +1211,8 @@ export class TimelineModelImpl {
|
|
1207
1211
|
|
1208
1212
|
private processBrowserEvent(event: SDK.TracingModel.Event): void {
|
1209
1213
|
if (event.name === RecordType.LatencyInfoFlow) {
|
1210
|
-
|
1211
|
-
|
1212
|
-
this.knownInputEvents.add(event.bind_id);
|
1214
|
+
if (event.args.chrome_latency_info.trace_id) {
|
1215
|
+
this.knownInputEvents.add(event.args.chrome_latency_info.trace_id);
|
1213
1216
|
}
|
1214
1217
|
return;
|
1215
1218
|
}
|
@@ -1376,8 +1379,8 @@ export class TimelineModelImpl {
|
|
1376
1379
|
return Array.from(this.pageFrames.values()).filter(frame => !frame.parent);
|
1377
1380
|
}
|
1378
1381
|
|
1379
|
-
pageURL():
|
1380
|
-
return this.mainFrame && this.mainFrame.url ||
|
1382
|
+
pageURL(): Platform.DevToolsPath.UrlString {
|
1383
|
+
return this.mainFrame && this.mainFrame.url || Platform.DevToolsPath.EmptyUrlString;
|
1381
1384
|
}
|
1382
1385
|
|
1383
1386
|
pageFrameById(frameId: Protocol.Page.FrameId): PageFrame|null {
|
@@ -1462,6 +1465,7 @@ export enum RecordType {
|
|
1462
1465
|
PaintSetup = 'PaintSetup',
|
1463
1466
|
Paint = 'Paint',
|
1464
1467
|
PaintImage = 'PaintImage',
|
1468
|
+
PrePaint = 'PrePaint',
|
1465
1469
|
Rasterize = 'Rasterize',
|
1466
1470
|
RasterTask = 'RasterTask',
|
1467
1471
|
ScrollLayer = 'ScrollLayer',
|
@@ -1639,7 +1643,7 @@ export class Track {
|
|
1639
1643
|
name: string;
|
1640
1644
|
type: TrackType;
|
1641
1645
|
forMainFrame: boolean;
|
1642
|
-
url:
|
1646
|
+
url: Platform.DevToolsPath.UrlString;
|
1643
1647
|
events: SDK.TracingModel.Event[];
|
1644
1648
|
asyncEvents: SDK.TracingModel.AsyncEvent[];
|
1645
1649
|
tasks: SDK.TracingModel.Event[];
|
@@ -1650,7 +1654,7 @@ export class Track {
|
|
1650
1654
|
this.type = TrackType.Other;
|
1651
1655
|
// TODO(dgozman): replace forMainFrame with a list of frames, urls and time ranges.
|
1652
1656
|
this.forMainFrame = false;
|
1653
|
-
this.url =
|
1657
|
+
this.url = Platform.DevToolsPath.EmptyUrlString;
|
1654
1658
|
// TODO(dgozman): do not distinguish between sync and async events.
|
1655
1659
|
this.events = [];
|
1656
1660
|
this.asyncEvents = [];
|
@@ -1731,13 +1735,13 @@ export class PageFrame {
|
|
1731
1735
|
time: number,
|
1732
1736
|
processId: number,
|
1733
1737
|
processPseudoId: string|null,
|
1734
|
-
url:
|
1738
|
+
url: Platform.DevToolsPath.UrlString,
|
1735
1739
|
}[];
|
1736
1740
|
deletedTime: number|null;
|
1737
1741
|
ownerNode: SDK.DOMModel.DeferredDOMNode|null;
|
1738
1742
|
constructor(payload: any) {
|
1739
1743
|
this.frameId = payload['frame'];
|
1740
|
-
this.url = payload['url'] ||
|
1744
|
+
this.url = payload['url'] || Platform.DevToolsPath.EmptyUrlString;
|
1741
1745
|
this.name = payload['name'];
|
1742
1746
|
this.children = [];
|
1743
1747
|
this.parent = null;
|
@@ -1788,7 +1792,7 @@ export class NetworkRequest {
|
|
1788
1792
|
receiveHeadersEnd: number,
|
1789
1793
|
};
|
1790
1794
|
mimeType!: string;
|
1791
|
-
url!:
|
1795
|
+
url!: Platform.DevToolsPath.UrlString;
|
1792
1796
|
requestMethod!: string;
|
1793
1797
|
private transferSize: number;
|
1794
1798
|
private maybeDiskCached: boolean;
|
@@ -2122,7 +2126,6 @@ export class InvalidationTracker {
|
|
2122
2126
|
lastScheduleStyleRecalculation = invalidation;
|
2123
2127
|
}
|
2124
2128
|
if (!lastScheduleStyleRecalculation) {
|
2125
|
-
console.error('Failed to lookup the event that scheduled a style invalidator invalidation.');
|
2126
2129
|
continue;
|
2127
2130
|
}
|
2128
2131
|
this.addSyntheticStyleRecalcInvalidation(
|
@@ -2142,7 +2145,6 @@ export class InvalidationTracker {
|
|
2142
2145
|
invalidation.selectorPart = styleInvalidatorInvalidation.selectorPart;
|
2143
2146
|
}
|
2144
2147
|
|
2145
|
-
this.addInvalidation(invalidation);
|
2146
2148
|
if (!invalidation.linkedRecalcStyleEvent) {
|
2147
2149
|
this.associateWithLastRecalcStyleEvent(invalidation);
|
2148
2150
|
}
|
@@ -2301,7 +2303,7 @@ export class TimelineAsyncEventTracker {
|
|
2301
2303
|
export class TimelineData {
|
2302
2304
|
warning: string|null;
|
2303
2305
|
previewElement: Element|null;
|
2304
|
-
url:
|
2306
|
+
url: Platform.DevToolsPath.UrlString|null;
|
2305
2307
|
backendNodeIds: Protocol.DOM.BackendNodeId[];
|
2306
2308
|
stackTrace: Protocol.Runtime.CallFrame[]|null;
|
2307
2309
|
picture: SDK.TracingModel.ObjectSnapshot|null;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
+
import type * as Platform from '../../core/platform/platform.js';
|
5
6
|
import type * as SDK from '../../core/sdk/sdk.js';
|
6
7
|
import type * as Protocol from '../../generated/protocol.js';
|
7
8
|
|
@@ -494,14 +495,14 @@ export class BottomUpNode extends Node {
|
|
494
495
|
}
|
495
496
|
}
|
496
497
|
|
497
|
-
export function eventURL(event: SDK.TracingModel.Event):
|
498
|
+
export function eventURL(event: SDK.TracingModel.Event): Platform.DevToolsPath.UrlString|null {
|
498
499
|
const data = event.args['data'] || event.args['beginData'];
|
499
500
|
if (data && data['url']) {
|
500
501
|
return data['url'];
|
501
502
|
}
|
502
503
|
let frame = eventStackFrame(event);
|
503
504
|
while (frame) {
|
504
|
-
const url = frame['url'];
|
505
|
+
const url = frame['url'] as Platform.DevToolsPath.UrlString;
|
505
506
|
if (url) {
|
506
507
|
return url;
|
507
508
|
}
|
@@ -30,15 +30,17 @@
|
|
30
30
|
|
31
31
|
import * as Common from '../../core/common/common.js';
|
32
32
|
import * as Host from '../../core/host/host.js';
|
33
|
+
import type * as Platform from '../../core/platform/platform.js';
|
33
34
|
|
34
35
|
let fileManagerInstance: FileManager|null;
|
35
36
|
|
36
37
|
interface SaveCallbackParam {
|
37
|
-
fileSystemPath?:
|
38
|
+
fileSystemPath?: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString;
|
38
39
|
}
|
39
40
|
|
40
41
|
export class FileManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes> {
|
41
|
-
private readonly saveCallbacks:
|
42
|
+
private readonly saveCallbacks:
|
43
|
+
Map<Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString, (arg0: SaveCallbackParam|null) => void>;
|
42
44
|
private constructor() {
|
43
45
|
super();
|
44
46
|
this.saveCallbacks = new Map();
|
@@ -59,7 +61,8 @@ export class FileManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
59
61
|
return fileManagerInstance;
|
60
62
|
}
|
61
63
|
|
62
|
-
save(url:
|
64
|
+
save(url: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString, content: string, forceSaveAs: boolean):
|
65
|
+
Promise<SaveCallbackParam|null> {
|
63
66
|
// Remove this url from the saved URLs while it is being saved.
|
64
67
|
const result = new Promise<SaveCallbackParam|null>(resolve => this.saveCallbacks.set(url, resolve));
|
65
68
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.save(url, content, forceSaveAs);
|
@@ -75,7 +78,7 @@ export class FileManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
75
78
|
}
|
76
79
|
}
|
77
80
|
|
78
|
-
private canceledSavedURL({data: url}: Common.EventTarget.EventTargetEvent<
|
81
|
+
private canceledSavedURL({data: url}: Common.EventTarget.EventTargetEvent<Platform.DevToolsPath.UrlString>): void {
|
79
82
|
const callback = this.saveCallbacks.get(url);
|
80
83
|
this.saveCallbacks.delete(url);
|
81
84
|
if (callback) {
|
@@ -83,11 +86,11 @@ export class FileManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
83
86
|
}
|
84
87
|
}
|
85
88
|
|
86
|
-
append(url:
|
89
|
+
append(url: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString, content: string): void {
|
87
90
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.append(url, content);
|
88
91
|
}
|
89
92
|
|
90
|
-
close(url:
|
93
|
+
close(url: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString): void {
|
91
94
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.close(url);
|
92
95
|
}
|
93
96
|
|
@@ -51,13 +51,11 @@ const UIStrings = {
|
|
51
51
|
const str_ = i18n.i18n.registerUIStrings('models/workspace/UISourceCode.ts', UIStrings);
|
52
52
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
53
53
|
|
54
|
-
// TODO(crbug.com/1297535): Casts to UrlString and RawPathString will be removed from this file when migration to branded types is complete.
|
55
|
-
|
56
54
|
export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes> implements
|
57
55
|
TextUtils.ContentProvider.ContentProvider {
|
58
56
|
private projectInternal: Project;
|
59
|
-
private urlInternal:
|
60
|
-
private readonly originInternal:
|
57
|
+
private urlInternal: Platform.DevToolsPath.UrlString;
|
58
|
+
private readonly originInternal: Platform.DevToolsPath.UrlString;
|
61
59
|
private readonly parentURLInternal: Platform.DevToolsPath.UrlString;
|
62
60
|
private nameInternal: string;
|
63
61
|
private contentTypeInternal: Common.ResourceType.ResourceType;
|
@@ -75,7 +73,7 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
75
73
|
private disableEditInternal: boolean;
|
76
74
|
private contentEncodedInternal?: boolean;
|
77
75
|
|
78
|
-
constructor(project: Project, url:
|
76
|
+
constructor(project: Project, url: Platform.DevToolsPath.UrlString, contentType: Common.ResourceType.ResourceType) {
|
79
77
|
super();
|
80
78
|
this.projectInternal = project;
|
81
79
|
this.urlInternal = url;
|
@@ -83,7 +81,8 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
83
81
|
const parsedURL = Common.ParsedURL.ParsedURL.fromString(url);
|
84
82
|
if (parsedURL) {
|
85
83
|
this.originInternal = parsedURL.securityOrigin();
|
86
|
-
this.parentURLInternal =
|
84
|
+
this.parentURLInternal =
|
85
|
+
Common.ParsedURL.ParsedURL.concatenate(this.originInternal, parsedURL.folderPathComponents);
|
87
86
|
if (parsedURL.queryParams) {
|
88
87
|
// in case file name contains query params, it doesn't look like a normal file name anymore
|
89
88
|
// so it can as well remain encoded
|
@@ -93,7 +92,7 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
93
92
|
this.nameInternal = decodeURIComponent(parsedURL.lastPathComponent);
|
94
93
|
}
|
95
94
|
} else {
|
96
|
-
this.originInternal =
|
95
|
+
this.originInternal = Platform.DevToolsPath.EmptyUrlString;
|
97
96
|
this.parentURLInternal = Platform.DevToolsPath.EmptyUrlString;
|
98
97
|
this.nameInternal = url;
|
99
98
|
}
|
@@ -125,14 +124,14 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
125
124
|
}
|
126
125
|
|
127
126
|
url(): Platform.DevToolsPath.UrlString {
|
128
|
-
return this.urlInternal
|
127
|
+
return this.urlInternal;
|
129
128
|
}
|
130
129
|
|
131
130
|
parentURL(): Platform.DevToolsPath.UrlString {
|
132
131
|
return this.parentURLInternal;
|
133
132
|
}
|
134
133
|
|
135
|
-
origin():
|
134
|
+
origin(): Platform.DevToolsPath.UrlString {
|
136
135
|
return this.originInternal;
|
137
136
|
}
|
138
137
|
|
@@ -161,10 +160,12 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
161
160
|
return promise;
|
162
161
|
|
163
162
|
function innerCallback(
|
164
|
-
this: UISourceCode, success: boolean, newName?: string, newURL?:
|
163
|
+
this: UISourceCode, success: boolean, newName?: string, newURL?: Platform.DevToolsPath.UrlString,
|
165
164
|
newContentType?: Common.ResourceType.ResourceType): void {
|
166
165
|
if (success) {
|
167
|
-
this.updateName(
|
166
|
+
this.updateName(
|
167
|
+
newName as Platform.DevToolsPath.RawPathString, newURL as Platform.DevToolsPath.UrlString,
|
168
|
+
newContentType as Common.ResourceType.ResourceType);
|
168
169
|
}
|
169
170
|
fulfill(success);
|
170
171
|
}
|
@@ -174,14 +175,15 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
|
|
174
175
|
this.projectInternal.deleteFile(this);
|
175
176
|
}
|
176
177
|
|
177
|
-
private updateName(
|
178
|
+
private updateName(
|
179
|
+
name: Platform.DevToolsPath.RawPathString, url: Platform.DevToolsPath.UrlString,
|
180
|
+
contentType?: Common.ResourceType.ResourceType): void {
|
178
181
|
const oldURL = this.urlInternal;
|
179
182
|
this.nameInternal = name;
|
180
183
|
if (url) {
|
181
184
|
this.urlInternal = url;
|
182
185
|
} else {
|
183
|
-
this.urlInternal = Common.ParsedURL.ParsedURL.relativePathToUrlString(
|
184
|
-
name as Platform.DevToolsPath.RawPathString, oldURL as Platform.DevToolsPath.UrlString);
|
186
|
+
this.urlInternal = Common.ParsedURL.ParsedURL.relativePathToUrlString(name, oldURL);
|
185
187
|
}
|
186
188
|
if (contentType) {
|
187
189
|
this.contentTypeInternal = contentType;
|
@@ -40,7 +40,8 @@ export interface ProjectSearchConfig {
|
|
40
40
|
ignoreCase(): boolean;
|
41
41
|
isRegex(): boolean;
|
42
42
|
queries(): string[];
|
43
|
-
filePathMatchesFileQuery(filePath:
|
43
|
+
filePathMatchesFileQuery(filePath: Platform.DevToolsPath.RawPathString|
|
44
|
+
Platform.DevToolsPath.EncodedPathString|Platform.DevToolsPath.UrlString): boolean;
|
44
45
|
}
|
45
46
|
|
46
47
|
export interface Project {
|
@@ -58,8 +59,10 @@ export interface Project {
|
|
58
59
|
canRename(): boolean;
|
59
60
|
rename(
|
60
61
|
uiSourceCode: UISourceCode, newName: Platform.DevToolsPath.RawPathString,
|
61
|
-
callback:
|
62
|
-
|
62
|
+
callback:
|
63
|
+
(arg0: boolean, arg1?: string, arg2?: Platform.DevToolsPath.UrlString,
|
64
|
+
arg3?: Common.ResourceType.ResourceType) => void): void;
|
65
|
+
excludeFolder(path: Platform.DevToolsPath.UrlString): void;
|
63
66
|
canExcludeFolder(path: Platform.DevToolsPath.EncodedPathString): boolean;
|
64
67
|
createFile(path: Platform.DevToolsPath.EncodedPathString, name: string|null, content: string, isBase64?: boolean):
|
65
68
|
Promise<UISourceCode|null>;
|
@@ -69,10 +72,10 @@ export interface Project {
|
|
69
72
|
searchInFileContent(uiSourceCode: UISourceCode, query: string, caseSensitive: boolean, isRegex: boolean):
|
70
73
|
Promise<TextUtils.ContentProvider.SearchMatch[]>;
|
71
74
|
findFilesMatchingSearchRequest(
|
72
|
-
searchConfig: ProjectSearchConfig,
|
75
|
+
searchConfig: ProjectSearchConfig, filesMatchingFileQuery: Platform.DevToolsPath.UrlString[],
|
73
76
|
progress: Common.Progress.Progress): Promise<string[]>;
|
74
77
|
indexContent(progress: Common.Progress.Progress): void;
|
75
|
-
uiSourceCodeForURL(url:
|
78
|
+
uiSourceCodeForURL(url: Platform.DevToolsPath.UrlString): UISourceCode|null;
|
76
79
|
uiSourceCodes(): UISourceCode[];
|
77
80
|
}
|
78
81
|
|
@@ -92,7 +95,7 @@ export abstract class ProjectStore implements Project {
|
|
92
95
|
private readonly idInternal: string;
|
93
96
|
private readonly typeInternal: projectTypes;
|
94
97
|
private readonly displayNameInternal: string;
|
95
|
-
private uiSourceCodesMap: Map<
|
98
|
+
private uiSourceCodesMap: Map<Platform.DevToolsPath.UrlString, {
|
96
99
|
uiSourceCode: UISourceCode,
|
97
100
|
index: number,
|
98
101
|
}>;
|
@@ -124,7 +127,8 @@ export abstract class ProjectStore implements Project {
|
|
124
127
|
return this.workspaceInternal;
|
125
128
|
}
|
126
129
|
|
127
|
-
createUISourceCode(url:
|
130
|
+
createUISourceCode(url: Platform.DevToolsPath.UrlString, contentType: Common.ResourceType.ResourceType):
|
131
|
+
UISourceCode {
|
128
132
|
return new UISourceCode(this, url, contentType);
|
129
133
|
}
|
130
134
|
|
@@ -139,7 +143,7 @@ export abstract class ProjectStore implements Project {
|
|
139
143
|
return true;
|
140
144
|
}
|
141
145
|
|
142
|
-
removeUISourceCode(url:
|
146
|
+
removeUISourceCode(url: Platform.DevToolsPath.UrlString): void {
|
143
147
|
const uiSourceCode = this.uiSourceCodeForURL(url);
|
144
148
|
if (!uiSourceCode) {
|
145
149
|
return;
|
@@ -166,7 +170,7 @@ export abstract class ProjectStore implements Project {
|
|
166
170
|
this.uiSourceCodesList = [];
|
167
171
|
}
|
168
172
|
|
169
|
-
uiSourceCodeForURL(url:
|
173
|
+
uiSourceCodeForURL(url: Platform.DevToolsPath.UrlString): UISourceCode|null {
|
170
174
|
const entry = this.uiSourceCodesMap.get(url);
|
171
175
|
return entry ? entry.uiSourceCode : null;
|
172
176
|
}
|
@@ -179,7 +183,7 @@ export abstract class ProjectStore implements Project {
|
|
179
183
|
const oldPath = uiSourceCode.url();
|
180
184
|
const newPath = uiSourceCode.parentURL() ?
|
181
185
|
Common.ParsedURL.ParsedURL.urlFromParentUrlAndName(uiSourceCode.parentURL(), newName) :
|
182
|
-
encodeURIComponent(newName);
|
186
|
+
encodeURIComponent(newName) as Platform.DevToolsPath.UrlString;
|
183
187
|
const value = this.uiSourceCodesMap.get(oldPath) as {
|
184
188
|
uiSourceCode: UISourceCode,
|
185
189
|
index: number,
|
@@ -192,9 +196,11 @@ export abstract class ProjectStore implements Project {
|
|
192
196
|
|
193
197
|
rename(
|
194
198
|
_uiSourceCode: UISourceCode, _newName: string,
|
195
|
-
_callback:
|
199
|
+
_callback:
|
200
|
+
(arg0: boolean, arg1?: string, arg2?: Platform.DevToolsPath.UrlString,
|
201
|
+
arg3?: Common.ResourceType.ResourceType) => void): void {
|
196
202
|
}
|
197
|
-
excludeFolder(_path:
|
203
|
+
excludeFolder(_path: Platform.DevToolsPath.UrlString): void {
|
198
204
|
}
|
199
205
|
deleteFile(_uiSourceCode: UISourceCode): void {
|
200
206
|
}
|
@@ -219,7 +225,7 @@ export abstract class ProjectStore implements Project {
|
|
219
225
|
abstract searchInFileContent(uiSourceCode: UISourceCode, query: string, caseSensitive: boolean, isRegex: boolean):
|
220
226
|
Promise<TextUtils.ContentProvider.SearchMatch[]>;
|
221
227
|
abstract findFilesMatchingSearchRequest(
|
222
|
-
searchConfig: ProjectSearchConfig,
|
228
|
+
searchConfig: ProjectSearchConfig, filesMatchingFileQuery: Platform.DevToolsPath.UrlString[],
|
223
229
|
progress: Common.Progress.Progress): Promise<string[]>;
|
224
230
|
}
|
225
231
|
|
@@ -248,12 +254,30 @@ export class WorkspaceImpl extends Common.ObjectWrapper.ObjectWrapper<EventTypes
|
|
248
254
|
workspaceInstance = undefined;
|
249
255
|
}
|
250
256
|
|
251
|
-
uiSourceCode(projectId: string, url:
|
257
|
+
uiSourceCode(projectId: string, url: Platform.DevToolsPath.UrlString): UISourceCode|null {
|
252
258
|
const project = this.projectsInternal.get(projectId);
|
253
259
|
return project ? project.uiSourceCodeForURL(url) : null;
|
254
260
|
}
|
255
261
|
|
256
|
-
|
262
|
+
// This method explicitly awaits the UISourceCode if not yet
|
263
|
+
// available.
|
264
|
+
uiSourceCodeForURLPromise(url: Platform.DevToolsPath.UrlString): Promise<UISourceCode> {
|
265
|
+
const uiSourceCode = this.uiSourceCodeForURL(url);
|
266
|
+
if (uiSourceCode) {
|
267
|
+
return Promise.resolve(uiSourceCode);
|
268
|
+
}
|
269
|
+
return new Promise(resolve => {
|
270
|
+
const descriptor = this.addEventListener(Events.UISourceCodeAdded, event => {
|
271
|
+
const uiSourceCode = event.data;
|
272
|
+
if (uiSourceCode.url() === url) {
|
273
|
+
this.removeEventListener(Events.UISourceCodeAdded, descriptor.listener);
|
274
|
+
resolve(uiSourceCode);
|
275
|
+
}
|
276
|
+
});
|
277
|
+
});
|
278
|
+
}
|
279
|
+
|
280
|
+
uiSourceCodeForURL(url: Platform.DevToolsPath.UrlString): UISourceCode|null {
|
257
281
|
for (const project of this.projectsInternal.values()) {
|
258
282
|
const uiSourceCode = project.uiSourceCodeForURL(url);
|
259
283
|
if (uiSourceCode) {
|
@@ -330,7 +354,7 @@ export enum Events {
|
|
330
354
|
}
|
331
355
|
|
332
356
|
export interface UISourceCodeRenamedEvent {
|
333
|
-
oldURL:
|
357
|
+
oldURL: Platform.DevToolsPath.UrlString;
|
334
358
|
uiSourceCode: UISourceCode;
|
335
359
|
}
|
336
360
|
|
@@ -3,6 +3,7 @@
|
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
5
|
import accessibilityPropertiesStyles from './accessibilityProperties.css.js';
|
6
|
+
import type * as Platform from '../../core/platform/platform.js';
|
6
7
|
import type * as SDK from '../../core/sdk/sdk.js';
|
7
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
8
9
|
import accessibilityNodeStyles from './accessibilityNode.css.js';
|
@@ -12,7 +13,7 @@ import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.
|
|
12
13
|
export class AccessibilitySubPane extends UI.View.SimpleView {
|
13
14
|
axNode: SDK.AccessibilityModel.AccessibilityNode|null;
|
14
15
|
protected nodeInternal?: SDK.DOMModel.DOMNode|null;
|
15
|
-
constructor(name:
|
16
|
+
constructor(name: Platform.UIString.LocalizedString) {
|
16
17
|
super(name);
|
17
18
|
|
18
19
|
this.axNode = null;
|
@@ -925,7 +925,7 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
|
|
925
925
|
return errorMessages;
|
926
926
|
}
|
927
927
|
|
928
|
-
private async loadImage(url:
|
928
|
+
private async loadImage(url: Platform.DevToolsPath.UrlString): Promise<{
|
929
929
|
image: HTMLImageElement,
|
930
930
|
wrapper: Element,
|
931
931
|
}|null> {
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
import type * as Common from '../../core/common/common.js';
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
7
|
+
import type * as Platform from '../../core/platform/platform.js';
|
7
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
8
9
|
import * as UI from '../../ui/legacy/legacy.js';
|
9
10
|
import * as ApplicationComponents from './components/components.js';
|
@@ -131,9 +132,9 @@ export class SWCacheTreeElement extends ApplicationPanelTreeElement {
|
|
131
132
|
this.setLeadingIcons([icon]);
|
132
133
|
}
|
133
134
|
|
134
|
-
get itemURL():
|
135
|
+
get itemURL(): Platform.DevToolsPath.UrlString {
|
135
136
|
// I don't think this will work at all.
|
136
|
-
return 'cache://' + this.cache.cacheId;
|
137
|
+
return 'cache://' + this.cache.cacheId as Platform.DevToolsPath.UrlString;
|
137
138
|
}
|
138
139
|
|
139
140
|
onattach(): void {
|
@@ -184,8 +185,8 @@ export class BackForwardCacheTreeElement extends ApplicationPanelTreeElement {
|
|
184
185
|
this.setLeadingIcons([icon]);
|
185
186
|
}
|
186
187
|
|
187
|
-
get itemURL():
|
188
|
-
return 'bfcache://';
|
188
|
+
get itemURL(): Platform.DevToolsPath.UrlString {
|
189
|
+
return 'bfcache://' as Platform.DevToolsPath.UrlString;
|
189
190
|
}
|
190
191
|
|
191
192
|
onselect(selectedByUser?: boolean): boolean {
|