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
@@ -29,6 +29,7 @@
|
|
29
29
|
|
30
30
|
import * as Common from '../../core/common/common.js';
|
31
31
|
import * as i18n from '../../core/i18n/i18n.js';
|
32
|
+
import * as Platform from '../../core/platform/platform.js';
|
32
33
|
import * as SDK from '../../core/sdk/sdk.js';
|
33
34
|
// eslint-disable-next-line rulesdir/es_modules_import
|
34
35
|
import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.css.js';
|
@@ -235,7 +236,7 @@ export class ProfilesPanel extends UI.Panel.PanelWithSidebar implements DataDisp
|
|
235
236
|
if (!this.toggleRecordAction.enabled()) {
|
236
237
|
return true;
|
237
238
|
}
|
238
|
-
const toggleButton = this.element.ownerDocument
|
239
|
+
const toggleButton = Platform.DOMUtilities.deepActiveElement(this.element.ownerDocument);
|
239
240
|
const type = this.selectedProfileType;
|
240
241
|
if (!type) {
|
241
242
|
return true;
|
@@ -77,11 +77,9 @@
|
|
77
77
|
}
|
78
78
|
|
79
79
|
.heap-snapshot-view .heap-snapshot-view-resizer {
|
80
|
-
background-image: var(--image-file-toolbarResizerVertical);
|
81
80
|
background-color: var(--color-background-elevation-1);
|
82
81
|
border-bottom: 1px solid var(--color-details-hairline);
|
83
|
-
|
84
|
-
background-position: right center, center;
|
82
|
+
display: flex;
|
85
83
|
flex: 0 0 21px;
|
86
84
|
}
|
87
85
|
|
@@ -89,6 +87,20 @@
|
|
89
87
|
margin-right: 6px;
|
90
88
|
}
|
91
89
|
|
90
|
+
.heap-snapshot-view .heap-snapshot-view-resizer .title {
|
91
|
+
flex: 0 1 auto;
|
92
|
+
overflow: hidden;
|
93
|
+
white-space: nowrap;
|
94
|
+
}
|
95
|
+
|
96
|
+
.heap-snapshot-view .heap-snapshot-view-resizer .verticalResizerIcon {
|
97
|
+
background-image: var(--image-file-toolbarResizerVertical);
|
98
|
+
background-repeat: no-repeat;
|
99
|
+
background-position: center;
|
100
|
+
flex: 0 0 28px;
|
101
|
+
margin-left: auto;
|
102
|
+
}
|
103
|
+
|
92
104
|
.heap-snapshot-view .heap-snapshot-view-resizer .title > span {
|
93
105
|
display: inline-block;
|
94
106
|
padding-top: 3px;
|
@@ -718,7 +718,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
718
718
|
// encodeURI ensures an encoded URL is always passed to the backend
|
719
719
|
// This allows the input field to support both encoded and decoded URLs
|
720
720
|
if (this.resourceTreeModel) {
|
721
|
-
void this.resourceTreeModel.navigate(encodeURI(decodeURI(url)));
|
721
|
+
void this.resourceTreeModel.navigate(encodeURI(decodeURI(url)) as Platform.DevToolsPath.UrlString);
|
722
722
|
}
|
723
723
|
this.canvasElement.focus();
|
724
724
|
}
|
@@ -94,7 +94,8 @@ export class SearchConfig implements Workspace.Workspace.ProjectSearchConfig {
|
|
94
94
|
}
|
95
95
|
}
|
96
96
|
|
97
|
-
filePathMatchesFileQuery(filePath:
|
97
|
+
filePathMatchesFileQuery(filePath: Platform.DevToolsPath.RawPathString|
|
98
|
+
Platform.DevToolsPath.EncodedPathString|Platform.DevToolsPath.UrlString): boolean {
|
98
99
|
if (!this.fileRegexQueries) {
|
99
100
|
return true;
|
100
101
|
}
|
@@ -5,6 +5,7 @@
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
6
6
|
import * as Host from '../../core/host/host.js';
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
8
|
+
import * as Platform from '../../core/platform/platform.js';
|
8
9
|
import * as Root from '../../core/root/root.js';
|
9
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
10
11
|
|
@@ -263,7 +264,7 @@ export class KeybindsSettingsTab extends UI.Widget.VBox implements UI.ListContro
|
|
263
264
|
}
|
264
265
|
|
265
266
|
onEscapeKeyPressed(event: Event): void {
|
266
|
-
const deepActiveElement =
|
267
|
+
const deepActiveElement = Platform.DOMUtilities.deepActiveElement(document);
|
267
268
|
if (this.editingRow && deepActiveElement && deepActiveElement.nodeName === 'INPUT') {
|
268
269
|
this.editingRow.onEscapeKeyPressed(event);
|
269
270
|
}
|
@@ -545,7 +546,7 @@ export class ShortcutListItem {
|
|
545
546
|
}
|
546
547
|
|
547
548
|
onEscapeKeyPressed(event: Event): void {
|
548
|
-
const activeElement =
|
549
|
+
const activeElement = Platform.DOMUtilities.deepActiveElement(document);
|
549
550
|
for (const [shortcut, shortcutInput] of this.shortcutInputs.entries()) {
|
550
551
|
if (activeElement === shortcutInput) {
|
551
552
|
this.onShortcutInputKeyDown(
|
@@ -32,7 +32,7 @@ function escapeSnippetName(name: Platform.DevToolsPath.RawPathString): Platform.
|
|
32
32
|
return Common.ParsedURL.ParsedURL.rawPathToEncodedPathString(name);
|
33
33
|
}
|
34
34
|
|
35
|
-
function unescapeSnippetName(name: Platform.DevToolsPath.EncodedPathString):
|
35
|
+
function unescapeSnippetName(name: Platform.DevToolsPath.EncodedPathString): Platform.DevToolsPath.RawPathString {
|
36
36
|
return Common.ParsedURL.ParsedURL.encodedPathToRawPathString(name);
|
37
37
|
}
|
38
38
|
|
@@ -40,7 +40,7 @@ export class SnippetFileSystem extends Persistence.PlatformFileSystem.PlatformFi
|
|
40
40
|
private readonly lastSnippetIdentifierSetting: Common.Settings.Setting<number>;
|
41
41
|
private readonly snippetsSetting: Common.Settings.Setting<Snippet[]>;
|
42
42
|
constructor() {
|
43
|
-
super('snippet://', 'snippets');
|
43
|
+
super('snippet://' as Platform.DevToolsPath.UrlString, 'snippets');
|
44
44
|
this.lastSnippetIdentifierSetting =
|
45
45
|
Common.Settings.Settings.instance().createSetting('scriptSnippets_lastIdentifier', 0);
|
46
46
|
this.snippetsSetting = Common.Settings.Settings.instance().createSetting('scriptSnippets', []);
|
@@ -123,7 +123,7 @@ export class SnippetFileSystem extends Persistence.PlatformFileSystem.PlatformFi
|
|
123
123
|
return matchedSnippets.map(snippet => `snippet:///${escapeSnippetName(snippet.name)}`);
|
124
124
|
}
|
125
125
|
|
126
|
-
mimeFromPath(_path:
|
126
|
+
mimeFromPath(_path: Platform.DevToolsPath.UrlString): string {
|
127
127
|
return 'text/javascript';
|
128
128
|
}
|
129
129
|
|
@@ -170,7 +170,7 @@ export async function evaluateScriptSnippet(uiSourceCode: Workspace.UISourceCode
|
|
170
170
|
generatePreview: true,
|
171
171
|
replMode: true,
|
172
172
|
} as SDK.RuntimeModel.EvaluationOptions,
|
173
|
-
|
173
|
+
true, true);
|
174
174
|
|
175
175
|
if ('exceptionDetails' in result && result.exceptionDetails) {
|
176
176
|
SDK.ConsoleModel.ConsoleModel.instance().addMessage(SDK.ConsoleModel.ConsoleMessage.fromException(
|
@@ -75,7 +75,6 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
75
75
|
TextEditor.Config.autocompletion,
|
76
76
|
CodeMirror.EditorView.lineWrapping,
|
77
77
|
TextEditor.Config.showCompletionHint,
|
78
|
-
TextEditor.JavaScript.completion(),
|
79
78
|
TextEditor.JavaScript.argumentHints(),
|
80
79
|
];
|
81
80
|
|
@@ -83,7 +83,7 @@ async function specificCssCompletion(
|
|
83
83
|
return {
|
84
84
|
from: node.name === 'ValueName' ? node.from : cx.pos,
|
85
85
|
options: propertyValues.map(value => ({type: 'constant', label: value})),
|
86
|
-
|
86
|
+
validFor: /^[\w\P{ASCII}\-]+$/u,
|
87
87
|
};
|
88
88
|
}
|
89
89
|
return null;
|
@@ -111,12 +111,12 @@ function findColorsAndCurves(
|
|
111
111
|
tree.iterate({
|
112
112
|
from,
|
113
113
|
to,
|
114
|
-
enter:
|
114
|
+
enter: node => {
|
115
115
|
let content;
|
116
|
-
if (
|
117
|
-
content = getToken(from, to);
|
118
|
-
} else if (
|
119
|
-
content = state.sliceDoc(from, (node
|
116
|
+
if (node.name === 'ValueName' || node.name === 'ColorLiteral') {
|
117
|
+
content = getToken(node.from, node.to);
|
118
|
+
} else if (node.name === 'Callee' && /^(?:(?:rgb|hsl)a?|cubic-bezier)$/.test(getToken(node.from, node.to))) {
|
119
|
+
content = state.sliceDoc(node.from, (node.node.parent as CodeMirror.SyntaxNode).to);
|
120
120
|
}
|
121
121
|
if (content) {
|
122
122
|
const parsedColor = Common.Color.Color.parse(content);
|
@@ -3,6 +3,7 @@
|
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
6
|
+
import type * as Platform from '../../core/platform/platform.js';
|
6
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
7
8
|
import * as Formatter from '../../models/formatter/formatter.js';
|
8
9
|
import type * as Workspace from '../../models/workspace/workspace.js';
|
@@ -190,7 +191,7 @@ const coverageState = CodeMirror.StateField.define<CodeMirror.RangeSet<CodeMirro
|
|
190
191
|
},
|
191
192
|
});
|
192
193
|
|
193
|
-
function coverageGutter(url:
|
194
|
+
function coverageGutter(url: Platform.DevToolsPath.UrlString): CodeMirror.Extension {
|
194
195
|
return CodeMirror.gutter({
|
195
196
|
markers: (view): CodeMirror.RangeSet<CodeMirror.GutterMarker> => view.state.field(coverageState),
|
196
197
|
|
@@ -962,11 +962,11 @@ export class DebuggerPlugin extends Plugin {
|
|
962
962
|
tree.iterate({
|
963
963
|
from: fromPos,
|
964
964
|
to: toPos,
|
965
|
-
enter(
|
966
|
-
const varName =
|
965
|
+
enter(node): void {
|
966
|
+
const varName = node.name === 'VariableName' && editorState.sliceDoc(node.from, node.to);
|
967
967
|
if (varName && variableMap.has(varName)) {
|
968
|
-
if (from > curLine.to) {
|
969
|
-
curLine = editorState.doc.lineAt(from);
|
968
|
+
if (node.from > curLine.to) {
|
969
|
+
curLine = editorState.doc.lineAt(node.from);
|
970
970
|
}
|
971
971
|
let names = namesPerLine.get(curLine.number - 1);
|
972
972
|
if (!names) {
|
@@ -28,6 +28,7 @@
|
|
28
28
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
29
|
*/
|
30
30
|
|
31
|
+
import type * as Platform from '../../core/platform/platform.js';
|
31
32
|
import * as Workspace from '../../models/workspace/workspace.js';
|
32
33
|
import type * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
33
34
|
import * as SourceFrame from '../../ui/legacy/components/source_frame/source_frame.js';
|
@@ -92,7 +93,9 @@ export class EditingLocationHistoryManager {
|
|
92
93
|
}
|
93
94
|
|
94
95
|
private reveal(entry: EditingLocationHistoryEntry): void {
|
95
|
-
|
96
|
+
// TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
|
97
|
+
const uiSourceCode = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCode(
|
98
|
+
entry.projectId, entry.url as Platform.DevToolsPath.UrlString);
|
96
99
|
if (uiSourceCode) {
|
97
100
|
this.revealing = true;
|
98
101
|
this.sourcesView.showSourceLocation(uiSourceCode, entry.position, false, true);
|
@@ -226,10 +226,11 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
226
226
|
return order;
|
227
227
|
}
|
228
228
|
|
229
|
-
static appendSearchItem(contextMenu: UI.ContextMenu.ContextMenu, path?:
|
229
|
+
static appendSearchItem(contextMenu: UI.ContextMenu.ContextMenu, path?: Platform.DevToolsPath.EncodedPathString):
|
230
|
+
void {
|
230
231
|
let searchLabel = i18nString(UIStrings.searchInFolder);
|
231
232
|
if (!path || !path.trim()) {
|
232
|
-
path = '*';
|
233
|
+
path = '*' as Platform.DevToolsPath.EncodedPathString;
|
233
234
|
searchLabel = i18nString(UIStrings.searchInAllFiles);
|
234
235
|
}
|
235
236
|
contextMenu.viewSection().appendItem(searchLabel, () => {
|
@@ -289,16 +290,16 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
289
290
|
// Update folder titles.
|
290
291
|
const pathTokens =
|
291
292
|
Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.relativePath(binding.fileSystem);
|
292
|
-
let folderPath = '';
|
293
|
+
let folderPath = '' as Platform.DevToolsPath.EncodedPathString;
|
293
294
|
for (let i = 0; i < pathTokens.length - 1; ++i) {
|
294
|
-
folderPath
|
295
|
+
folderPath = Common.ParsedURL.ParsedURL.concatenate(folderPath, pathTokens[i]);
|
295
296
|
const folderId =
|
296
297
|
this.folderNodeId(binding.fileSystem.project(), null, null, binding.fileSystem.origin(), folderPath);
|
297
298
|
const folderNode = this.subfolderNodes.get(folderId);
|
298
299
|
if (folderNode) {
|
299
300
|
folderNode.updateTitle();
|
300
301
|
}
|
301
|
-
folderPath
|
302
|
+
folderPath = Common.ParsedURL.ParsedURL.concatenate(folderPath, '/');
|
302
303
|
}
|
303
304
|
|
304
305
|
// Update fileSystem root title.
|
@@ -537,7 +538,8 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
537
538
|
|
538
539
|
private folderNodeId(
|
539
540
|
project: Workspace.Workspace.Project, target: SDK.Target.Target|null,
|
540
|
-
frame: SDK.ResourceTreeModel.ResourceTreeFrame|null, projectOrigin: string,
|
541
|
+
frame: SDK.ResourceTreeModel.ResourceTreeFrame|null, projectOrigin: string,
|
542
|
+
path: Platform.DevToolsPath.EncodedPathString): string {
|
541
543
|
const targetId = target ? target.id() : '';
|
542
544
|
const projectId = project.type() === Workspace.Workspace.projectTypes.FileSystem ? project.id() : '';
|
543
545
|
const frameId = this.groupByFrame && frame ? frame.id : '';
|
@@ -556,7 +558,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
556
558
|
return this.domainNode(uiSourceCode, project, target, frame, projectOrigin);
|
557
559
|
}
|
558
560
|
|
559
|
-
const folderPath =
|
561
|
+
const folderPath = Common.ParsedURL.ParsedURL.join(path, '/');
|
560
562
|
const folderId = this.folderNodeId(project, target, frame, projectOrigin, folderPath);
|
561
563
|
let folderNode = this.subfolderNodes.get(folderId);
|
562
564
|
if (folderNode) {
|
@@ -741,7 +743,8 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
741
743
|
|
742
744
|
const folderId = this.folderNodeId(
|
743
745
|
project, target, frame, uiSourceCode.origin(),
|
744
|
-
currentNode instanceof NavigatorFolderTreeNode && currentNode.folderPath ||
|
746
|
+
currentNode instanceof NavigatorFolderTreeNode && currentNode.folderPath ||
|
747
|
+
'' as Platform.DevToolsPath.EncodedPathString);
|
745
748
|
this.subfolderNodes.delete(folderId);
|
746
749
|
parentNode.removeChild(currentNode);
|
747
750
|
currentNode = (parentNode as NavigatorUISourceCodeTreeNode | null);
|
@@ -777,11 +780,12 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
777
780
|
}
|
778
781
|
|
779
782
|
private handleContextMenuCreate(
|
780
|
-
project: Workspace.Workspace.Project, path:
|
783
|
+
project: Workspace.Workspace.Project, path: Platform.DevToolsPath.EncodedPathString,
|
784
|
+
uiSourceCode?: Workspace.UISourceCode.UISourceCode): void {
|
781
785
|
if (uiSourceCode) {
|
782
786
|
const relativePath = Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.relativePath(uiSourceCode);
|
783
787
|
relativePath.pop();
|
784
|
-
path =
|
788
|
+
path = Common.ParsedURL.ParsedURL.join(relativePath, '/');
|
785
789
|
}
|
786
790
|
void this.create(project, path, uiSourceCode);
|
787
791
|
}
|
@@ -790,7 +794,8 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
790
794
|
this.rename(node, false);
|
791
795
|
}
|
792
796
|
|
793
|
-
private async handleContextMenuExclude(
|
797
|
+
private async handleContextMenuExclude(
|
798
|
+
project: Workspace.Workspace.Project, path: Platform.DevToolsPath.EncodedPathString): Promise<void> {
|
794
799
|
const shouldExclude = await UI.UIUtils.ConfirmDialog.show(i18nString(UIStrings.areYouSureYouWantToExcludeThis));
|
795
800
|
if (shouldExclude) {
|
796
801
|
UI.UIUtils.startBatchUpdate();
|
@@ -816,7 +821,9 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
816
821
|
if (project.type() === Workspace.Workspace.projectTypes.FileSystem) {
|
817
822
|
contextMenu.editSection().appendItem(i18nString(UIStrings.rename), this.handleContextMenuRename.bind(this, node));
|
818
823
|
contextMenu.editSection().appendItem(
|
819
|
-
i18nString(UIStrings.makeACopy),
|
824
|
+
i18nString(UIStrings.makeACopy),
|
825
|
+
this.handleContextMenuCreate.bind(
|
826
|
+
this, project, '' as Platform.DevToolsPath.EncodedPathString, uiSourceCode));
|
820
827
|
contextMenu.editSection().appendItem(
|
821
828
|
i18nString(UIStrings.delete), this.handleContextMenuDelete.bind(this, uiSourceCode));
|
822
829
|
}
|
@@ -910,13 +917,13 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
910
917
|
}
|
911
918
|
|
912
919
|
async create(
|
913
|
-
project: Workspace.Workspace.Project, path:
|
920
|
+
project: Workspace.Workspace.Project, path: Platform.DevToolsPath.EncodedPathString,
|
914
921
|
uiSourceCodeToCopy?: Workspace.UISourceCode.UISourceCode): Promise<void> {
|
915
922
|
let content = '';
|
916
923
|
if (uiSourceCodeToCopy) {
|
917
924
|
content = (await uiSourceCodeToCopy.requestContent()).content || '';
|
918
925
|
}
|
919
|
-
const uiSourceCode = await project.createFile(path
|
926
|
+
const uiSourceCode = await project.createFile(path, null, content);
|
920
927
|
if (!uiSourceCode) {
|
921
928
|
return;
|
922
929
|
}
|
@@ -1462,7 +1469,7 @@ export class NavigatorFolderTreeNode extends NavigatorTreeNode {
|
|
1462
1469
|
treeElement!: NavigatorFolderTreeElement|null;
|
1463
1470
|
constructor(
|
1464
1471
|
navigatorView: NavigatorView, project: Workspace.Workspace.Project|null, id: string, type: string,
|
1465
|
-
folderPath:
|
1472
|
+
folderPath: Platform.DevToolsPath.EncodedPathString, title: string) {
|
1466
1473
|
super(navigatorView, id, type);
|
1467
1474
|
this.project = project;
|
1468
1475
|
this.folderPath = folderPath as Platform.DevToolsPath.EncodedPathString;
|
@@ -1482,9 +1489,10 @@ export class NavigatorFolderTreeNode extends NavigatorTreeNode {
|
|
1482
1489
|
if (!this.treeElement || !this.project || this.project.type() !== Workspace.Workspace.projectTypes.FileSystem) {
|
1483
1490
|
return;
|
1484
1491
|
}
|
1485
|
-
const absoluteFileSystemPath =
|
1486
|
-
Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemPath(
|
1487
|
-
|
1492
|
+
const absoluteFileSystemPath = Common.ParsedURL.ParsedURL.concatenate(
|
1493
|
+
Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemPath(
|
1494
|
+
this.project.id() as Platform.DevToolsPath.UrlString),
|
1495
|
+
'/', this.folderPath);
|
1488
1496
|
const hasMappedFiles =
|
1489
1497
|
Persistence.Persistence.PersistenceImpl.instance().filePathHasBindings(absoluteFileSystemPath);
|
1490
1498
|
this.treeElement.listItemElement.classList.toggle('has-mapped-files', hasMappedFiles);
|
@@ -1642,8 +1650,8 @@ export class NavigatorGroupTreeNode extends NavigatorTreeNode {
|
|
1642
1650
|
if (!this.treeElement || this.project.type() !== Workspace.Workspace.projectTypes.FileSystem) {
|
1643
1651
|
return;
|
1644
1652
|
}
|
1645
|
-
const fileSystemPath =
|
1646
|
-
|
1653
|
+
const fileSystemPath = Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemPath(
|
1654
|
+
this.project.id() as Platform.DevToolsPath.UrlString);
|
1647
1655
|
const wasActive = this.treeElement.listItemElement.classList.contains('has-mapped-files');
|
1648
1656
|
const isActive = Persistence.Persistence.PersistenceImpl.instance().filePathHasBindings(fileSystemPath);
|
1649
1657
|
if (wasActive === isActive) {
|
@@ -22,14 +22,14 @@ export class SearchSourcesView extends Search.SearchView.SearchView {
|
|
22
22
|
}
|
23
23
|
|
24
24
|
static async openSearch(query: string, searchImmediately?: boolean): Promise<UI.Widget.Widget> {
|
25
|
-
const view =
|
25
|
+
const view = UI.ViewManager.ViewManager.instance().view('sources.search-sources-tab');
|
26
26
|
// Deliberately use target location name so that it could be changed
|
27
27
|
// based on the setting later.
|
28
28
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration)
|
29
29
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
30
30
|
const location = (await UI.ViewManager.ViewManager.instance().resolveLocation('drawer-view') as any);
|
31
31
|
location.appendView(view);
|
32
|
-
await UI.ViewManager.ViewManager.instance().revealView(
|
32
|
+
await UI.ViewManager.ViewManager.instance().revealView(view);
|
33
33
|
const widget = (await view.widget() as Search.SearchView.SearchView);
|
34
34
|
void widget.toggle(query, Boolean(searchImmediately));
|
35
35
|
return widget;
|
@@ -339,7 +339,8 @@ export class SnippetsNavigatorView extends NavigatorView {
|
|
339
339
|
const newButton = new UI.Toolbar.ToolbarButton(
|
340
340
|
i18nString(UIStrings.newSnippet), 'largeicon-add', i18nString(UIStrings.newSnippet));
|
341
341
|
newButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
|
342
|
-
void this.create(
|
342
|
+
void this.create(
|
343
|
+
Snippets.ScriptSnippetFileSystem.findSnippetsProject(), '' as Platform.DevToolsPath.EncodedPathString);
|
343
344
|
});
|
344
345
|
toolbar.appendToolbarItem(newButton);
|
345
346
|
this.contentElement.insertBefore(toolbar.element, this.contentElement.firstChild);
|
@@ -360,7 +361,8 @@ export class SnippetsNavigatorView extends NavigatorView {
|
|
360
361
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
361
362
|
contextMenu.headerSection().appendItem(
|
362
363
|
i18nString(UIStrings.createNewSnippet),
|
363
|
-
() => this.create(
|
364
|
+
() => this.create(
|
365
|
+
Snippets.ScriptSnippetFileSystem.findSnippetsProject(), '' as Platform.DevToolsPath.EncodedPathString));
|
364
366
|
void contextMenu.show();
|
365
367
|
}
|
366
368
|
|
@@ -276,7 +276,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
276
276
|
this.editorView.setMainWidget(this.sourcesViewInternal);
|
277
277
|
|
278
278
|
this.threadsSidebarPane = null;
|
279
|
-
this.watchSidebarPane =
|
279
|
+
this.watchSidebarPane = UI.ViewManager.ViewManager.instance().view('sources.watch');
|
280
280
|
this.callstackPane = CallStackSidebarPane.instance();
|
281
281
|
|
282
282
|
Common.Settings.Settings.instance()
|
@@ -354,7 +354,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
354
354
|
|
355
355
|
private showThreadsIfNeeded(): void {
|
356
356
|
if (ThreadsSidebarPane.shouldBeShown() && !this.threadsSidebarPane) {
|
357
|
-
this.threadsSidebarPane =
|
357
|
+
this.threadsSidebarPane = UI.ViewManager.ViewManager.instance().view('sources.threads');
|
358
358
|
if (this.sidebarPaneStack && this.threadsSidebarPane) {
|
359
359
|
void this.sidebarPaneStack.showView(
|
360
360
|
this.threadsSidebarPane, this.splitWidget.isVertical() ? this.watchSidebarPane : this.callstackPane);
|
@@ -1058,8 +1058,8 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
1058
1058
|
void this.sidebarPaneStack.showView(this.threadsSidebarPane);
|
1059
1059
|
}
|
1060
1060
|
|
1061
|
-
const jsBreakpoints =
|
1062
|
-
const scopeChainView =
|
1061
|
+
const jsBreakpoints = UI.ViewManager.ViewManager.instance().view('sources.jsBreakpoints');
|
1062
|
+
const scopeChainView = UI.ViewManager.ViewManager.instance().view('sources.scopeChain');
|
1063
1063
|
|
1064
1064
|
if (this.tabbedLocationHeader) {
|
1065
1065
|
this.splitWidget.uninstallResizer(this.tabbedLocationHeader);
|
@@ -28,6 +28,8 @@
|
|
28
28
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
29
|
*/
|
30
30
|
|
31
|
+
// TODO(crbug.com/1253323): Casts to Branded Types will be removed from this file when migration to branded types is complete.
|
32
|
+
|
31
33
|
import * as Common from '../../core/common/common.js';
|
32
34
|
import * as Platform from '../../core/platform/platform.js';
|
33
35
|
import * as Bindings from '../../models/bindings/bindings.js';
|
@@ -126,12 +128,12 @@ export class SourcesSearchScope implements Search.SearchConfig.SearchScope {
|
|
126
128
|
for (const project of this.projects()) {
|
127
129
|
const weight = project.uiSourceCodes().length;
|
128
130
|
const findMatchingFilesInProjectProgress = findMatchingFilesProgress.createSubProgress(weight);
|
129
|
-
const
|
131
|
+
const filesMatchingFileQuery = this.projectFilesMatchingFileQuery(project, searchConfig);
|
130
132
|
const promise =
|
131
133
|
project
|
132
|
-
.findFilesMatchingSearchRequest(searchConfig,
|
134
|
+
.findFilesMatchingSearchRequest(searchConfig, filesMatchingFileQuery, findMatchingFilesInProjectProgress)
|
133
135
|
.then(this.processMatchingFilesForProject.bind(
|
134
|
-
this, this.searchId, project, searchConfig,
|
136
|
+
this, this.searchId, project, searchConfig, filesMatchingFileQuery));
|
135
137
|
promises.push(promise);
|
136
138
|
}
|
137
139
|
|
@@ -141,7 +143,7 @@ export class SourcesSearchScope implements Search.SearchConfig.SearchScope {
|
|
141
143
|
|
142
144
|
private projectFilesMatchingFileQuery(
|
143
145
|
project: Workspace.Workspace.Project, searchConfig: Workspace.Workspace.ProjectSearchConfig,
|
144
|
-
dirtyOnly?: boolean):
|
146
|
+
dirtyOnly?: boolean): Platform.DevToolsPath.UrlString[] {
|
145
147
|
const result = [];
|
146
148
|
const uiSourceCodes = project.uiSourceCodes();
|
147
149
|
for (let i = 0; i < uiSourceCodes.length; ++i) {
|
@@ -156,7 +158,9 @@ export class SourcesSearchScope implements Search.SearchConfig.SearchScope {
|
|
156
158
|
if (dirtyOnly && !uiSourceCode.isDirty()) {
|
157
159
|
continue;
|
158
160
|
}
|
159
|
-
if (searchConfig.filePathMatchesFileQuery(
|
161
|
+
if (searchConfig.filePathMatchesFileQuery(
|
162
|
+
uiSourceCode.fullDisplayName() as Platform.DevToolsPath.UrlString |
|
163
|
+
Platform.DevToolsPath.EncodedPathString)) {
|
160
164
|
result.push(uiSourceCode.url());
|
161
165
|
}
|
162
166
|
}
|
@@ -166,7 +170,7 @@ export class SourcesSearchScope implements Search.SearchConfig.SearchScope {
|
|
166
170
|
|
167
171
|
private processMatchingFilesForProject(
|
168
172
|
searchId: number, project: Workspace.Workspace.Project, searchConfig: Workspace.Workspace.ProjectSearchConfig,
|
169
|
-
|
173
|
+
filesMatchingFileQuery: string[], files: string[]): void {
|
170
174
|
if (searchId !== this.searchId && this.searchFinishedCallback) {
|
171
175
|
this.searchFinishedCallback(false);
|
172
176
|
return;
|
@@ -174,13 +178,13 @@ export class SourcesSearchScope implements Search.SearchConfig.SearchScope {
|
|
174
178
|
|
175
179
|
files.sort(Platform.StringUtilities.naturalOrderComparator);
|
176
180
|
files = Platform.ArrayUtilities.intersectOrdered(
|
177
|
-
files,
|
181
|
+
files, filesMatchingFileQuery, Platform.StringUtilities.naturalOrderComparator);
|
178
182
|
const dirtyFiles = this.projectFilesMatchingFileQuery(project, searchConfig, true);
|
179
183
|
files = Platform.ArrayUtilities.mergeOrdered(files, dirtyFiles, Platform.StringUtilities.naturalOrderComparator);
|
180
184
|
|
181
185
|
const uiSourceCodes = [];
|
182
186
|
for (const file of files) {
|
183
|
-
const uiSourceCode = project.uiSourceCodeForURL(file);
|
187
|
+
const uiSourceCode = project.uiSourceCodeForURL(file as Platform.DevToolsPath.UrlString);
|
184
188
|
if (!uiSourceCode) {
|
185
189
|
continue;
|
186
190
|
}
|
@@ -702,7 +702,9 @@ export class SwitchFileActionDelegate implements UI.ActionRegistration.ActionDel
|
|
702
702
|
}
|
703
703
|
candidates.sort(Platform.StringUtilities.naturalOrderComparator);
|
704
704
|
const index = Platform.NumberUtilities.mod(candidates.indexOf(name) + 1, candidates.length);
|
705
|
-
const fullURL = (
|
705
|
+
const fullURL = Common.ParsedURL.ParsedURL.concatenate(
|
706
|
+
(url ? Common.ParsedURL.ParsedURL.concatenate(url, '/') : '' as Platform.DevToolsPath.UrlString),
|
707
|
+
candidates[index]);
|
706
708
|
const nextUISourceCode = currentUISourceCode.project().uiSourceCodeForURL(fullURL);
|
707
709
|
return nextUISourceCode !== currentUISourceCode ? nextUISourceCode : null;
|
708
710
|
}
|
@@ -238,7 +238,7 @@ export class TabbedEditorContainer extends Common.ObjectWrapper.ObjectWrapper<Ev
|
|
238
238
|
this.scrollTimer = window.setTimeout(() => this.history.save(this.previouslyViewedFilesSetting), 100);
|
239
239
|
if (this.currentFileInternal) {
|
240
240
|
const {editor} = this.currentView.textEditor;
|
241
|
-
const topBlock = editor.
|
241
|
+
const topBlock = editor.lineBlockAtHeight(editor.scrollDOM.getBoundingClientRect().top - editor.documentTop);
|
242
242
|
const topLine = editor.state.doc.lineAt(topBlock.from).number - 1;
|
243
243
|
this.history.updateScrollLineNumber(this.currentFileInternal.url(), topLine);
|
244
244
|
}
|
@@ -52,7 +52,7 @@ export class HeadersView extends UI.View.SimpleView {
|
|
52
52
|
#uiSourceCode: Workspace.UISourceCode.UISourceCode;
|
53
53
|
|
54
54
|
constructor(uiSourceCode: Workspace.UISourceCode.UISourceCode) {
|
55
|
-
super('HeadersView');
|
55
|
+
super(i18n.i18n.lockedString('HeadersView'));
|
56
56
|
this.#uiSourceCode = uiSourceCode;
|
57
57
|
this.#uiSourceCode.addEventListener(
|
58
58
|
Workspace.UISourceCode.Events.WorkingCopyChanged, this.#onWorkingCopyChanged, this);
|
@@ -165,6 +165,8 @@ const UIStrings = {
|
|
165
165
|
};
|
166
166
|
const str_ = i18n.i18n.registerUIStrings('panels/timeline/TimelineFlameChartDataProvider.ts', UIStrings);
|
167
167
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
168
|
+
type TimelineFlameChartEntry = (SDK.FilmStripModel.Frame|SDK.TracingModel.Event|
|
169
|
+
TimelineModel.TimelineFrameModel.TimelineFrame|TimelineModel.TimelineIRModel.Phases);
|
168
170
|
export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectWrapper<EventTypes> implements
|
169
171
|
PerfUI.FlameChart.FlameChartDataProvider {
|
170
172
|
private readonly font: string;
|
@@ -190,8 +192,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
190
192
|
private readonly interactionsHeaderLevel2: PerfUI.FlameChart.GroupStyle;
|
191
193
|
private readonly experienceHeader: PerfUI.FlameChart.GroupStyle;
|
192
194
|
private readonly flowEventIndexById: Map<string, number>;
|
193
|
-
private entryData!:
|
194
|
-
TimelineModel.TimelineFrameModel.TimelineFrame|TimelineModel.TimelineIRModel.Phases)[];
|
195
|
+
private entryData!: TimelineFlameChartEntry[];
|
195
196
|
private entryTypeByLevel!: EntryType[];
|
196
197
|
private markers!: TimelineFlameChartMarker[];
|
197
198
|
private asyncColorByInteractionPhase!: Map<TimelineModel.TimelineIRModel.Phases, string>;
|
@@ -721,11 +722,11 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
721
722
|
if (event.name !== TimelineModel.TimelineModel.RecordType.JSFrame) {
|
722
723
|
return false;
|
723
724
|
}
|
724
|
-
const url = event.args['data']['url'];
|
725
|
+
const url = event.args['data']['url'] as Platform.DevToolsPath.UrlString;
|
725
726
|
return url && this.isIgnoreListedURL(url);
|
726
727
|
}
|
727
728
|
|
728
|
-
private isIgnoreListedURL(url:
|
729
|
+
private isIgnoreListedURL(url: Platform.DevToolsPath.UrlString): boolean {
|
729
730
|
return Bindings.IgnoreListManager.IgnoreListManager.instance().isIgnoreListedURL(url);
|
730
731
|
}
|
731
732
|
|
@@ -1345,11 +1346,6 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
1345
1346
|
}
|
1346
1347
|
|
1347
1348
|
private appendAsyncEvent(asyncEvent: SDK.TracingModel.AsyncEvent, level: number): void {
|
1348
|
-
if (SDK.TracingModel.TracingModel.isNestableAsyncPhase(asyncEvent.phase)) {
|
1349
|
-
// FIXME: also add steps once we support event nesting in the FlameChart.
|
1350
|
-
this.appendEvent(asyncEvent, level);
|
1351
|
-
return;
|
1352
|
-
}
|
1353
1349
|
const steps = asyncEvent.steps;
|
1354
1350
|
// If we have past steps, put the end event for each range rather than start one.
|
1355
1351
|
const eventOffset = steps.length > 1 && steps[1].phase === SDK.TracingModel.Phase.AsyncStepPast ? 1 : 0;
|
@@ -1467,6 +1463,10 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
1467
1463
|
null;
|
1468
1464
|
}
|
1469
1465
|
|
1466
|
+
entryDataByIndex(entryIndex: number): TimelineFlameChartEntry {
|
1467
|
+
return this.entryData[entryIndex];
|
1468
|
+
}
|
1469
|
+
|
1470
1470
|
setEventColorMapping(colorForEvent: (arg0: SDK.TracingModel.Event) => string): void {
|
1471
1471
|
this.colorForEvent = colorForEvent;
|
1472
1472
|
}
|
@@ -772,7 +772,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
|
|
772
772
|
}
|
773
773
|
|
774
774
|
private async getCoverageViewWidget(): Promise<Coverage.CoverageView.CoverageView> {
|
775
|
-
const view =
|
775
|
+
const view = UI.ViewManager.ViewManager.instance().view('coverage');
|
776
776
|
return await view.widget() as Coverage.CoverageView.CoverageView;
|
777
777
|
}
|
778
778
|
|
@@ -406,7 +406,6 @@
|
|
406
406
|
|
407
407
|
.timeline-tree-view .data-grid .data-container {
|
408
408
|
overflow-y: scroll;
|
409
|
-
top: 21px;
|
410
409
|
}
|
411
410
|
|
412
411
|
.timeline-tree-view .data-grid.data-grid-fits-viewport .corner {
|
@@ -519,7 +518,7 @@
|
|
519
518
|
width: 120px;
|
520
519
|
}
|
521
520
|
|
522
|
-
.timeline-tree-view .data-grid
|
521
|
+
.timeline-tree-view .data-grid thead {
|
523
522
|
height: 21px;
|
524
523
|
}
|
525
524
|
|