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
package/AUTHORS
CHANGED
@@ -28,6 +28,7 @@ Eric Rannaud <eric.rannaud@gmail.com>
|
|
28
28
|
Feng Lu <lufengd3@gmail.com>
|
29
29
|
Gabriel Luong <gabriel.luong@gmail.com>
|
30
30
|
Gautham Banasandra <gautham.bangalore@gmail.com>
|
31
|
+
Jacky Hu <flameddd@gmail.com>
|
31
32
|
Jake Mulhern <mulherje@gmail.com>
|
32
33
|
Jan Keitel <jan.keitel@gmail.com>
|
33
34
|
Jeffrey Chen <jeffreyca16@gmail.com>
|
@@ -47,6 +48,7 @@ Pradhuman Singh Baid <pradhumansinghbaid@gmail.com>
|
|
47
48
|
Rahat Muneeb <irahatmuneeb@gmail.com>
|
48
49
|
Rahul B S <bsrahul2020@gmail.com>
|
49
50
|
Rajasekar Murugan <rajasekar89be@gmail.com>
|
51
|
+
Ross Wollman <ross.wollman@gmail.com>
|
50
52
|
Stephen Tsoi-A-Sue <stsoiasue@gmail.com>
|
51
53
|
Tony Kostowny <tonykostowny@gmail.com>
|
52
54
|
Toshiaki Tanaka <zokutyou2@gmail.com>
|
@@ -89,6 +89,7 @@ grd_files_release_sources = [
|
|
89
89
|
"front_end/Images/ic_page_prev_16x16_icon.svg",
|
90
90
|
"front_end/Images/ic_preview_feature.svg",
|
91
91
|
"front_end/Images/ic_redo_16x16_icon.svg",
|
92
|
+
"front_end/Images/ic_rendering.svg",
|
92
93
|
"front_end/Images/ic_request_response.svg",
|
93
94
|
"front_end/Images/ic_response.svg",
|
94
95
|
"front_end/Images/ic_show_node_16x16.svg",
|
@@ -254,6 +255,7 @@ grd_files_release_sources = [
|
|
254
255
|
"front_end/models/issues_manager/descriptions/CoepCorpNotSameSite.md",
|
255
256
|
"front_end/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md",
|
256
257
|
"front_end/models/issues_manager/descriptions/CompatibilityModeQuirks.md",
|
258
|
+
"front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md",
|
257
259
|
"front_end/models/issues_manager/descriptions/LowTextContrast.md",
|
258
260
|
"front_end/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md",
|
259
261
|
"front_end/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md",
|
@@ -273,20 +275,13 @@ grd_files_release_sources = [
|
|
273
275
|
"front_end/models/issues_manager/descriptions/TwaDigitalAssetLinksFailed.md",
|
274
276
|
"front_end/models/issues_manager/descriptions/TwaHttpError.md",
|
275
277
|
"front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
|
276
|
-
"front_end/models/issues_manager/descriptions/arAttributionEventSourceTriggerDataTooLarge.md",
|
277
278
|
"front_end/models/issues_manager/descriptions/arAttributionSourceUntrustworthyFrameOrigin.md",
|
278
279
|
"front_end/models/issues_manager/descriptions/arAttributionSourceUntrustworthyOrigin.md",
|
279
|
-
"front_end/models/issues_manager/descriptions/arAttributionTriggerDataTooLarge.md",
|
280
280
|
"front_end/models/issues_manager/descriptions/arAttributionUntrustworthyFrameOrigin.md",
|
281
281
|
"front_end/models/issues_manager/descriptions/arAttributionUntrustworthyOrigin.md",
|
282
|
-
"front_end/models/issues_manager/descriptions/arInvalidAttributionData.md",
|
283
282
|
"front_end/models/issues_manager/descriptions/arInvalidAttributionSourceEventId.md",
|
284
283
|
"front_end/models/issues_manager/descriptions/arInvalidAttributionSourceExpiry.md",
|
285
284
|
"front_end/models/issues_manager/descriptions/arInvalidAttributionSourcePriority.md",
|
286
|
-
"front_end/models/issues_manager/descriptions/arInvalidEventSourceTriggerData.md",
|
287
|
-
"front_end/models/issues_manager/descriptions/arInvalidTriggerDedupKey.md",
|
288
|
-
"front_end/models/issues_manager/descriptions/arInvalidTriggerPriority.md",
|
289
|
-
"front_end/models/issues_manager/descriptions/arMissingAttributionData.md",
|
290
285
|
"front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md",
|
291
286
|
"front_end/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md",
|
292
287
|
"front_end/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md",
|
@@ -497,6 +492,7 @@ grd_files_release_sources = [
|
|
497
492
|
"front_end/ui/components/linkifier/linkifier.js",
|
498
493
|
"front_end/ui/components/markdown_view/markdown_view.js",
|
499
494
|
"front_end/ui/components/panel_feedback/panel_feedback.js",
|
495
|
+
"front_end/ui/components/panel_introduction_steps/panel_introduction_steps.js",
|
500
496
|
"front_end/ui/components/render_coordinator/render_coordinator.js",
|
501
497
|
"front_end/ui/components/report_view/report_view.js",
|
502
498
|
"front_end/ui/components/request_link_icon/request_link_icon.js",
|
@@ -582,6 +578,7 @@ grd_files_debug_sources = [
|
|
582
578
|
"front_end/core/platform/array-utilities.js",
|
583
579
|
"front_end/core/platform/date-utilities.js",
|
584
580
|
"front_end/core/platform/dcheck.js",
|
581
|
+
"front_end/core/platform/dom-utilities.js",
|
585
582
|
"front_end/core/platform/keyboard-utilities.js",
|
586
583
|
"front_end/core/platform/map-utilities.js",
|
587
584
|
"front_end/core/platform/number-utilities.js",
|
@@ -772,6 +769,7 @@ grd_files_debug_sources = [
|
|
772
769
|
"front_end/models/persistence/editFileSystemView.css.js",
|
773
770
|
"front_end/models/persistence/workspaceSettingsTab.css.js",
|
774
771
|
"front_end/models/source_map_scopes/NamesResolver.js",
|
772
|
+
"front_end/models/text_utils/CodeMirrorUtils.js",
|
775
773
|
"front_end/models/text_utils/ContentProvider.js",
|
776
774
|
"front_end/models/text_utils/StaticContentProvider.js",
|
777
775
|
"front_end/models/text_utils/Text.js",
|
@@ -949,6 +947,7 @@ grd_files_debug_sources = [
|
|
949
947
|
"front_end/panels/elements/PropertiesWidget.js",
|
950
948
|
"front_end/panels/elements/PropertyNameCategories.js",
|
951
949
|
"front_end/panels/elements/StyleEditorWidget.js",
|
950
|
+
"front_end/panels/elements/StylePropertiesSection.js",
|
952
951
|
"front_end/panels/elements/StylePropertyHighlighter.js",
|
953
952
|
"front_end/panels/elements/StylePropertyTreeElement.js",
|
954
953
|
"front_end/panels/elements/StylePropertyUtils.js",
|
@@ -1471,6 +1470,8 @@ grd_files_debug_sources = [
|
|
1471
1470
|
"front_end/ui/components/panel_feedback/PreviewToggle.js",
|
1472
1471
|
"front_end/ui/components/panel_feedback/panelFeedback.css.js",
|
1473
1472
|
"front_end/ui/components/panel_feedback/previewToggle.css.js",
|
1473
|
+
"front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.js",
|
1474
|
+
"front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css.js",
|
1474
1475
|
"front_end/ui/components/render_coordinator/RenderCoordinator.js",
|
1475
1476
|
"front_end/ui/components/report_view/ReportView.js",
|
1476
1477
|
"front_end/ui/components/report_view/report.css.js",
|
package/front_end/.eslintrc.js
CHANGED
@@ -30,6 +30,7 @@ module.exports = {
|
|
30
30
|
'rulesdir/no_importing_images_from_src': 2,
|
31
31
|
'rulesdir/enforce_custom_event_names': 2,
|
32
32
|
'rulesdir/set_data_type_reference': 2,
|
33
|
+
'rulesdir/no_bound_component_methods': 2,
|
33
34
|
'rulesdir/lit_html_data_as_type': 2,
|
34
35
|
'rulesdir/lit_no_style_interpolation': 2,
|
35
36
|
'rulesdir/ban_literal_devtools_component_tag_names': 2,
|
@@ -116,6 +117,15 @@ module.exports = {
|
|
116
117
|
'selector': 'parameter',
|
117
118
|
'format': ['camelCase'],
|
118
119
|
'leadingUnderscore': 'allow',
|
120
|
+
},
|
121
|
+
{
|
122
|
+
// Ignore type properties that require quotes
|
123
|
+
'selector': [
|
124
|
+
'typeProperty',
|
125
|
+
'enumMember'
|
126
|
+
],
|
127
|
+
'format': null,
|
128
|
+
'modifiers': ['requiresQuotes']
|
119
129
|
}
|
120
130
|
]
|
121
131
|
}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M7.33333 14.6667C6.96667 14.6667 6.65289 14.5362 6.392 14.2753C6.13067 14.014 6 13.7 6 13.3333V10.6667H4C3.63333 10.6667 3.31956 10.536 3.05867 10.2747C2.79733 10.0138 2.66667 9.7 2.66667 9.33333V4.66667C2.66667 3.93333 2.92778 3.30556 3.45 2.78333C3.97222 2.26111 4.6 2 5.33333 2H13.3333V9.33333C13.3333 9.7 13.2029 10.0138 12.942 10.2747C12.6807 10.536 12.3667 10.6667 12 10.6667H10V13.3333C10 13.7 9.86956 14.014 9.60867 14.2753C9.34733 14.5362 9.03333 14.6667 8.66667 14.6667H7.33333ZM4 6.66667H12V3.33333H11.3333V6H10V3.33333H9.33333V4.66667H8V3.33333H5.33333C4.96667 3.33333 4.65289 3.464 4.392 3.72533C4.13067 3.98622 4 4.3 4 4.66667V6.66667ZM4 9.33333H12V8H4V9.33333ZM4 8V9.33333V8Z" fill="black"/>
|
3
|
+
</svg>
|
@@ -38,26 +38,26 @@ export function normalizePath(path: string): string {
|
|
38
38
|
return path;
|
39
39
|
}
|
40
40
|
|
41
|
+
// Remove leading slash (will be added back below) so we
|
42
|
+
// can handle all (including empty) segments consistently.
|
43
|
+
const segments = (path[0] === '/' ? path.substring(1) : path).split('/');
|
41
44
|
const normalizedSegments = [];
|
42
|
-
const segments = path.split('/');
|
43
45
|
for (const segment of segments) {
|
44
46
|
if (segment === '.') {
|
45
47
|
continue;
|
46
48
|
} else if (segment === '..') {
|
47
49
|
normalizedSegments.pop();
|
48
|
-
} else
|
50
|
+
} else {
|
49
51
|
normalizedSegments.push(segment);
|
50
52
|
}
|
51
53
|
}
|
52
54
|
let normalizedPath = normalizedSegments.join('/');
|
53
|
-
if (normalizedPath[normalizedPath.length - 1] === '/') {
|
54
|
-
return normalizedPath;
|
55
|
-
}
|
56
55
|
if (path[0] === '/' && normalizedPath) {
|
57
56
|
normalizedPath = '/' + normalizedPath;
|
58
57
|
}
|
59
|
-
if (
|
60
|
-
(segments[segments.length - 1] === '
|
58
|
+
if (normalizedPath[normalizedPath.length - 1] !== '/' &&
|
59
|
+
((path[path.length - 1] === '/') || (segments[segments.length - 1] === '.') ||
|
60
|
+
(segments[segments.length - 1] === '..'))) {
|
61
61
|
normalizedPath = normalizedPath + '/';
|
62
62
|
}
|
63
63
|
|
@@ -114,12 +114,12 @@ export class ParsedURL {
|
|
114
114
|
} else {
|
115
115
|
this.scheme = match[2].toLowerCase();
|
116
116
|
}
|
117
|
-
this.user = match[3];
|
118
|
-
this.host = match[4];
|
119
|
-
this.port = match[5];
|
120
|
-
this.path = match[6]
|
121
|
-
this.queryParams = match[7]
|
122
|
-
this.fragment = match[8];
|
117
|
+
this.user = match[3] ?? '';
|
118
|
+
this.host = match[4] ?? '';
|
119
|
+
this.port = match[5] ?? '';
|
120
|
+
this.path = match[6] ?? '/';
|
121
|
+
this.queryParams = match[7] ?? '';
|
122
|
+
this.fragment = match[8] ?? '';
|
123
123
|
} else {
|
124
124
|
if (this.url.startsWith('data:')) {
|
125
125
|
this.scheme = 'data';
|
@@ -254,12 +254,25 @@ export class ParsedURL {
|
|
254
254
|
return devToolsPath.trim() as DevToolsPathType;
|
255
255
|
}
|
256
256
|
|
257
|
-
static
|
258
|
-
|
259
|
-
|
257
|
+
static slice<DevToolsPathType extends BrandedPathString>(
|
258
|
+
devToolsPath: DevToolsPathType, start?: number, end?: number): DevToolsPathType {
|
259
|
+
return devToolsPath.slice(start, end) as DevToolsPathType;
|
260
|
+
}
|
261
|
+
|
262
|
+
static join<DevToolsPathType extends BrandedPathString>(devToolsPaths: DevToolsPathType[], separator?: string):
|
263
|
+
DevToolsPathType {
|
260
264
|
return devToolsPaths.join(separator) as DevToolsPathType;
|
261
265
|
}
|
262
266
|
|
267
|
+
static split<DevToolsPathType extends BrandedPathString>(devToolsPath: DevToolsPathType, separator: string|RegExp):
|
268
|
+
DevToolsPathType[] {
|
269
|
+
return devToolsPath.split(separator) as DevToolsPathType[];
|
270
|
+
}
|
271
|
+
|
272
|
+
static toLowerCase<DevToolsPathType extends BrandedPathString>(devToolsPath: DevToolsPathType): DevToolsPathType {
|
273
|
+
return devToolsPath.toLowerCase() as DevToolsPathType;
|
274
|
+
}
|
275
|
+
|
263
276
|
static urlWithoutHash(url: string): string {
|
264
277
|
const hashIndex = url.indexOf('#');
|
265
278
|
if (hashIndex !== -1) {
|
@@ -346,9 +359,10 @@ export class ParsedURL {
|
|
346
359
|
const parsedHref = this.fromString(trimmedHref);
|
347
360
|
if (parsedHref && parsedHref.scheme) {
|
348
361
|
const securityOrigin = parsedHref.securityOrigin();
|
349
|
-
const pathText = parsedHref.path;
|
350
|
-
const
|
351
|
-
|
362
|
+
const pathText = normalizePath(parsedHref.path);
|
363
|
+
const queryText = parsedHref.queryParams && `?${parsedHref.queryParams}`;
|
364
|
+
const fragmentText = parsedHref.fragment && `#${parsedHref.fragment}`;
|
365
|
+
return securityOrigin + pathText + queryText + fragmentText as Platform.DevToolsPath.UrlString;
|
352
366
|
}
|
353
367
|
|
354
368
|
const parsedURL = this.fromString(baseURL);
|
@@ -395,7 +409,7 @@ export class ParsedURL {
|
|
395
409
|
}
|
396
410
|
|
397
411
|
static splitLineAndColumn(string: string): {
|
398
|
-
url:
|
412
|
+
url: Platform.DevToolsPath.UrlString,
|
399
413
|
lineNumber: (number|undefined),
|
400
414
|
columnNumber: (number|undefined),
|
401
415
|
} {
|
@@ -414,7 +428,7 @@ export class ParsedURL {
|
|
414
428
|
let columnNumber;
|
415
429
|
console.assert(Boolean(lineColumnMatch));
|
416
430
|
if (!lineColumnMatch) {
|
417
|
-
return {url: string, lineNumber: 0, columnNumber: 0};
|
431
|
+
return {url: string as Platform.DevToolsPath.UrlString, lineNumber: 0, columnNumber: 0};
|
418
432
|
}
|
419
433
|
|
420
434
|
if (typeof (lineColumnMatch[1]) === 'string') {
|
@@ -427,7 +441,9 @@ export class ParsedURL {
|
|
427
441
|
columnNumber = isNaN(columnNumber) ? undefined : columnNumber - 1;
|
428
442
|
}
|
429
443
|
|
430
|
-
let url:
|
444
|
+
let url: Platform.DevToolsPath.UrlString =
|
445
|
+
beforePath + pathAndAfter.substring(0, pathAndAfter.length - lineColumnMatch[0].length) as
|
446
|
+
Platform.DevToolsPath.UrlString;
|
431
447
|
if (lineColumnMatch[1] === undefined && lineColumnMatch[2] === undefined) {
|
432
448
|
const wasmCodeOffsetRegex = /wasm-function\[\d+\]:0x([a-z0-9]+)$/g;
|
433
449
|
const wasmCodeOffsetMatch = wasmCodeOffsetRegex.exec(pathAndAfter);
|
@@ -441,13 +457,13 @@ export class ParsedURL {
|
|
441
457
|
return {url, lineNumber, columnNumber};
|
442
458
|
}
|
443
459
|
|
444
|
-
static removeWasmFunctionInfoFromURL(url: string):
|
460
|
+
static removeWasmFunctionInfoFromURL(url: string): Platform.DevToolsPath.UrlString {
|
445
461
|
const wasmFunctionRegEx = /:wasm-function\[\d+\]/;
|
446
462
|
const wasmFunctionIndex = url.search(wasmFunctionRegEx);
|
447
463
|
if (wasmFunctionIndex === -1) {
|
448
|
-
return url;
|
464
|
+
return url as Platform.DevToolsPath.UrlString;
|
449
465
|
}
|
450
|
-
return
|
466
|
+
return ParsedURL.substring(url as Platform.DevToolsPath.UrlString, 0, wasmFunctionIndex);
|
451
467
|
}
|
452
468
|
|
453
469
|
static isRelativeURL(url: string): boolean {
|
@@ -517,12 +533,12 @@ export class ParsedURL {
|
|
517
533
|
return this.host + (this.port ? ':' + this.port : '');
|
518
534
|
}
|
519
535
|
|
520
|
-
securityOrigin():
|
536
|
+
securityOrigin(): Platform.DevToolsPath.UrlString {
|
521
537
|
if (this.isDataURL()) {
|
522
|
-
return 'data:';
|
538
|
+
return 'data:' as Platform.DevToolsPath.UrlString;
|
523
539
|
}
|
524
540
|
const scheme = this.isBlobURL() ? this.blobInnerScheme : this.scheme;
|
525
|
-
return scheme + '://' + this.domain();
|
541
|
+
return scheme + '://' + this.domain() as Platform.DevToolsPath.UrlString;
|
526
542
|
}
|
527
543
|
|
528
544
|
urlWithoutScheme(): string {
|
@@ -243,7 +243,7 @@ export class ResourceType {
|
|
243
243
|
return null;
|
244
244
|
}
|
245
245
|
|
246
|
-
static mimeFromURL(url:
|
246
|
+
static mimeFromURL(url: Platform.DevToolsPath.UrlString): string|undefined {
|
247
247
|
const name = ParsedURL.extractName(url);
|
248
248
|
if (mimeTypeByName.has(name)) {
|
249
249
|
return mimeTypeByName.get(name);
|
@@ -111,6 +111,7 @@ export function registerSettingsForTest(settings: Array<SettingRegistration>, fo
|
|
111
111
|
|
112
112
|
export function resetSettings(): void {
|
113
113
|
registeredSettings = [];
|
114
|
+
settingNameSet.clear();
|
114
115
|
}
|
115
116
|
|
116
117
|
export function maybeRemoveSettingExtension(settingName: string): boolean {
|
@@ -53,7 +53,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
53
53
|
const MAX_RECORDED_HISTOGRAMS_SIZE = 100;
|
54
54
|
|
55
55
|
export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
56
|
-
readonly #urlsBeingSaved: Map<
|
56
|
+
readonly #urlsBeingSaved: Map<Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString, string[]>;
|
57
57
|
events!: Common.EventTarget.EventTarget<EventTypes>;
|
58
58
|
|
59
59
|
recordedEnumeratedHistograms: {actionName: EnumeratedHistogram, actionCode: number}[] = [];
|
@@ -122,7 +122,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
|
122
122
|
setInjectedScriptForOrigin(origin: string, script: string): void {
|
123
123
|
}
|
124
124
|
|
125
|
-
inspectedURLChanged(url:
|
125
|
+
inspectedURLChanged(url: Platform.DevToolsPath.UrlString): void {
|
126
126
|
document.title = i18nString(UIStrings.devtoolsS, {PH1: url.replace(/^https?:\/\//, '')});
|
127
127
|
}
|
128
128
|
|
@@ -133,16 +133,17 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
|
133
133
|
void navigator.clipboard.writeText(text);
|
134
134
|
}
|
135
135
|
|
136
|
-
openInNewTab(url:
|
136
|
+
openInNewTab(url: Platform.DevToolsPath.UrlString): void {
|
137
137
|
window.open(url, '_blank');
|
138
138
|
}
|
139
139
|
|
140
|
-
showItemInFolder(fileSystemPath:
|
140
|
+
showItemInFolder(fileSystemPath: Platform.DevToolsPath.RawPathString): void {
|
141
141
|
Common.Console.Console.instance().error(
|
142
142
|
'Show item in folder is not enabled in hosted mode. Please inspect using chrome://inspect');
|
143
143
|
}
|
144
144
|
|
145
|
-
save(url:
|
145
|
+
save(url: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString, content: string, forceSaveAs: boolean):
|
146
|
+
void {
|
146
147
|
let buffer = this.#urlsBeingSaved.get(url);
|
147
148
|
if (!buffer) {
|
148
149
|
buffer = [];
|
@@ -152,7 +153,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
|
152
153
|
this.events.dispatchEventToListeners(Events.SavedURL, {url, fileSystemPath: url});
|
153
154
|
}
|
154
155
|
|
155
|
-
append(url:
|
156
|
+
append(url: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString, content: string): void {
|
156
157
|
const buffer = this.#urlsBeingSaved.get(url);
|
157
158
|
if (buffer) {
|
158
159
|
buffer.push(content);
|
@@ -160,7 +161,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
|
160
161
|
}
|
161
162
|
}
|
162
163
|
|
163
|
-
close(url:
|
164
|
+
close(url: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString): void {
|
164
165
|
const buffer = this.#urlsBeingSaved.get(url) || [];
|
165
166
|
this.#urlsBeingSaved.delete(url);
|
166
167
|
let fileName = '';
|
@@ -211,7 +212,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
|
211
212
|
addFileSystem(type?: string): void {
|
212
213
|
}
|
213
214
|
|
214
|
-
removeFileSystem(fileSystemPath:
|
215
|
+
removeFileSystem(fileSystemPath: Platform.DevToolsPath.RawPathString): void {
|
215
216
|
}
|
216
217
|
|
217
218
|
isolatedFileSystem(fileSystemId: string, registeredName: string): FileSystem|null {
|
@@ -286,13 +287,13 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
|
286
287
|
upgradeDraggedFileSystemPermissions(fileSystem: FileSystem): void {
|
287
288
|
}
|
288
289
|
|
289
|
-
indexPath(requestId: number, fileSystemPath:
|
290
|
+
indexPath(requestId: number, fileSystemPath: Platform.DevToolsPath.RawPathString, excludedFolders: string): void {
|
290
291
|
}
|
291
292
|
|
292
293
|
stopIndexing(requestId: number): void {
|
293
294
|
}
|
294
295
|
|
295
|
-
searchInPath(requestId: number, fileSystemPath:
|
296
|
+
searchInPath(requestId: number, fileSystemPath: Platform.DevToolsPath.RawPathString, query: string): void {
|
296
297
|
}
|
297
298
|
|
298
299
|
zoomFactor(): number {
|
@@ -121,14 +121,14 @@ export interface KeyEventUnhandledEvent {
|
|
121
121
|
}
|
122
122
|
|
123
123
|
export interface RevealSourceLineEvent {
|
124
|
-
url:
|
124
|
+
url: Platform.DevToolsPath.UrlString;
|
125
125
|
lineNumber: number;
|
126
126
|
columnNumber: number;
|
127
127
|
}
|
128
128
|
|
129
129
|
export interface SavedURLEvent {
|
130
|
-
url:
|
131
|
-
fileSystemPath:
|
130
|
+
url: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString;
|
131
|
+
fileSystemPath: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString;
|
132
132
|
}
|
133
133
|
|
134
134
|
export interface SearchCompletedEvent {
|
@@ -142,8 +142,8 @@ export interface SearchCompletedEvent {
|
|
142
142
|
// Please note that the "dispatch" side can't be type-checked as the dispatch is
|
143
143
|
// done dynamically.
|
144
144
|
export type EventTypes = {
|
145
|
-
[Events.AppendedToURL]:
|
146
|
-
[Events.CanceledSaveURL]:
|
145
|
+
[Events.AppendedToURL]: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString,
|
146
|
+
[Events.CanceledSaveURL]: Platform.DevToolsPath.UrlString,
|
147
147
|
[Events.ContextMenuCleared]: void,
|
148
148
|
[Events.ContextMenuItemSelected]: number,
|
149
149
|
[Events.DeviceCountUpdated]: number,
|
@@ -177,7 +177,7 @@ export interface InspectorFrontendHostAPI {
|
|
177
177
|
|
178
178
|
loadCompleted(): void;
|
179
179
|
|
180
|
-
indexPath(requestId: number, fileSystemPath:
|
180
|
+
indexPath(requestId: number, fileSystemPath: Platform.DevToolsPath.RawPathString, excludedFolders: string): void;
|
181
181
|
|
182
182
|
/**
|
183
183
|
* Requests inspected page to be placed atop of the inspector frontend with specified bounds.
|
@@ -197,21 +197,21 @@ export interface InspectorFrontendHostAPI {
|
|
197
197
|
|
198
198
|
inspectElementCompleted(): void;
|
199
199
|
|
200
|
-
openInNewTab(url:
|
200
|
+
openInNewTab(url: Platform.DevToolsPath.UrlString): void;
|
201
201
|
|
202
|
-
showItemInFolder(fileSystemPath:
|
202
|
+
showItemInFolder(fileSystemPath: Platform.DevToolsPath.RawPathString): void;
|
203
203
|
|
204
|
-
removeFileSystem(fileSystemPath:
|
204
|
+
removeFileSystem(fileSystemPath: Platform.DevToolsPath.RawPathString): void;
|
205
205
|
|
206
206
|
requestFileSystems(): void;
|
207
207
|
|
208
|
-
save(url:
|
208
|
+
save(url: Platform.DevToolsPath.UrlString, content: string, forceSaveAs: boolean): void;
|
209
209
|
|
210
|
-
append(url:
|
210
|
+
append(url: Platform.DevToolsPath.UrlString, content: string): void;
|
211
211
|
|
212
|
-
close(url:
|
212
|
+
close(url: Platform.DevToolsPath.UrlString): void;
|
213
213
|
|
214
|
-
searchInPath(requestId: number, fileSystemPath:
|
214
|
+
searchInPath(requestId: number, fileSystemPath: Platform.DevToolsPath.RawPathString, query: string): void;
|
215
215
|
|
216
216
|
stopIndexing(requestId: number): void;
|
217
217
|
|
@@ -221,7 +221,7 @@ export interface InspectorFrontendHostAPI {
|
|
221
221
|
|
222
222
|
copyText(text: string|null|undefined): void;
|
223
223
|
|
224
|
-
inspectedURLChanged(url:
|
224
|
+
inspectedURLChanged(url: Platform.DevToolsPath.UrlString): void;
|
225
225
|
|
226
226
|
isolatedFileSystem(fileSystemId: string, registeredName: string): FileSystem|null;
|
227
227
|
|
@@ -374,4 +374,5 @@ export enum EnumeratedHistogram {
|
|
374
374
|
RecordingReplayFinished = 'DevTools.RecordingReplayFinished',
|
375
375
|
RecordingReplayStarted = 'DevTools.RecordingReplayStarted',
|
376
376
|
RecordingToggled = 'DevTools.RecordingToggled',
|
377
|
+
StyleTextCopied = 'DevTools.StyleTextCopied',
|
377
378
|
}
|
@@ -41,7 +41,7 @@ export function platform(): string {
|
|
41
41
|
return _platform;
|
42
42
|
}
|
43
43
|
|
44
|
-
let _isMac: boolean;
|
44
|
+
let _isMac: boolean|undefined;
|
45
45
|
|
46
46
|
export function isMac(): boolean {
|
47
47
|
if (typeof _isMac === 'undefined') {
|
@@ -51,7 +51,7 @@ export function isMac(): boolean {
|
|
51
51
|
return _isMac;
|
52
52
|
}
|
53
53
|
|
54
|
-
let _isWin: boolean;
|
54
|
+
let _isWin: boolean|undefined;
|
55
55
|
|
56
56
|
export function isWin(): boolean {
|
57
57
|
if (typeof _isWin === 'undefined') {
|
@@ -61,6 +61,15 @@ export function isWin(): boolean {
|
|
61
61
|
return _isWin;
|
62
62
|
}
|
63
63
|
|
64
|
+
// In Chrome Layout tests the imported 'Platform' object is not writable/
|
65
|
+
// configurable, which prevents us from monkey-patching 'Platform''s methods.
|
66
|
+
// We circumvent this by adding 'setPlatformForTests'.
|
67
|
+
export function setPlatformForTests(platform: string): void {
|
68
|
+
_platform = platform;
|
69
|
+
_isMac = undefined;
|
70
|
+
_isWin = undefined;
|
71
|
+
}
|
72
|
+
|
64
73
|
let _isCustomDevtoolsFrontend: boolean;
|
65
74
|
|
66
75
|
export function isCustomDevtoolsFrontend(): boolean {
|
@@ -260,6 +260,11 @@ export class UserMetrics {
|
|
260
260
|
InspectorFrontendHostInstance.recordEnumeratedHistogram(
|
261
261
|
EnumeratedHistogram.RecordingExported, value, RecordingExported.MaxValue);
|
262
262
|
}
|
263
|
+
|
264
|
+
styleTextCopied(value: StyleTextCopied): void {
|
265
|
+
InspectorFrontendHostInstance.recordEnumeratedHistogram(
|
266
|
+
EnumeratedHistogram.StyleTextCopied, value, StyleTextCopied.MaxValue);
|
267
|
+
}
|
263
268
|
}
|
264
269
|
|
265
270
|
/**
|
@@ -402,7 +407,8 @@ export enum PanelCodes {
|
|
402
407
|
'dom_storage' = 60,
|
403
408
|
'indexed_db' = 61,
|
404
409
|
'web_sql' = 62,
|
405
|
-
|
410
|
+
'performance_insights' = 63,
|
411
|
+
MaxValue = 64,
|
406
412
|
}
|
407
413
|
/* eslint-enable @typescript-eslint/naming-convention */
|
408
414
|
|
@@ -611,8 +617,10 @@ export enum DevtoolsExperiments {
|
|
611
617
|
'lighthousePanelFR' = 57,
|
612
618
|
'evaluateExpressionsWithSourceMaps' = 58,
|
613
619
|
'cssLayers' = 59,
|
620
|
+
'eyedropperColorPicker' = 60,
|
621
|
+
'instrumentationBreakpoints' = 61,
|
614
622
|
// Increment this when new experiments are added.
|
615
|
-
'MaxValue' =
|
623
|
+
'MaxValue' = 62,
|
616
624
|
}
|
617
625
|
/* eslint-enable @typescript-eslint/naming-convention */
|
618
626
|
|
@@ -925,4 +933,21 @@ export enum ConsoleShowsCorsErrors {
|
|
925
933
|
'true' = 1,
|
926
934
|
MaxValue = 2,
|
927
935
|
}
|
936
|
+
|
937
|
+
// TODO(crbug.com/1167717): Make this a const enum again
|
938
|
+
// eslint-disable-next-line rulesdir/const_enum
|
939
|
+
export enum StyleTextCopied {
|
940
|
+
DeclarationViaChangedLine = 1,
|
941
|
+
AllChangesViaStylesPane = 2,
|
942
|
+
DeclarationViaContextMenu = 3,
|
943
|
+
PropertyViaContextMenu = 4,
|
944
|
+
ValueViaContextMenu = 5,
|
945
|
+
DeclarationAsJSViaContextMenu = 6,
|
946
|
+
RuleViaContextMenu = 7,
|
947
|
+
AllDeclarationsViaContextMenu = 8,
|
948
|
+
AllDeclarationsAsJSViaContextMenu = 9,
|
949
|
+
SelectorViaContextMenu = 10,
|
950
|
+
MaxValue = 11,
|
951
|
+
}
|
952
|
+
|
928
953
|
/* eslint-enable @typescript-eslint/naming-convention */
|
@@ -55,6 +55,10 @@ export class DevToolsLocale {
|
|
55
55
|
return devToolsLocaleInstance as DevToolsLocale;
|
56
56
|
}
|
57
57
|
|
58
|
+
static removeInstance(): void {
|
59
|
+
devToolsLocaleInstance = null;
|
60
|
+
}
|
61
|
+
|
58
62
|
forceFallbackLocale(): void {
|
59
63
|
// Locale is 'readonly', this is the only case where we want to forceably
|
60
64
|
// overwrite the locale.
|