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
@@ -93,6 +93,9 @@ Elements.NodeStackTraceWidget = ElementsModule.NodeStackTraceWidget.NodeStackTra
|
|
93
93
|
/** @constructor */
|
94
94
|
Elements.PropertiesWidget = ElementsModule.PropertiesWidget.PropertiesWidget;
|
95
95
|
|
96
|
+
/** @constructor */
|
97
|
+
Elements.StylePropertiesSection = ElementsModule.StylePropertiesSection.StylePropertiesSection;
|
98
|
+
|
96
99
|
/** @constructor */
|
97
100
|
Elements.StylePropertyTreeElement = ElementsModule.StylePropertyTreeElement.StylePropertyTreeElement;
|
98
101
|
|
@@ -104,6 +107,3 @@ Elements.StylesSidebarPane.CSSPropertyPrompt = ElementsModule.StylesSidebarPane.
|
|
104
107
|
|
105
108
|
/** @constructor */
|
106
109
|
Elements.StylesSidebarPane.ButtonProvider = ElementsModule.StylesSidebarPane.ButtonProvider;
|
107
|
-
|
108
|
-
/** @constructor */
|
109
|
-
Elements.StylePropertiesSection = ElementsModule.StylesSidebarPane.StylePropertiesSection;
|
@@ -16,6 +16,7 @@ import './MetricsSidebarPane.js';
|
|
16
16
|
import './PlatformFontsWidget.js';
|
17
17
|
import './PropertiesWidget.js';
|
18
18
|
import './NodeStackTraceWidget.js';
|
19
|
+
import './StylePropertiesSection.js';
|
19
20
|
import './StylePropertyHighlighter.js';
|
20
21
|
import './StylesSidebarPane.js';
|
21
22
|
import './StylePropertyTreeElement.js';
|
@@ -47,6 +48,7 @@ import * as NodeStackTraceWidget from './NodeStackTraceWidget.js';
|
|
47
48
|
import * as PlatformFontsWidget from './PlatformFontsWidget.js';
|
48
49
|
import * as PropertiesWidget from './PropertiesWidget.js';
|
49
50
|
import * as StyleEditorWidget from './StyleEditorWidget.js';
|
51
|
+
import * as StylePropertiesSection from './StylePropertiesSection.js';
|
50
52
|
import * as StylePropertyHighlighter from './StylePropertyHighlighter.js';
|
51
53
|
import * as StylePropertyTreeElement from './StylePropertyTreeElement.js';
|
52
54
|
import * as StylePropertyUtils from './StylePropertyUtils.js';
|
@@ -75,6 +77,7 @@ export {
|
|
75
77
|
PlatformFontsWidget,
|
76
78
|
PropertiesWidget,
|
77
79
|
StyleEditorWidget,
|
80
|
+
StylePropertiesSection,
|
78
81
|
StylePropertyHighlighter,
|
79
82
|
StylePropertyTreeElement,
|
80
83
|
StylePropertyUtils,
|
@@ -142,11 +142,13 @@
|
|
142
142
|
}
|
143
143
|
|
144
144
|
.styles-sidebar-pane-toolbar-container {
|
145
|
+
--override-toolbar-background-color: var(--color-background-elevation-1);
|
146
|
+
|
145
147
|
flex-shrink: 0;
|
146
148
|
overflow: hidden;
|
147
149
|
position: sticky;
|
148
150
|
top: 0;
|
149
|
-
background-color: var(--
|
151
|
+
background-color: var(--override-toolbar-background-color);
|
150
152
|
z-index: 2;
|
151
153
|
}
|
152
154
|
|
@@ -6,6 +6,7 @@ import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
8
8
|
import * as Root from '../../core/root/root.js';
|
9
|
+
import type * as Platform from '../../core/platform/platform.js';
|
9
10
|
import * as EmulationModel from '../../models/emulation/emulation.js';
|
10
11
|
import * as UI from '../../ui/legacy/legacy.js';
|
11
12
|
import * as MobileThrottling from '../mobile_throttling/mobile_throttling.js';
|
@@ -389,7 +390,7 @@ export class DeviceModeToolbar {
|
|
389
390
|
|
390
391
|
private experimentalClicked(): void {
|
391
392
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.openInNewTab(
|
392
|
-
'chrome://flags/#enable-experimental-web-platform-features');
|
393
|
+
'chrome://flags/#enable-experimental-web-platform-features' as Platform.DevToolsPath.UrlString);
|
393
394
|
}
|
394
395
|
|
395
396
|
private fillOptionsToolbar(toolbar: UI.Toolbar.Toolbar): void {
|
@@ -182,7 +182,8 @@ export class InputTimeline extends UI.Widget.VBox implements Timeline.TimelineLo
|
|
182
182
|
return;
|
183
183
|
}
|
184
184
|
|
185
|
-
const fileName = `InputProfile-${Platform.DateUtilities.toISO8601Compact(new Date())}.json
|
185
|
+
const fileName = `InputProfile-${Platform.DateUtilities.toISO8601Compact(new Date())}.json` as
|
186
|
+
Platform.DevToolsPath.RawPathString;
|
186
187
|
const stream = new Bindings.FileUtils.FileOutputStream();
|
187
188
|
|
188
189
|
const accepted = await stream.open(fileName);
|
@@ -312,7 +313,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
312
313
|
const inputViewId = 'Inputs';
|
313
314
|
void UI.ViewManager.ViewManager.instance()
|
314
315
|
.showView(inputViewId)
|
315
|
-
.then(() =>
|
316
|
+
.then(() => UI.ViewManager.ViewManager.instance().view(inputViewId).widget())
|
316
317
|
.then(widget => this.innerHandleAction(widget as InputTimeline, actionId));
|
317
318
|
|
318
319
|
return true;
|
@@ -47,26 +47,6 @@ const UIStrings = {
|
|
47
47
|
* A origin is (roughly said) the front part of a URL.
|
48
48
|
*/
|
49
49
|
untrustworthyOrigin: 'Untrustworthy origin',
|
50
|
-
/**
|
51
|
-
* @description Label for the column showing the invalid value used for the 'trigger-data' query
|
52
|
-
* parameter.
|
53
|
-
*/
|
54
|
-
invalidTriggerData: 'Invalid `trigger-data`',
|
55
|
-
/**
|
56
|
-
* @description Label for the column showing the invalid value used for the
|
57
|
-
* 'event-source-trigger-data' query parameter.
|
58
|
-
*/
|
59
|
-
invalidEventSourceTriggerData: 'Invalid `event-source-trigger-data`',
|
60
|
-
/**
|
61
|
-
* @description Label for the column showing the invalid value used for the
|
62
|
-
* 'priority' query parameter.
|
63
|
-
*/
|
64
|
-
invalidTriggerPriority: 'Invalid `priority`',
|
65
|
-
/**
|
66
|
-
* @description Label for the column showing the invalid value used for the
|
67
|
-
* 'dedup-key' query parameter.
|
68
|
-
*/
|
69
|
-
invalidTriggerDedupKey: 'Invalid `dedup-key`',
|
70
50
|
};
|
71
51
|
const str_ = i18n.i18n.registerUIStrings('panels/issues/AttributionReportingIssueDetailsView.ts', UIStrings);
|
72
52
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
@@ -109,24 +89,6 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
|
|
109
89
|
this.appendColumnTitle(header, i18nString(UIStrings.element));
|
110
90
|
this.appendColumnTitle(header, i18nString(UIStrings.untrustworthyOrigin));
|
111
91
|
break;
|
112
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidAttributionData:
|
113
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.AttributionTriggerDataTooLarge:
|
114
|
-
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
115
|
-
this.appendColumnTitle(header, i18nString(UIStrings.invalidTriggerData));
|
116
|
-
break;
|
117
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidEventSourceTriggerData:
|
118
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.AttributionEventSourceTriggerDataTooLarge:
|
119
|
-
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
120
|
-
this.appendColumnTitle(header, i18nString(UIStrings.invalidEventSourceTriggerData));
|
121
|
-
break;
|
122
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidTriggerPriority:
|
123
|
-
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
124
|
-
this.appendColumnTitle(header, i18nString(UIStrings.invalidTriggerPriority));
|
125
|
-
break;
|
126
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidTriggerDedupKey:
|
127
|
-
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
128
|
-
this.appendColumnTitle(header, i18nString(UIStrings.invalidTriggerDedupKey));
|
129
|
-
break;
|
130
92
|
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidAttributionSourceEventId:
|
131
93
|
this.appendColumnTitle(header, i18nString(UIStrings.frame));
|
132
94
|
this.appendColumnTitle(header, i18nString(UIStrings.element));
|
@@ -142,9 +104,6 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
|
|
142
104
|
this.appendColumnTitle(header, i18nString(UIStrings.element));
|
143
105
|
this.appendColumnTitle(header, i18nString(UIStrings.invalidSourcePriority));
|
144
106
|
break;
|
145
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.MissingAttributionData:
|
146
|
-
this.appendColumnTitle(header, i18nString(UIStrings.request));
|
147
|
-
break;
|
148
107
|
case IssuesManager.AttributionReportingIssue.IssueCode.PermissionPolicyDisabled:
|
149
108
|
this.appendColumnTitle(header, i18nString(UIStrings.frame));
|
150
109
|
this.appendColumnTitle(header, i18nString(UIStrings.element));
|
@@ -179,13 +138,7 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
|
|
179
138
|
await this.#appendElementOrEmptyCell(element, issue);
|
180
139
|
this.appendIssueDetailCell(element, details.invalidParameter || '');
|
181
140
|
break;
|
182
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.AttributionTriggerDataTooLarge:
|
183
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.AttributionEventSourceTriggerDataTooLarge:
|
184
141
|
case IssuesManager.AttributionReportingIssue.IssueCode.AttributionUntrustworthyOrigin:
|
185
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidAttributionData:
|
186
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidEventSourceTriggerData:
|
187
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidTriggerPriority:
|
188
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.InvalidTriggerDedupKey:
|
189
142
|
this.#appendRequestOrEmptyCell(element, details.request);
|
190
143
|
this.appendIssueDetailCell(element, details.invalidParameter || '');
|
191
144
|
break;
|
@@ -197,9 +150,6 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
|
|
197
150
|
await this.#appendElementOrEmptyCell(element, issue);
|
198
151
|
this.appendIssueDetailCell(element, details.invalidParameter || '');
|
199
152
|
break;
|
200
|
-
case IssuesManager.AttributionReportingIssue.IssueCode.MissingAttributionData:
|
201
|
-
this.#appendRequestOrEmptyCell(element, details.request);
|
202
|
-
break;
|
203
153
|
case IssuesManager.AttributionReportingIssue.IssueCode.PermissionPolicyDisabled:
|
204
154
|
this.#appendFrameOrEmptyCell(element, issue);
|
205
155
|
await this.#appendElementOrEmptyCell(element, issue);
|
@@ -4,6 +4,16 @@
|
|
4
4
|
|
5
5
|
import type * as Common from '../../core/common/common.js';
|
6
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
7
|
+
import * as i18n from '../../core/i18n/i18n.js';
|
8
|
+
|
9
|
+
const UIStrings = {
|
10
|
+
/**
|
11
|
+
*@description Generic menu name accessibility label
|
12
|
+
*/
|
13
|
+
genericMenuLabel: 'Menu',
|
14
|
+
};
|
15
|
+
const str_ = i18n.i18n.registerUIStrings('panels/issues/ComboBoxOfCheckBoxes.ts', UIStrings);
|
16
|
+
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
7
17
|
|
8
18
|
export class ComboBoxOfCheckBoxes extends UI.Toolbar.ToolbarButton {
|
9
19
|
#options = new Array<MenuOption>();
|
@@ -41,7 +51,7 @@ export class ComboBoxOfCheckBoxes extends UI.Toolbar.ToolbarButton {
|
|
41
51
|
return this.#options;
|
42
52
|
}
|
43
53
|
|
44
|
-
#showLevelContextMenu({data: mouseEvent}: Common.EventTarget.EventTargetEvent<Event>): void {
|
54
|
+
async #showLevelContextMenu({data: mouseEvent}: Common.EventTarget.EventTargetEvent<Event>): Promise<void> {
|
45
55
|
const contextMenu = new UI.ContextMenu.ContextMenu(mouseEvent, {
|
46
56
|
useSoftMenu: true,
|
47
57
|
x: this.element.totalOffsetLeft(),
|
@@ -56,7 +66,9 @@ export class ComboBoxOfCheckBoxes extends UI.Toolbar.ToolbarButton {
|
|
56
66
|
this.setOptionEnabled(index, !enabled);
|
57
67
|
}, enabled);
|
58
68
|
}
|
59
|
-
|
69
|
+
contextMenu.setContextMenuLabel(this.title ?? i18nString(UIStrings.genericMenuLabel));
|
70
|
+
await contextMenu.show();
|
71
|
+
contextMenu.markAsMenuItemCheckBox();
|
60
72
|
}
|
61
73
|
}
|
62
74
|
|
@@ -36,6 +36,7 @@ export class AggregatedIssue extends IssuesManager.Issue.Issue {
|
|
36
36
|
#blockedByResponseDetails = new Map<string, Protocol.Audits.BlockedByResponseIssueDetails>();
|
37
37
|
#corsIssues = new Set<IssuesManager.CorsIssue.CorsIssue>();
|
38
38
|
#cspIssues = new Set<IssuesManager.ContentSecurityPolicyIssue.ContentSecurityPolicyIssue>();
|
39
|
+
#deprecationIssues = new Set<IssuesManager.DeprecationIssue.DeprecationIssue>();
|
39
40
|
#issueKind = IssuesManager.Issue.IssueKind.Improvement;
|
40
41
|
#lowContrastIssues = new Set<IssuesManager.LowTextContrastIssue.LowTextContrastIssue>();
|
41
42
|
#mixedContentIssues = new Set<IssuesManager.MixedContentIssue.MixedContentIssue>();
|
@@ -104,6 +105,10 @@ export class AggregatedIssue extends IssuesManager.Issue.Issue {
|
|
104
105
|
return this.#cspIssues;
|
105
106
|
}
|
106
107
|
|
108
|
+
getDeprecationIssues(): Iterable<IssuesManager.DeprecationIssue.DeprecationIssue> {
|
109
|
+
return this.#deprecationIssues;
|
110
|
+
}
|
111
|
+
|
107
112
|
getLowContrastIssues(): Iterable<IssuesManager.LowTextContrastIssue.LowTextContrastIssue> {
|
108
113
|
return this.#lowContrastIssues;
|
109
114
|
}
|
@@ -201,6 +206,9 @@ export class AggregatedIssue extends IssuesManager.Issue.Issue {
|
|
201
206
|
if (issue instanceof IssuesManager.ContentSecurityPolicyIssue.ContentSecurityPolicyIssue) {
|
202
207
|
this.#cspIssues.add(issue);
|
203
208
|
}
|
209
|
+
if (issue instanceof IssuesManager.DeprecationIssue.DeprecationIssue) {
|
210
|
+
this.#deprecationIssues.add(issue);
|
211
|
+
}
|
204
212
|
if (issue instanceof IssuesManager.SharedArrayBufferIssue.SharedArrayBufferIssue) {
|
205
213
|
this.#sharedArrayBufferIssues.add(issue);
|
206
214
|
}
|
@@ -6,10 +6,12 @@ import * as CSPViolationsView from './CSPViolationsView.js';
|
|
6
6
|
import * as IssueAggregator from './IssueAggregator.js';
|
7
7
|
import * as IssueRevealer from './IssueRevealer.js';
|
8
8
|
import * as IssuesPane from './IssuesPane.js';
|
9
|
+
import * as IssueView from './IssueView.js';
|
9
10
|
|
10
11
|
export {
|
11
12
|
CSPViolationsView,
|
12
13
|
IssueAggregator,
|
13
14
|
IssueRevealer,
|
14
15
|
IssuesPane,
|
16
|
+
IssueView,
|
15
17
|
};
|
@@ -271,7 +271,11 @@ export class LighthouseController extends Common.ObjectWrapper.ObjectWrapper<Eve
|
|
271
271
|
return '';
|
272
272
|
}
|
273
273
|
const mainTarget = this.manager.target();
|
274
|
-
const
|
274
|
+
const origin = mainTarget.inspectedURL();
|
275
|
+
if (!origin) {
|
276
|
+
return '';
|
277
|
+
}
|
278
|
+
const usageData = await mainTarget.storageAgent().invoke_getUsageAndQuota({origin});
|
275
279
|
const locations = usageData.usageBreakdown.filter(usage => usage.usage)
|
276
280
|
.map(usage => STORAGE_TYPE_NAMES.get(usage.storageType))
|
277
281
|
.map(i18nStringFn => i18nStringFn ? i18nStringFn() : undefined)
|
@@ -5,6 +5,7 @@
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
6
6
|
import * as Host from '../../core/host/host.js';
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
8
|
+
import type * as Platform from '../../core/platform/platform.js';
|
8
9
|
import * as Root from '../../core/root/root.js';
|
9
10
|
import * as SDK from '../../core/sdk/sdk.js';
|
10
11
|
import * as EmulationModel from '../../models/emulation/emulation.js';
|
@@ -501,7 +502,8 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
501
502
|
}
|
502
503
|
// reload to reset the page state
|
503
504
|
const inspectedURL = await this.controller.getInspectedURL();
|
504
|
-
|
505
|
+
// TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
|
506
|
+
await resourceTreeModel.navigate(inspectedURL as Platform.DevToolsPath.UrlString);
|
505
507
|
}
|
506
508
|
|
507
509
|
wasShown(): void {
|
@@ -184,7 +184,7 @@ export class LighthouseReportUIFeatures extends LighthouseReport.ReportUIFeature
|
|
184
184
|
const sanitizedDomain = domain.replace(/[^a-z0-9.-]+/gi, '_');
|
185
185
|
const timestamp = Platform.DateUtilities.toISO8601Compact(new Date(this.json.fetchTime));
|
186
186
|
const ext = blob.type.match('json') ? '.json' : '.html';
|
187
|
-
const basename = `${sanitizedDomain}-${timestamp}${ext}
|
187
|
+
const basename = `${sanitizedDomain}-${timestamp}${ext}` as Platform.DevToolsPath.RawPathString;
|
188
188
|
const text = await blob.text();
|
189
189
|
void Workspace.FileManager.FileManager.instance().save(basename, text, true /* forceSaveAs */);
|
190
190
|
}
|
@@ -11,15 +11,15 @@ import lighthouseDialogStyles from './lighthouseDialog.css.js';
|
|
11
11
|
|
12
12
|
const UIStrings = {
|
13
13
|
/**
|
14
|
-
* @description Header indicating that a Lighthouse timespan is starting.
|
14
|
+
* @description Header indicating that a Lighthouse timespan is starting. "Timespan" is a Lighthouse mode that analyzes user interactions over a period of time.
|
15
15
|
*/
|
16
16
|
timespanStarting: 'Timespan starting…',
|
17
17
|
/**
|
18
|
-
* @description Header indicating that a Lighthouse timespan has started.
|
18
|
+
* @description Header indicating that a Lighthouse timespan has started. "Timespan" is a Lighthouse mode that analyzes user interactions over a period of time. "interact with the page" is a call to action for the user to interact with the web page.
|
19
19
|
*/
|
20
20
|
timespanStarted: 'Timespan started, interact with the page',
|
21
21
|
/**
|
22
|
-
* @description Label for a button that ends a Lighthouse timespan.
|
22
|
+
* @description Label for a button that ends a Lighthouse timespan. "timespan" is a Lighthouse mode that analyzes user interactions over a period of time.
|
23
23
|
*/
|
24
24
|
endTimespan: 'End timespan',
|
25
25
|
/**
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
7
|
+
import * as Platform from '../../core/platform/platform.js';
|
7
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
8
9
|
import * as UI from '../../ui/legacy/legacy.js';
|
9
10
|
|
@@ -132,7 +133,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
132
133
|
|
133
134
|
private addButtonClicked(): void {
|
134
135
|
this.manager.setBlockingEnabled(true);
|
135
|
-
this.list.addNewItem(0, {url:
|
136
|
+
this.list.addNewItem(0, {url: Platform.DevToolsPath.EmptyUrlString, enabled: true});
|
136
137
|
}
|
137
138
|
|
138
139
|
renderItem(pattern: SDK.NetworkManager.BlockedPattern, editable: boolean): Element {
|
@@ -180,7 +181,7 @@ export class BlockedURLsPane extends UI.Widget.VBox implements
|
|
180
181
|
commitEdit(
|
181
182
|
item: SDK.NetworkManager.BlockedPattern, editor: UI.ListWidget.Editor<SDK.NetworkManager.BlockedPattern>,
|
182
183
|
isNew: boolean): void {
|
183
|
-
const url = editor.control('url').value;
|
184
|
+
const url = editor.control('url').value as Platform.DevToolsPath.UrlString;
|
184
185
|
const patterns = this.manager.blockedPatterns();
|
185
186
|
if (isNew) {
|
186
187
|
patterns.push({enabled: true, url: url});
|
@@ -54,6 +54,10 @@ const UIStrings = {
|
|
54
54
|
* @description Status text for successful update of client hints.
|
55
55
|
*/
|
56
56
|
clientHintsStatusText: 'User agent updated.',
|
57
|
+
/**
|
58
|
+
* @description The aria alert message when the Network conditions panel is shown.
|
59
|
+
*/
|
60
|
+
networkConditionsPanelShown: 'Network conditions shown',
|
57
61
|
};
|
58
62
|
const str_ = i18n.i18n.registerUIStrings('panels/network/NetworkConfigView.ts', UIStrings);
|
59
63
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
@@ -348,6 +352,8 @@ export class NetworkConfigView extends UI.Widget.VBox {
|
|
348
352
|
wasShown(): void {
|
349
353
|
super.wasShown();
|
350
354
|
this.registerCSSFiles([networkConfigViewStyles]);
|
355
|
+
|
356
|
+
UI.ARIAUtils.alert(i18nString(UIStrings.networkConditionsPanelShown));
|
351
357
|
}
|
352
358
|
}
|
353
359
|
|
@@ -1060,6 +1060,10 @@ export class NetworkRequestNode extends NetworkNode {
|
|
1060
1060
|
const networkManager = SDK.NetworkManager.NetworkManager.forRequest(this.requestInternal);
|
1061
1061
|
UI.UIUtils.createTextChild(cell, networkManager ? networkManager.target().decorateLabel(name) : name);
|
1062
1062
|
this.appendSubtitle(cell, this.requestInternal.path());
|
1063
|
+
if (!this.requestInternal.url().startsWith('data')) {
|
1064
|
+
// Show the URL as tooltip unless it's a data URL.
|
1065
|
+
UI.Tooltip.Tooltip.install(cell, this.requestInternal.url());
|
1066
|
+
}
|
1063
1067
|
} else if (text) {
|
1064
1068
|
UI.UIUtils.createTextChild(cell, text);
|
1065
1069
|
}
|
@@ -1582,7 +1582,7 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
1582
1582
|
let patterns = manager.blockedPatterns();
|
1583
1583
|
|
1584
1584
|
function addBlockedURL(url: string): void {
|
1585
|
-
patterns.push({enabled: true, url: url});
|
1585
|
+
patterns.push({enabled: true, url: url as Platform.DevToolsPath.UrlString});
|
1586
1586
|
manager.setBlockedPatterns(patterns);
|
1587
1587
|
manager.setBlockingEnabled(true);
|
1588
1588
|
void UI.ViewManager.ViewManager.instance().showView('network.blocked-urls');
|
@@ -1673,10 +1673,10 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
1673
1673
|
}
|
1674
1674
|
const url = mainTarget.inspectedURL();
|
1675
1675
|
const parsedURL = Common.ParsedURL.ParsedURL.fromString(url);
|
1676
|
-
const filename = parsedURL ? parsedURL.host : 'network-log';
|
1676
|
+
const filename = (parsedURL ? parsedURL.host : 'network-log') as Platform.DevToolsPath.RawPathString;
|
1677
1677
|
const stream = new Bindings.FileUtils.FileOutputStream();
|
1678
1678
|
|
1679
|
-
if (!await stream.open(filename
|
1679
|
+
if (!await stream.open(Common.ParsedURL.ParsedURL.concatenate(filename, '.har'))) {
|
1680
1680
|
return;
|
1681
1681
|
}
|
1682
1682
|
|
@@ -57,6 +57,7 @@ export class RequestHTMLView extends UI.Widget.VBox {
|
|
57
57
|
const iframe = document.createElement('iframe');
|
58
58
|
iframe.className = 'html-preview-frame';
|
59
59
|
iframe.setAttribute('sandbox', ''); // Forbid to run JavaScript and set unique origin.
|
60
|
+
iframe.setAttribute('csp', 'default-src \'none\'');
|
60
61
|
iframe.setAttribute('src', this.dataURL);
|
61
62
|
iframe.tabIndex = -1;
|
62
63
|
UI.ARIAUtils.markAsPresentation(iframe);
|
@@ -36,9 +36,12 @@ import * as Common from '../../core/common/common.js';
|
|
36
36
|
import * as Host from '../../core/host/host.js';
|
37
37
|
import * as i18n from '../../core/i18n/i18n.js';
|
38
38
|
import * as Platform from '../../core/platform/platform.js';
|
39
|
+
import * as Root from '../../core/root/root.js';
|
39
40
|
import * as SDK from '../../core/sdk/sdk.js';
|
40
41
|
import * as Protocol from '../../generated/protocol.js';
|
41
42
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
43
|
+
import * as Persistence from '../../models/persistence/persistence.js';
|
44
|
+
import * as Workspace from '../../models/workspace/workspace.js';
|
42
45
|
import * as NetworkForward from '../../panels/network/forward/forward.js';
|
43
46
|
import * as ClientVariations from '../../third_party/chromium/client-variations/client-variations.js';
|
44
47
|
// eslint-disable-next-line rulesdir/es_modules_import
|
@@ -46,6 +49,7 @@ import objectPropertiesSectionStyles from '../../ui/legacy/components/object_ui/
|
|
46
49
|
// eslint-disable-next-line rulesdir/es_modules_import
|
47
50
|
import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.css.js';
|
48
51
|
import * as UI from '../../ui/legacy/legacy.js';
|
52
|
+
import * as Sources from '../sources/sources.js';
|
49
53
|
|
50
54
|
import requestHeadersTreeStyles from './requestHeadersTree.css.js';
|
51
55
|
import requestHeadersViewStyles from './requestHeadersView.css.js';
|
@@ -198,6 +202,11 @@ const UIStrings = {
|
|
198
202
|
* @example {foo} PH1
|
199
203
|
*/
|
200
204
|
recordedAttribution: 'Recorded attribution with `trigger-data`: {PH1}',
|
205
|
+
/**
|
206
|
+
*@description Label for a link from the network panel's headers view to the file in which
|
207
|
+
* header overrides are defined in the sources panel.
|
208
|
+
*/
|
209
|
+
headerOverrides: 'Header overrides',
|
201
210
|
};
|
202
211
|
const str_ = i18n.i18n.registerUIStrings('panels/network/RequestHeadersView.ts', UIStrings);
|
203
212
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
@@ -213,8 +222,9 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
213
222
|
private readonly statusCodeItem: UI.TreeOutline.TreeElement;
|
214
223
|
private readonly remoteAddressItem: UI.TreeOutline.TreeElement;
|
215
224
|
private readonly referrerPolicyItem: UI.TreeOutline.TreeElement;
|
216
|
-
|
225
|
+
readonly responseHeadersCategory: Category;
|
217
226
|
private readonly requestHeadersCategory: Category;
|
227
|
+
readonly #workspace = Workspace.Workspace.WorkspaceImpl.instance();
|
218
228
|
|
219
229
|
constructor(request: SDK.NetworkRequest.NetworkRequest) {
|
220
230
|
super();
|
@@ -260,6 +270,10 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
260
270
|
this.request.addEventListener(SDK.NetworkRequest.Events.RequestHeadersChanged, this.refreshRequestHeaders, this);
|
261
271
|
this.request.addEventListener(SDK.NetworkRequest.Events.ResponseHeadersChanged, this.refreshResponseHeaders, this);
|
262
272
|
this.request.addEventListener(SDK.NetworkRequest.Events.FinishedLoading, this.refreshHTTPInformation, this);
|
273
|
+
this.#workspace.addEventListener(
|
274
|
+
Workspace.Workspace.Events.UISourceCodeAdded, this.#uiSourceCodeAddedOrRemoved, this);
|
275
|
+
this.#workspace.addEventListener(
|
276
|
+
Workspace.Workspace.Events.UISourceCodeRemoved, this.#uiSourceCodeAddedOrRemoved, this);
|
263
277
|
|
264
278
|
this.refreshURL();
|
265
279
|
this.refreshRequestHeaders();
|
@@ -276,6 +290,10 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
276
290
|
this.request.removeEventListener(
|
277
291
|
SDK.NetworkRequest.Events.ResponseHeadersChanged, this.refreshResponseHeaders, this);
|
278
292
|
this.request.removeEventListener(SDK.NetworkRequest.Events.FinishedLoading, this.refreshHTTPInformation, this);
|
293
|
+
this.#workspace.removeEventListener(
|
294
|
+
Workspace.Workspace.Events.UISourceCodeAdded, this.#uiSourceCodeAddedOrRemoved, this);
|
295
|
+
this.#workspace.removeEventListener(
|
296
|
+
Workspace.Workspace.Events.UISourceCodeRemoved, this.#uiSourceCodeAddedOrRemoved, this);
|
279
297
|
}
|
280
298
|
|
281
299
|
private addEntryContextMenuHandler(treeElement: UI.TreeOutline.TreeElement, value: string): void {
|
@@ -425,7 +443,9 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
425
443
|
if (this.showRequestHeadersText && headersText) {
|
426
444
|
this.refreshHeadersText(i18nString(UIStrings.requestHeaders), headers.length, headersText, treeElement);
|
427
445
|
} else {
|
428
|
-
this.refreshHeaders(
|
446
|
+
this.refreshHeaders(
|
447
|
+
i18nString(UIStrings.requestHeaders), headers, treeElement, /* overrideable */ false,
|
448
|
+
headersText === undefined);
|
429
449
|
}
|
430
450
|
|
431
451
|
if (headersText) {
|
@@ -451,15 +471,17 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
451
471
|
headersWithIssues.push(headerWithIssues);
|
452
472
|
}
|
453
473
|
}
|
474
|
+
const overrideable = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.HEADER_OVERRIDES);
|
454
475
|
this.refreshHeaders(
|
455
476
|
i18nString(UIStrings.responseHeaders), mergeHeadersWithIssues(headers, headersWithIssues), treeElement,
|
477
|
+
overrideable,
|
456
478
|
/* provisional */ false, this.request.blockedResponseCookies());
|
457
479
|
}
|
458
480
|
|
459
481
|
if (headersText) {
|
460
482
|
const toggleButton = this.createHeadersToggleButton(this.showResponseHeadersText);
|
461
483
|
toggleButton.addEventListener('click', this.toggleResponseHeadersText.bind(this), false);
|
462
|
-
treeElement.listItemElement.appendChild(toggleButton);
|
484
|
+
treeElement.listItemElement.querySelector('.headers-title-left')?.appendChild(toggleButton);
|
463
485
|
}
|
464
486
|
|
465
487
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration)
|
@@ -535,23 +557,62 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
535
557
|
}
|
536
558
|
}
|
537
559
|
|
538
|
-
private refreshHeadersTitle(
|
539
|
-
|
560
|
+
private refreshHeadersTitle(
|
561
|
+
title: string, headersTreeElement: UI.TreeOutline.TreeElement, headersLength: number,
|
562
|
+
overrideable: boolean): void {
|
540
563
|
headersTreeElement.listItemElement.removeChildren();
|
541
564
|
headersTreeElement.listItemElement.createChild('div', 'selection fill');
|
542
|
-
|
565
|
+
const container = headersTreeElement.listItemElement.createChild('div', 'headers-title');
|
566
|
+
const leftElement = container.createChild('div', 'headers-title-left');
|
567
|
+
UI.UIUtils.createTextChild(leftElement, title);
|
543
568
|
|
544
569
|
const headerCount = `\xA0(${headersLength})`;
|
545
|
-
|
570
|
+
leftElement.createChild('span', 'header-count').textContent = headerCount;
|
571
|
+
|
572
|
+
if (overrideable && this.#workspace.uiSourceCodeForURL(this.#getHeaderOverridesFileUrl())) {
|
573
|
+
const overridesSetting: Common.Settings.Setting<boolean> =
|
574
|
+
Common.Settings.Settings.instance().moduleSetting('persistenceNetworkOverridesEnabled');
|
575
|
+
const icon = overridesSetting.get() ? UI.Icon.Icon.create('mediumicon-file-sync', 'purple-dot') :
|
576
|
+
UI.Icon.Icon.create('mediumicon-file');
|
577
|
+
const button = container.createChild('button', 'link devtools-link headers-link');
|
578
|
+
button.appendChild(icon);
|
579
|
+
button.addEventListener('click', this.#revealHeadersFile.bind(this));
|
580
|
+
const span = document.createElement('span');
|
581
|
+
span.textContent = i18nString(UIStrings.headerOverrides);
|
582
|
+
button.appendChild(span);
|
583
|
+
}
|
584
|
+
}
|
585
|
+
|
586
|
+
#getHeaderOverridesFileUrl(): Platform.DevToolsPath.UrlString {
|
587
|
+
const fileUrl = Persistence.NetworkPersistenceManager.NetworkPersistenceManager.instance().fileUrlFromNetworkUrl(
|
588
|
+
this.request.url(), /* ignoreInactive */ true);
|
589
|
+
return fileUrl.substring(0, fileUrl.lastIndexOf('/')) + '/' +
|
590
|
+
Persistence.NetworkPersistenceManager.HEADERS_FILENAME as Platform.DevToolsPath.UrlString;
|
591
|
+
}
|
592
|
+
|
593
|
+
#revealHeadersFile(event: Event): void {
|
594
|
+
event.stopPropagation();
|
595
|
+
const uiSourceCode = this.#workspace.uiSourceCodeForURL(this.#getHeaderOverridesFileUrl());
|
596
|
+
if (!uiSourceCode) {
|
597
|
+
return;
|
598
|
+
}
|
599
|
+
Sources.SourcesPanel.SourcesPanel.instance().showUISourceCode(uiSourceCode);
|
600
|
+
}
|
601
|
+
|
602
|
+
#uiSourceCodeAddedOrRemoved(event: Common.EventTarget.EventTargetEvent<Workspace.UISourceCode.UISourceCode>): void {
|
603
|
+
if (this.#getHeaderOverridesFileUrl() === event.data.url()) {
|
604
|
+
this.refreshResponseHeaders();
|
605
|
+
}
|
546
606
|
}
|
547
607
|
|
548
608
|
private refreshHeaders(
|
549
609
|
title: string, headers: SDK.NetworkRequest.NameValue[], headersTreeElement: UI.TreeOutline.TreeElement,
|
550
|
-
|
610
|
+
overrideable: boolean, provisionalHeaders?: boolean,
|
611
|
+
blockedResponseCookies?: SDK.NetworkRequest.BlockedSetCookieWithReason[]): void {
|
551
612
|
headersTreeElement.removeChildren();
|
552
613
|
|
553
614
|
const length = headers.length;
|
554
|
-
this.refreshHeadersTitle(title, headersTreeElement, length);
|
615
|
+
this.refreshHeadersTitle(title, headersTreeElement, length, overrideable);
|
555
616
|
|
556
617
|
if (provisionalHeaders) {
|
557
618
|
let cautionText;
|
@@ -633,7 +694,7 @@ export class RequestHeadersView extends UI.Widget.VBox {
|
|
633
694
|
private refreshHeadersText(
|
634
695
|
title: string, count: number, headersText: string, headersTreeElement: UI.TreeOutline.TreeElement): void {
|
635
696
|
this.populateTreeElementWithSourceText(headersTreeElement, headersText);
|
636
|
-
this.refreshHeadersTitle(title, headersTreeElement, count);
|
697
|
+
this.refreshHeadersTitle(title, headersTreeElement, count, /* overrideable */ false);
|
637
698
|
}
|
638
699
|
|
639
700
|
private refreshRemoteAddress(): void {
|
@@ -88,35 +88,27 @@
|
|
88
88
|
height: 21px;
|
89
89
|
}
|
90
90
|
|
91
|
-
.network-waterfall-header,
|
92
91
|
.network-log-grid.data-grid th {
|
93
|
-
border-bottom:
|
94
|
-
border-left: 1px solid var(--color-details-hairline);
|
92
|
+
border-bottom: none;
|
95
93
|
}
|
96
94
|
|
97
|
-
.network-
|
98
|
-
|
95
|
+
.network-waterfall-header,
|
96
|
+
.network-log-grid.data-grid thead th {
|
97
|
+
border-bottom: 1px solid var(--color-details-hairline);
|
98
|
+
border-left: 1px solid var(--color-details-hairline);
|
99
99
|
}
|
100
100
|
|
101
101
|
.network-waterfall-header,
|
102
|
-
.network-log-grid.data-grid
|
102
|
+
.network-log-grid.data-grid thead {
|
103
103
|
height: 31px;
|
104
104
|
background-color: var(--color-background-elevation-1);
|
105
105
|
}
|
106
106
|
|
107
|
-
.network-log-grid.data-grid .data-container {
|
108
|
-
top: 31px;
|
109
|
-
}
|
110
|
-
|
111
107
|
.network-waterfall-header.small,
|
112
|
-
.network-log-grid.data-grid.small
|
108
|
+
.network-log-grid.data-grid.small thead {
|
113
109
|
height: 27px;
|
114
110
|
}
|
115
111
|
|
116
|
-
.network-log-grid.data-grid.small .data-container {
|
117
|
-
top: 27px;
|
118
|
-
}
|
119
|
-
|
120
112
|
.network-log-grid.data-grid select {
|
121
113
|
appearance: none;
|
122
114
|
border: none;
|
@@ -437,8 +429,8 @@
|
|
437
429
|
}
|
438
430
|
|
439
431
|
.network-waterfall-header.small,
|
440
|
-
.network-log-grid.data-grid.small
|
441
|
-
.network-log-grid.data-grid
|
432
|
+
.network-log-grid.data-grid.small thead .network-waterfall-header,
|
433
|
+
.network-log-grid.data-grid thead {
|
442
434
|
background-color: canvas;
|
443
435
|
}
|
444
436
|
|