chrome-devtools-frontend 1.0.981537 → 1.0.995491
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 +205 -52
- package/front_end/core/i18n/locales/en-XL.json +205 -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 +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/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 +31 -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/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 +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/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/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/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_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
@@ -1325,6 +1325,21 @@
|
|
1325
1325
|
"models/issues_manager/ContentSecurityPolicyIssue.ts | trustedTypesPolicyViolation": {
|
1326
1326
|
"message": "Trusted Types - 违反政策"
|
1327
1327
|
},
|
1328
|
+
"models/issues_manager/CookieIssue.ts | aSecure": {
|
1329
|
+
"message": "安全的"
|
1330
|
+
},
|
1331
|
+
"models/issues_manager/CookieIssue.ts | anInsecure": {
|
1332
|
+
"message": "不安全的"
|
1333
|
+
},
|
1334
|
+
"models/issues_manager/CookieIssue.ts | firstPartySetsExplained": {
|
1335
|
+
"message": "First-Party Sets 和 SameParty 属性"
|
1336
|
+
},
|
1337
|
+
"models/issues_manager/CookieIssue.ts | howSchemefulSamesiteWorks": {
|
1338
|
+
"message": "Schemeful Same-Site 的运作方式"
|
1339
|
+
},
|
1340
|
+
"models/issues_manager/CookieIssue.ts | samesiteCookiesExplained": {
|
1341
|
+
"message": "SameSite Cookie 说明"
|
1342
|
+
},
|
1328
1343
|
"models/issues_manager/CorsIssue.ts | CORS": {
|
1329
1344
|
"message": "跨域资源共享 (CORS)"
|
1330
1345
|
},
|
@@ -1376,21 +1391,6 @@
|
|
1376
1391
|
"models/issues_manager/QuirksModeIssue.ts | documentCompatibilityMode": {
|
1377
1392
|
"message": "文档兼容模式"
|
1378
1393
|
},
|
1379
|
-
"models/issues_manager/CookieIssue.ts | aSecure": {
|
1380
|
-
"message": "安全的"
|
1381
|
-
},
|
1382
|
-
"models/issues_manager/CookieIssue.ts | anInsecure": {
|
1383
|
-
"message": "不安全的"
|
1384
|
-
},
|
1385
|
-
"models/issues_manager/CookieIssue.ts | firstPartySetsExplained": {
|
1386
|
-
"message": "First-Party Sets 和 SameParty 属性"
|
1387
|
-
},
|
1388
|
-
"models/issues_manager/CookieIssue.ts | howSchemefulSamesiteWorks": {
|
1389
|
-
"message": "Schemeful Same-Site 的运作方式"
|
1390
|
-
},
|
1391
|
-
"models/issues_manager/CookieIssue.ts | samesiteCookiesExplained": {
|
1392
|
-
"message": "SameSite Cookie 说明"
|
1393
|
-
},
|
1394
1394
|
"models/issues_manager/SharedArrayBufferIssue.ts | enablingSharedArrayBuffer": {
|
1395
1395
|
"message": "启用 SharedArrayBuffer"
|
1396
1396
|
},
|
@@ -3236,6 +3236,9 @@
|
|
3236
3236
|
"panels/application/components/BackForwardCacheView.ts | backForwardCacheTitle": {
|
3237
3237
|
"message": "往返缓存"
|
3238
3238
|
},
|
3239
|
+
"panels/application/components/BackForwardCacheView.ts | blockingExtensionId": {
|
3240
|
+
"message": "扩展程序 ID: "
|
3241
|
+
},
|
3239
3242
|
"panels/application/components/BackForwardCacheView.ts | circumstantial": {
|
3240
3243
|
"message": "无法解决"
|
3241
3244
|
},
|
@@ -4622,6 +4625,12 @@
|
|
4622
4625
|
"panels/elements/EventListenersWidget.ts | showListenersOnTheAncestors": {
|
4623
4626
|
"message": "显示祖先中的监听器"
|
4624
4627
|
},
|
4628
|
+
"panels/elements/LayersWidget.ts | cssLayersTitle": {
|
4629
|
+
"message": "CSS 图层"
|
4630
|
+
},
|
4631
|
+
"panels/elements/LayersWidget.ts | toggleCSSLayers": {
|
4632
|
+
"message": "显示/隐藏 CSS 图层视图"
|
4633
|
+
},
|
4625
4634
|
"panels/elements/MarkerDecorator.ts | domBreakpoint": {
|
4626
4635
|
"message": "DOM 断点"
|
4627
4636
|
},
|
@@ -4703,6 +4712,9 @@
|
|
4703
4712
|
"panels/elements/StylePropertyTreeElement.ts | viewComputedValue": {
|
4704
4713
|
"message": "查看计算得出的值"
|
4705
4714
|
},
|
4715
|
+
"panels/elements/StylesSidebarPane.ts | clickToRevealLayer": {
|
4716
|
+
"message": "点击即可在图层树中显示图层"
|
4717
|
+
},
|
4706
4718
|
"panels/elements/StylesSidebarPane.ts | constructedStylesheet": {
|
4707
4719
|
"message": "构造的样式表"
|
4708
4720
|
},
|
@@ -4757,6 +4769,9 @@
|
|
4757
4769
|
"panels/elements/StylesSidebarPane.ts | invalidString": {
|
4758
4770
|
"message": "{PH1},属性名称:{PH2},属性值:{PH3}"
|
4759
4771
|
},
|
4772
|
+
"panels/elements/StylesSidebarPane.ts | layer": {
|
4773
|
+
"message": "图层"
|
4774
|
+
},
|
4760
4775
|
"panels/elements/StylesSidebarPane.ts | newStyleRule": {
|
4761
4776
|
"message": "新建样式规则"
|
4762
4777
|
},
|
@@ -5816,8 +5831,11 @@
|
|
5816
5831
|
"panels/lighthouse/LighthouseController.ts | thereMayBeStoredDataAffectingSingular": {
|
5817
5832
|
"message": "下列位置可能存储了会影响加载性能的数据:{PH1}。请在无痕式窗口中审核此网页,以防止这些资源影响您的得分。"
|
5818
5833
|
},
|
5834
|
+
"panels/lighthouse/LighthouseController.ts | timespan": {
|
5835
|
+
"message": "时间跨度"
|
5836
|
+
},
|
5819
5837
|
"panels/lighthouse/LighthouseController.ts | useLegacyNavigation": {
|
5820
|
-
"message": "在导航模式下使用传统版 Lighthouse
|
5838
|
+
"message": "在导航模式下使用传统版 Lighthouse 分析网页。"
|
5821
5839
|
},
|
5822
5840
|
"panels/lighthouse/LighthouseController.ts | webSql": {
|
5823
5841
|
"message": "Web SQL"
|
@@ -5876,9 +5894,18 @@
|
|
5876
5894
|
"panels/lighthouse/LighthouseStartView.ts | learnMore": {
|
5877
5895
|
"message": "了解详情"
|
5878
5896
|
},
|
5897
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | analyzeNavigation": {
|
5898
|
+
"message": "分析导航"
|
5899
|
+
},
|
5900
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | analyzeSnapshot": {
|
5901
|
+
"message": "分析快照"
|
5902
|
+
},
|
5879
5903
|
"panels/lighthouse/LighthouseStartViewFR.ts | mode": {
|
5880
5904
|
"message": "模式"
|
5881
5905
|
},
|
5906
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | startTimespan": {
|
5907
|
+
"message": "启用时间跨度模式"
|
5908
|
+
},
|
5882
5909
|
"panels/lighthouse/LighthouseStatusView.ts | OfGlobalMobileUsersInWereOnGOrG": {
|
5883
5910
|
"message": "2016 年,全球有 75% 的手机用户使用的是 2G 或 3G 网络 [来源:GSMA Mobile]"
|
5884
5911
|
},
|
@@ -5966,6 +5993,18 @@
|
|
5966
5993
|
"panels/lighthouse/LighthouseStatusView.ts | walmartSawAIncreaseInRevenueFor": {
|
5967
5994
|
"message": "Walmart 发现,网页加载用时每减少 100 毫秒,收入就会增加 1% [来源:WPO Stats]"
|
5968
5995
|
},
|
5996
|
+
"panels/lighthouse/LighthouseTimespanView.ts | cancel": {
|
5997
|
+
"message": "取消"
|
5998
|
+
},
|
5999
|
+
"panels/lighthouse/LighthouseTimespanView.ts | endTimespan": {
|
6000
|
+
"message": "结束时间跨度模式"
|
6001
|
+
},
|
6002
|
+
"panels/lighthouse/LighthouseTimespanView.ts | timespanStarted": {
|
6003
|
+
"message": "时间跨度模式已启用,与网页互动"
|
6004
|
+
},
|
6005
|
+
"panels/lighthouse/LighthouseTimespanView.ts | timespanStarting": {
|
6006
|
+
"message": "时间跨度模式正在开启…"
|
6007
|
+
},
|
5969
6008
|
"panels/lighthouse/lighthouse-meta.ts | showLighthouse": {
|
5970
6009
|
"message": "显示 Lighthouse"
|
5971
6010
|
},
|
@@ -9698,6 +9737,24 @@
|
|
9698
9737
|
"panels/sources/WatchExpressionsSidebarPane.ts | refreshWatchExpressions": {
|
9699
9738
|
"message": "刷新监视表达式"
|
9700
9739
|
},
|
9740
|
+
"panels/sources/components/HeadersView.ts | addHeader": {
|
9741
|
+
"message": "添加标题"
|
9742
|
+
},
|
9743
|
+
"panels/sources/components/HeadersView.ts | addHeaderOverride": {
|
9744
|
+
"message": "添加标题替换"
|
9745
|
+
},
|
9746
|
+
"panels/sources/components/HeadersView.ts | errorWhenParsing": {
|
9747
|
+
"message": "解析“{PH1}”时出错。"
|
9748
|
+
},
|
9749
|
+
"panels/sources/components/HeadersView.ts | parsingErrorExplainer": {
|
9750
|
+
"message": "这很可能是由于“{PH1}”中存在语法错误。请尝试在外部编辑器中打开此文件以修正该错误,或者删除此文件然后重新创建替换项。"
|
9751
|
+
},
|
9752
|
+
"panels/sources/components/HeadersView.ts | removeBlock": {
|
9753
|
+
"message": "移除此“ApplyTo”部分"
|
9754
|
+
},
|
9755
|
+
"panels/sources/components/HeadersView.ts | removeHeader": {
|
9756
|
+
"message": "移除此标题"
|
9757
|
+
},
|
9701
9758
|
"panels/sources/sources-meta.ts | activateBreakpoints": {
|
9702
9759
|
"message": "启用断点"
|
9703
9760
|
},
|
@@ -10874,6 +10931,9 @@
|
|
10874
10931
|
"panels/timeline/TimelineUIUtils.ts | pinchUpdate": {
|
10875
10932
|
"message": "双指张合更新"
|
10876
10933
|
},
|
10934
|
+
"panels/timeline/TimelineUIUtils.ts | prePaint": {
|
10935
|
+
"message": "预先绘制"
|
10936
|
+
},
|
10877
10937
|
"panels/timeline/TimelineUIUtils.ts | preview": {
|
10878
10938
|
"message": "预览"
|
10879
10939
|
},
|
@@ -1325,6 +1325,21 @@
|
|
1325
1325
|
"models/issues_manager/ContentSecurityPolicyIssue.ts | trustedTypesPolicyViolation": {
|
1326
1326
|
"message": "Izinhlobo Ezithenjwayo - Ukwephulwa kwenqubomgomo"
|
1327
1327
|
},
|
1328
|
+
"models/issues_manager/CookieIssue.ts | aSecure": {
|
1329
|
+
"message": "ephephile"
|
1330
|
+
},
|
1331
|
+
"models/issues_manager/CookieIssue.ts | anInsecure": {
|
1332
|
+
"message": "ukungavikeleki"
|
1333
|
+
},
|
1334
|
+
"models/issues_manager/CookieIssue.ts | firstPartySetsExplained": {
|
1335
|
+
"message": "First-Party Sets kanye nesibaluli se-SameParty"
|
1336
|
+
},
|
1337
|
+
"models/issues_manager/CookieIssue.ts | howSchemefulSamesiteWorks": {
|
1338
|
+
"message": "Lisebenza kanjani Isayithi Elifanayo"
|
1339
|
+
},
|
1340
|
+
"models/issues_manager/CookieIssue.ts | samesiteCookiesExplained": {
|
1341
|
+
"message": "Amakhukhi we-SameSite achaziwe"
|
1342
|
+
},
|
1328
1343
|
"models/issues_manager/CorsIssue.ts | CORS": {
|
1329
1344
|
"message": "Iphutha Lokwabelana Nensiza Yendabuko (CORS)"
|
1330
1345
|
},
|
@@ -1376,21 +1391,6 @@
|
|
1376
1391
|
"models/issues_manager/QuirksModeIssue.ts | documentCompatibilityMode": {
|
1377
1392
|
"message": "Imodi yokuhambelana kwedokhumenti"
|
1378
1393
|
},
|
1379
|
-
"models/issues_manager/CookieIssue.ts | aSecure": {
|
1380
|
-
"message": "ephephile"
|
1381
|
-
},
|
1382
|
-
"models/issues_manager/CookieIssue.ts | anInsecure": {
|
1383
|
-
"message": "ukungavikeleki"
|
1384
|
-
},
|
1385
|
-
"models/issues_manager/CookieIssue.ts | firstPartySetsExplained": {
|
1386
|
-
"message": "First-Party Sets kanye nesibaluli se-SameParty"
|
1387
|
-
},
|
1388
|
-
"models/issues_manager/CookieIssue.ts | howSchemefulSamesiteWorks": {
|
1389
|
-
"message": "Lisebenza kanjani Isayithi Elifanayo"
|
1390
|
-
},
|
1391
|
-
"models/issues_manager/CookieIssue.ts | samesiteCookiesExplained": {
|
1392
|
-
"message": "Amakhukhi we-SameSite achaziwe"
|
1393
|
-
},
|
1394
1394
|
"models/issues_manager/SharedArrayBufferIssue.ts | enablingSharedArrayBuffer": {
|
1395
1395
|
"message": "Inika amandla i-SharedArrayBuffer"
|
1396
1396
|
},
|
@@ -3236,6 +3236,9 @@
|
|
3236
3236
|
"panels/application/components/BackForwardCacheView.ts | backForwardCacheTitle": {
|
3237
3237
|
"message": "Inqolobane yasemuva/phambili"
|
3238
3238
|
},
|
3239
|
+
"panels/application/components/BackForwardCacheView.ts | blockingExtensionId": {
|
3240
|
+
"message": "Isandiso se-id: "
|
3241
|
+
},
|
3239
3242
|
"panels/application/components/BackForwardCacheView.ts | circumstantial": {
|
3240
3243
|
"message": "Akwenzeki"
|
3241
3244
|
},
|
@@ -4622,6 +4625,12 @@
|
|
4622
4625
|
"panels/elements/EventListenersWidget.ts | showListenersOnTheAncestors": {
|
4623
4626
|
"message": "Bonisa abalaleli kokhokho"
|
4624
4627
|
},
|
4628
|
+
"panels/elements/LayersWidget.ts | cssLayersTitle": {
|
4629
|
+
"message": "Izendlalelo ze-CSS"
|
4630
|
+
},
|
4631
|
+
"panels/elements/LayersWidget.ts | toggleCSSLayers": {
|
4632
|
+
"message": "Guqula ukubika Izendlalelo ze-CSS"
|
4633
|
+
},
|
4625
4634
|
"panels/elements/MarkerDecorator.ts | domBreakpoint": {
|
4626
4635
|
"message": "Iphoyinti lokuphumula DOM"
|
4627
4636
|
},
|
@@ -4703,6 +4712,9 @@
|
|
4703
4712
|
"panels/elements/StylePropertyTreeElement.ts | viewComputedValue": {
|
4704
4713
|
"message": "Buka inani lekhompyutha"
|
4705
4714
|
},
|
4715
|
+
"panels/elements/StylesSidebarPane.ts | clickToRevealLayer": {
|
4716
|
+
"message": "Chofoza ukuze wembule isendlalelo esihlahleni sesendlalelo"
|
4717
|
+
},
|
4706
4718
|
"panels/elements/StylesSidebarPane.ts | constructedStylesheet": {
|
4707
4719
|
"message": "i-stylesheet eyakhiwe"
|
4708
4720
|
},
|
@@ -4757,6 +4769,9 @@
|
|
4757
4769
|
"panels/elements/StylesSidebarPane.ts | invalidString": {
|
4758
4770
|
"message": "{PH1}, igama lesakhiwo: {PH2}, inani lesakhiwo: {PH3}"
|
4759
4771
|
},
|
4772
|
+
"panels/elements/StylesSidebarPane.ts | layer": {
|
4773
|
+
"message": "Isendlalelo"
|
4774
|
+
},
|
4760
4775
|
"panels/elements/StylesSidebarPane.ts | newStyleRule": {
|
4761
4776
|
"message": "Umthetho Wesitayela Esisha"
|
4762
4777
|
},
|
@@ -5816,8 +5831,11 @@
|
|
5816
5831
|
"panels/lighthouse/LighthouseController.ts | thereMayBeStoredDataAffectingSingular": {
|
5817
5832
|
"message": "Kungahle kube nedatha elondoloziwe ethinta ukusebenza kokulayisha kule ndawo: {PH1}. Ukuhlola leli khasi kukuwinid le-incognito ukuvimbela lezo zinsiza ukuthinta imiphumela yakho."
|
5818
5833
|
},
|
5834
|
+
"panels/lighthouse/LighthouseController.ts | timespan": {
|
5835
|
+
"message": "Isikhathi"
|
5836
|
+
},
|
5819
5837
|
"panels/lighthouse/LighthouseController.ts | useLegacyNavigation": {
|
5820
|
-
"message": "
|
5838
|
+
"message": "Hlaziya ikhasi usebenzisa i-Lighthouse yakudala uma ukumodi yokufuna."
|
5821
5839
|
},
|
5822
5840
|
"panels/lighthouse/LighthouseController.ts | webSql": {
|
5823
5841
|
"message": "Iwebhu SQL"
|
@@ -5876,9 +5894,18 @@
|
|
5876
5894
|
"panels/lighthouse/LighthouseStartView.ts | learnMore": {
|
5877
5895
|
"message": "Funda kabanzi"
|
5878
5896
|
},
|
5897
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | analyzeNavigation": {
|
5898
|
+
"message": "Hlaziya ukufuna"
|
5899
|
+
},
|
5900
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | analyzeSnapshot": {
|
5901
|
+
"message": "Hlaziya isifinyezo"
|
5902
|
+
},
|
5879
5903
|
"panels/lighthouse/LighthouseStartViewFR.ts | mode": {
|
5880
5904
|
"message": "Imodi"
|
5881
5905
|
},
|
5906
|
+
"panels/lighthouse/LighthouseStartViewFR.ts | startTimespan": {
|
5907
|
+
"message": "Qalisa isikhathi"
|
5908
|
+
},
|
5882
5909
|
"panels/lighthouse/LighthouseStatusView.ts | OfGlobalMobileUsersInWereOnGOrG": {
|
5883
5910
|
"message": "U-75% wabasebenzisi beselula kwimbulunga yonke ngo-2016 bewuku-2G noma i-3G [Umthombo: GSMA Mobile]"
|
5884
5911
|
},
|
@@ -5966,6 +5993,18 @@
|
|
5966
5993
|
"panels/lighthouse/LighthouseStatusView.ts | walmartSawAIncreaseInRevenueFor": {
|
5967
5994
|
"message": "I-Walmart ibone ukukhula okungu-1% emalini engenayo kukho konke ukuthuthuka kwe-100ms ekulayisheni kwekhasi [Umthombo: WPO Stats]"
|
5968
5995
|
},
|
5996
|
+
"panels/lighthouse/LighthouseTimespanView.ts | cancel": {
|
5997
|
+
"message": "Khansela"
|
5998
|
+
},
|
5999
|
+
"panels/lighthouse/LighthouseTimespanView.ts | endTimespan": {
|
6000
|
+
"message": "Qeda isikhathi"
|
6001
|
+
},
|
6002
|
+
"panels/lighthouse/LighthouseTimespanView.ts | timespanStarted": {
|
6003
|
+
"message": "Isikhathi siqalile, sebenzisana nekhasi"
|
6004
|
+
},
|
6005
|
+
"panels/lighthouse/LighthouseTimespanView.ts | timespanStarting": {
|
6006
|
+
"message": "Isikhathi siyaqala…"
|
6007
|
+
},
|
5969
6008
|
"panels/lighthouse/lighthouse-meta.ts | showLighthouse": {
|
5970
6009
|
"message": "Bonisa i-Lighthouse"
|
5971
6010
|
},
|
@@ -9698,6 +9737,24 @@
|
|
9698
9737
|
"panels/sources/WatchExpressionsSidebarPane.ts | refreshWatchExpressions": {
|
9699
9738
|
"message": "Vuselela izinkulumo zokubuka"
|
9700
9739
|
},
|
9740
|
+
"panels/sources/components/HeadersView.ts | addHeader": {
|
9741
|
+
"message": "Faka unhlokweni"
|
9742
|
+
},
|
9743
|
+
"panels/sources/components/HeadersView.ts | addHeaderOverride": {
|
9744
|
+
"message": "Faka ukukhipha unhlokweni"
|
9745
|
+
},
|
9746
|
+
"panels/sources/components/HeadersView.ts | errorWhenParsing": {
|
9747
|
+
"message": "Iphutha ngenkathi incozulula i-''{PH1}''."
|
9748
|
+
},
|
9749
|
+
"panels/sources/components/HeadersView.ts | parsingErrorExplainer": {
|
9750
|
+
"message": "Lokhu kungenzeka kungenxa yephutha le-syntax ku-''{PH1}''. Zama ukuvula leli fayela kusihleli sangaphandle ukuze ulungise iphutha noma usule ifayela futhi uphinde usungule ukukhipha."
|
9751
|
+
},
|
9752
|
+
"panels/sources/components/HeadersView.ts | removeBlock": {
|
9753
|
+
"message": "Susa lesi 'ApplyTo'-sigaba"
|
9754
|
+
},
|
9755
|
+
"panels/sources/components/HeadersView.ts | removeHeader": {
|
9756
|
+
"message": "Susa lo nhlokweni"
|
9757
|
+
},
|
9701
9758
|
"panels/sources/sources-meta.ts | activateBreakpoints": {
|
9702
9759
|
"message": "Ama-breakpoint asebenzayo"
|
9703
9760
|
},
|
@@ -10874,6 +10931,9 @@
|
|
10874
10931
|
"panels/timeline/TimelineUIUtils.ts | pinchUpdate": {
|
10875
10932
|
"message": "Ncinza Isibuyekezo"
|
10876
10933
|
},
|
10934
|
+
"panels/timeline/TimelineUIUtils.ts | prePaint": {
|
10935
|
+
"message": "Ukupenda Kwangaphambilini"
|
10936
|
+
},
|
10877
10937
|
"panels/timeline/TimelineUIUtils.ts | preview": {
|
10878
10938
|
"message": "Buka kuqala"
|
10879
10939
|
},
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Copyright 2022 The Chromium Authors. All rights reserved.
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
3
|
+
// found in the LICENSE file.
|
4
|
+
|
5
|
+
/**
|
6
|
+
* `document.activeElement` will not enter shadow roots to find the element
|
7
|
+
* that has focus; use this method if you need to traverse through any shadow
|
8
|
+
* roots to find the actual, specific focused element.
|
9
|
+
*/
|
10
|
+
export function deepActiveElement(doc: Document): Element|null {
|
11
|
+
let activeElement: Element|null = doc.activeElement;
|
12
|
+
while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement) {
|
13
|
+
activeElement = activeElement.shadowRoot.activeElement;
|
14
|
+
}
|
15
|
+
return activeElement;
|
16
|
+
}
|
@@ -31,6 +31,7 @@
|
|
31
31
|
import * as ArrayUtilities from './array-utilities.js';
|
32
32
|
import * as DateUtilities from './date-utilities.js';
|
33
33
|
import * as DevToolsPath from './DevToolsPath.js';
|
34
|
+
import * as DOMUtilities from './dom-utilities.js';
|
34
35
|
import * as KeyboardUtilities from './keyboard-utilities.js';
|
35
36
|
import * as MapUtilities from './map-utilities.js';
|
36
37
|
import * as NumberUtilities from './number-utilities.js';
|
@@ -51,6 +52,7 @@ export {
|
|
51
52
|
ArrayUtilities,
|
52
53
|
DateUtilities,
|
53
54
|
DevToolsPath,
|
55
|
+
DOMUtilities,
|
54
56
|
KeyboardUtilities,
|
55
57
|
MapUtilities,
|
56
58
|
NumberUtilities,
|
@@ -29,6 +29,7 @@
|
|
29
29
|
*/
|
30
30
|
|
31
31
|
import {NodeURL} from './NodeURL.js';
|
32
|
+
import type * as Platform from '../platform/platform.js';
|
32
33
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
33
34
|
import type * as Protocol from '../../generated/protocol.js';
|
34
35
|
|
@@ -53,7 +54,7 @@ export interface MessageError {
|
|
53
54
|
|
54
55
|
export type Message = {
|
55
56
|
sessionId?: string,
|
56
|
-
url?:
|
57
|
+
url?: Platform.DevToolsPath.UrlString,
|
57
58
|
id?: number,
|
58
59
|
error?: MessageError|null,
|
59
60
|
result?: Object|null,
|
@@ -14,7 +14,7 @@ export class NodeURL {
|
|
14
14
|
|
15
15
|
function process(object: {url?: string}, path: string): void {
|
16
16
|
if (object.url && NodeURL.isPlatformPath(object.url, Host.Platform.isWin())) {
|
17
|
-
// object.url can be
|
17
|
+
// object.url can be of both types: RawPathString and UrlString
|
18
18
|
object.url = Common.ParsedURL.ParsedURL.rawPathToUrlString(object.url as Platform.DevToolsPath.RawPathString);
|
19
19
|
}
|
20
20
|
for (const entry of Object.entries(object)) {
|
@@ -51,6 +51,10 @@ export class Runtime {
|
|
51
51
|
return queryParamsObject.get(name);
|
52
52
|
}
|
53
53
|
|
54
|
+
static setQueryParamForTesting(name: string, value: string): void {
|
55
|
+
queryParamsObject.set(name, value);
|
56
|
+
}
|
57
|
+
|
54
58
|
static experimentsSetting(): {
|
55
59
|
[x: string]: boolean,
|
56
60
|
} {
|
@@ -276,6 +280,8 @@ export enum ExperimentName {
|
|
276
280
|
STYLES_PANE_CSS_CHANGES = 'stylesPaneCSSChanges',
|
277
281
|
HEADER_OVERRIDES = 'headerOverrides',
|
278
282
|
CSS_LAYERS = 'cssLayers',
|
283
|
+
EYEDROPPER_COLOR_PICKER = 'eyedropperColorPicker',
|
284
|
+
INSTRUMENTATION_BREAKPOINTS = 'instrumentationBreakpoints',
|
279
285
|
}
|
280
286
|
|
281
287
|
// TODO(crbug.com/1167717): Make this a const enum again
|
@@ -298,16 +298,17 @@ export class AccessibilityModel extends SDKModel<EventTypes> implements Protocol
|
|
298
298
|
return parent.children();
|
299
299
|
}
|
300
300
|
|
301
|
-
let nodes;
|
302
301
|
const request = this.#pendingChildRequests.get(nodeId);
|
303
302
|
if (request) {
|
304
303
|
await request;
|
305
304
|
} else {
|
306
|
-
const
|
307
|
-
this.#pendingChildRequests.set(nodeId,
|
308
|
-
|
309
|
-
|
310
|
-
|
305
|
+
const request = this.agent.invoke_getChildAXNodes({id: nodeId, frameId});
|
306
|
+
this.#pendingChildRequests.set(nodeId, request);
|
307
|
+
const result = await request;
|
308
|
+
if (!result.getError()) {
|
309
|
+
this.createNodesFromPayload(result.nodes);
|
310
|
+
this.#pendingChildRequests.delete(nodeId);
|
311
|
+
}
|
311
312
|
}
|
312
313
|
return parent.children();
|
313
314
|
}
|
@@ -28,6 +28,7 @@ export class CSSMatchedStyles {
|
|
28
28
|
cssModel: CSSModel, node: DOMNode, inlinePayload: Protocol.CSS.CSSStyle|null,
|
29
29
|
attributesPayload: Protocol.CSS.CSSStyle|null, matchedPayload: Protocol.CSS.RuleMatch[],
|
30
30
|
pseudoPayload: Protocol.CSS.PseudoElementMatches[], inheritedPayload: Protocol.CSS.InheritedStyleEntry[],
|
31
|
+
inheritedPseudoPayload: Protocol.CSS.InheritedPseudoElementMatches[],
|
31
32
|
animationsPayload: Protocol.CSS.CSSKeyframesRule[]) {
|
32
33
|
this.#cssModelInternal = cssModel;
|
33
34
|
this.#nodeInternal = node;
|
@@ -47,7 +48,7 @@ export class CSSMatchedStyles {
|
|
47
48
|
}
|
48
49
|
|
49
50
|
this.#mainDOMCascade = this.buildMainCascade(inlinePayload, attributesPayload, matchedPayload, inheritedPayload);
|
50
|
-
this.#pseudoDOMCascades = this.buildPseudoCascades(pseudoPayload);
|
51
|
+
this.#pseudoDOMCascades = this.buildPseudoCascades(pseudoPayload, inheritedPseudoPayload);
|
51
52
|
|
52
53
|
this.#styleToDOMCascade = new Map();
|
53
54
|
for (const domCascade of Array.from(this.#pseudoDOMCascades.values()).concat(this.#mainDOMCascade)) {
|
@@ -205,12 +206,16 @@ export class CSSMatchedStyles {
|
|
205
206
|
}
|
206
207
|
}
|
207
208
|
|
208
|
-
private buildPseudoCascades(
|
209
|
+
private buildPseudoCascades(
|
210
|
+
pseudoPayload: Protocol.CSS.PseudoElementMatches[],
|
211
|
+
inheritedPseudoPayload: Protocol.CSS.InheritedPseudoElementMatches[]):
|
209
212
|
Map<Protocol.DOM.PseudoType, DOMInheritanceCascade> {
|
210
|
-
const
|
213
|
+
const pseudoInheritanceCascades = new Map<Protocol.DOM.PseudoType, DOMInheritanceCascade>();
|
211
214
|
if (!pseudoPayload) {
|
212
|
-
return
|
215
|
+
return pseudoInheritanceCascades;
|
213
216
|
}
|
217
|
+
|
218
|
+
const pseudoCascades = new Map<Protocol.DOM.PseudoType, NodeCascade[]>();
|
214
219
|
for (let i = 0; i < pseudoPayload.length; ++i) {
|
215
220
|
const entryPayload = pseudoPayload[i];
|
216
221
|
// PseudoElement nodes are not created unless "content" css property is set.
|
@@ -220,15 +225,57 @@ export class CSSMatchedStyles {
|
|
220
225
|
for (let j = rules.length - 1; j >= 0; --j) {
|
221
226
|
const pseudoRule = new CSSStyleRule(this.#cssModelInternal, rules[j].rule);
|
222
227
|
pseudoStyles.push(pseudoRule.style);
|
223
|
-
|
224
|
-
|
225
|
-
|
228
|
+
const nodeForStyle =
|
229
|
+
cssMetadata().isHighlightPseudoType(entryPayload.pseudoType) ? this.#nodeInternal : pseudoElement;
|
230
|
+
this.#nodeForStyleInternal.set(pseudoRule.style, nodeForStyle);
|
231
|
+
if (nodeForStyle) {
|
232
|
+
this.addMatchingSelectors(nodeForStyle, pseudoRule, rules[j].matchingSelectors);
|
226
233
|
}
|
227
234
|
}
|
228
|
-
const
|
229
|
-
|
235
|
+
const isHighlightPseudoCascade = cssMetadata().isHighlightPseudoType(entryPayload.pseudoType);
|
236
|
+
const nodeCascade = new NodeCascade(
|
237
|
+
this, pseudoStyles, false /* #isInherited */, isHighlightPseudoCascade /* #isHighlightPseudoCascade*/);
|
238
|
+
pseudoCascades.set(entryPayload.pseudoType, [nodeCascade]);
|
239
|
+
}
|
240
|
+
|
241
|
+
if (inheritedPseudoPayload) {
|
242
|
+
let parentNode: (DOMNode|null) = this.#nodeInternal.parentNode;
|
243
|
+
for (let i = 0; parentNode && i < inheritedPseudoPayload.length; ++i) {
|
244
|
+
const inheritedPseudoMatches = inheritedPseudoPayload[i].pseudoElements;
|
245
|
+
for (let j = 0; j < inheritedPseudoMatches.length; ++j) {
|
246
|
+
const inheritedEntryPayload = inheritedPseudoMatches[j];
|
247
|
+
const pseudoStyles = [];
|
248
|
+
const rules = inheritedEntryPayload.matches || [];
|
249
|
+
for (let k = rules.length - 1; k >= 0; --k) {
|
250
|
+
const pseudoRule = new CSSStyleRule(this.#cssModelInternal, rules[k].rule);
|
251
|
+
pseudoStyles.push(pseudoRule.style);
|
252
|
+
this.#nodeForStyleInternal.set(pseudoRule.style, parentNode);
|
253
|
+
this.#inheritedStyles.add(pseudoRule.style);
|
254
|
+
this.addMatchingSelectors(parentNode, pseudoRule, rules[k].matchingSelectors);
|
255
|
+
}
|
256
|
+
|
257
|
+
const isHighlightPseudoCascade = cssMetadata().isHighlightPseudoType(inheritedEntryPayload.pseudoType);
|
258
|
+
const nodeCascade = new NodeCascade(
|
259
|
+
this, pseudoStyles, true /* #isInherited */, isHighlightPseudoCascade /* #isHighlightPseudoCascade*/);
|
260
|
+
const cascadeListForPseudoType = pseudoCascades.get(inheritedEntryPayload.pseudoType);
|
261
|
+
if (cascadeListForPseudoType) {
|
262
|
+
cascadeListForPseudoType.push(nodeCascade);
|
263
|
+
} else {
|
264
|
+
pseudoCascades.set(inheritedEntryPayload.pseudoType, [nodeCascade]);
|
265
|
+
}
|
266
|
+
}
|
267
|
+
|
268
|
+
parentNode = parentNode.parentNode;
|
269
|
+
}
|
230
270
|
}
|
231
|
-
|
271
|
+
|
272
|
+
// Now that we've built the arrays of NodeCascades for each pseudo type, convert them into
|
273
|
+
// DOMInheritanceCascades.
|
274
|
+
for (const [pseudoType, nodeCascade] of pseudoCascades.entries()) {
|
275
|
+
pseudoInheritanceCascades.set(pseudoType, new DOMInheritanceCascade(nodeCascade));
|
276
|
+
}
|
277
|
+
|
278
|
+
return pseudoInheritanceCascades;
|
232
279
|
}
|
233
280
|
|
234
281
|
private addMatchingSelectors(
|
@@ -249,7 +296,7 @@ export class CSSMatchedStyles {
|
|
249
296
|
|
250
297
|
hasMatchingSelectors(rule: CSSStyleRule): boolean {
|
251
298
|
const matchingSelectors = this.getMatchingSelectors(rule);
|
252
|
-
return matchingSelectors.length > 0 && this.
|
299
|
+
return matchingSelectors.length > 0 && this.queryMatches(rule.style);
|
253
300
|
}
|
254
301
|
|
255
302
|
getMatchingSelectors(rule: CSSStyleRule): number[] {
|
@@ -327,13 +374,14 @@ export class CSSMatchedStyles {
|
|
327
374
|
map.set(selectorText, value);
|
328
375
|
}
|
329
376
|
|
330
|
-
|
377
|
+
queryMatches(style: CSSStyleDeclaration): boolean {
|
331
378
|
if (!style.parentRule) {
|
332
379
|
return true;
|
333
380
|
}
|
334
|
-
const
|
335
|
-
|
336
|
-
|
381
|
+
const parentRule = style.parentRule as CSSStyleRule;
|
382
|
+
const queries = [...parentRule.media, ...parentRule.containerQueries, ...parentRule.supports];
|
383
|
+
for (const query of queries) {
|
384
|
+
if (!query.active()) {
|
337
385
|
return false;
|
338
386
|
}
|
339
387
|
}
|
@@ -421,12 +469,16 @@ class NodeCascade {
|
|
421
469
|
#matchedStyles: CSSMatchedStyles;
|
422
470
|
readonly styles: CSSStyleDeclaration[];
|
423
471
|
readonly #isInherited: boolean;
|
472
|
+
readonly #isHighlightPseudoCascade: boolean;
|
424
473
|
readonly propertiesState: Map<CSSProperty, PropertyState>;
|
425
474
|
readonly activeProperties: Map<string, CSSProperty>;
|
426
|
-
constructor(
|
475
|
+
constructor(
|
476
|
+
matchedStyles: CSSMatchedStyles, styles: CSSStyleDeclaration[], isInherited: boolean,
|
477
|
+
isHighlightPseudoCascade: boolean = false) {
|
427
478
|
this.#matchedStyles = matchedStyles;
|
428
479
|
this.styles = styles;
|
429
480
|
this.#isInherited = isInherited;
|
481
|
+
this.#isHighlightPseudoCascade = isHighlightPseudoCascade;
|
430
482
|
this.propertiesState = new Map();
|
431
483
|
this.activeProperties = new Map();
|
432
484
|
}
|
@@ -448,7 +500,9 @@ class NodeCascade {
|
|
448
500
|
for (const property of style.allProperties()) {
|
449
501
|
// Do not pick non-inherited properties from inherited styles.
|
450
502
|
const metadata = cssMetadata();
|
451
|
-
|
503
|
+
|
504
|
+
// All properties are inherited for highlight pseudos.
|
505
|
+
if (this.#isInherited && !this.#isHighlightPseudoCascade && !metadata.isPropertyInherited(property.name)) {
|
452
506
|
continue;
|
453
507
|
}
|
454
508
|
|
@@ -34,6 +34,7 @@
|
|
34
34
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
35
35
|
*/
|
36
36
|
|
37
|
+
import * as Protocol from '../../generated/protocol.js';
|
37
38
|
import * as SupportedCSSProperties from '../../generated/SupportedCSSProperties.js';
|
38
39
|
import * as Common from '../common/common.js';
|
39
40
|
import * as Platform from '../platform/platform.js';
|
@@ -310,6 +311,20 @@ export class CSSMetadata {
|
|
310
311
|
}
|
311
312
|
return {text, startColumn, endColumn};
|
312
313
|
}
|
314
|
+
|
315
|
+
isHighlightPseudoType(pseudoType: Protocol.DOM.PseudoType): boolean {
|
316
|
+
// TODO(crbug.com/1164461) Currently devtools-frontend groups all custom highlight
|
317
|
+
// pseudos together in the same pseudo cascade, regardless of highlight name. This means that
|
318
|
+
// the result of displaying "overloaded" highlight styles as crossed-out can produce
|
319
|
+
// misleading results, because properties from highlights with one name can be shown as overloaded by
|
320
|
+
// properties from highlights with another name.
|
321
|
+
// So until that is fixed, don't include custom highlights among the highlight pseudos
|
322
|
+
// for which we apply overloaded property annotations.
|
323
|
+
return (
|
324
|
+
/* pseudoType === Protocol.DOM.PseudoType.Highlight || */ pseudoType === Protocol.DOM.PseudoType.Selection ||
|
325
|
+
pseudoType === Protocol.DOM.PseudoType.TargetText || pseudoType === Protocol.DOM.PseudoType.GrammarError ||
|
326
|
+
pseudoType === Protocol.DOM.PseudoType.SpellingError);
|
327
|
+
}
|
313
328
|
}
|
314
329
|
|
315
330
|
export const VariableRegex = /(var\(\s*--.*?\))/g;
|