chrome-devtools-frontend 1.0.981004 → 1.0.995227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS +2 -0
- package/config/gni/devtools_grd_files.gni +8 -7
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/.eslintrc.js +10 -0
- package/front_end/Images/src/ic_rendering.svg +3 -0
- package/front_end/core/common/ParsedURL.ts +44 -28
- package/front_end/core/common/ResourceType.ts +1 -1
- package/front_end/core/common/SettingRegistration.ts +1 -0
- package/front_end/core/host/InspectorFrontendHost.ts +11 -10
- package/front_end/core/host/InspectorFrontendHostAPI.ts +15 -14
- package/front_end/core/host/Platform.ts +11 -2
- package/front_end/core/host/UserMetrics.ts +27 -2
- package/front_end/core/i18n/DevToolsLocale.ts +4 -0
- package/front_end/core/i18n/locales/af.json +76 -16
- package/front_end/core/i18n/locales/am.json +76 -16
- package/front_end/core/i18n/locales/ar.json +77 -17
- package/front_end/core/i18n/locales/as.json +76 -16
- package/front_end/core/i18n/locales/az.json +76 -16
- package/front_end/core/i18n/locales/be.json +75 -15
- package/front_end/core/i18n/locales/bg.json +76 -16
- package/front_end/core/i18n/locales/bn.json +76 -16
- package/front_end/core/i18n/locales/bs.json +88 -28
- package/front_end/core/i18n/locales/ca.json +76 -16
- package/front_end/core/i18n/locales/cs.json +76 -16
- package/front_end/core/i18n/locales/cy.json +76 -16
- package/front_end/core/i18n/locales/da.json +77 -17
- package/front_end/core/i18n/locales/de.json +178 -118
- package/front_end/core/i18n/locales/el.json +76 -16
- package/front_end/core/i18n/locales/en-GB.json +76 -16
- package/front_end/core/i18n/locales/en-US.json +208 -52
- package/front_end/core/i18n/locales/en-XL.json +208 -52
- package/front_end/core/i18n/locales/es-419.json +76 -16
- package/front_end/core/i18n/locales/es.json +76 -16
- package/front_end/core/i18n/locales/et.json +76 -16
- package/front_end/core/i18n/locales/eu.json +76 -16
- package/front_end/core/i18n/locales/fa.json +83 -23
- package/front_end/core/i18n/locales/fi.json +76 -16
- package/front_end/core/i18n/locales/fil.json +76 -16
- package/front_end/core/i18n/locales/fr-CA.json +76 -16
- package/front_end/core/i18n/locales/fr.json +76 -16
- package/front_end/core/i18n/locales/gl.json +76 -16
- package/front_end/core/i18n/locales/gu.json +76 -16
- package/front_end/core/i18n/locales/he.json +76 -16
- package/front_end/core/i18n/locales/hi.json +76 -16
- package/front_end/core/i18n/locales/hr.json +76 -16
- package/front_end/core/i18n/locales/hu.json +76 -16
- package/front_end/core/i18n/locales/hy.json +76 -16
- package/front_end/core/i18n/locales/id.json +79 -19
- package/front_end/core/i18n/locales/is.json +75 -15
- package/front_end/core/i18n/locales/it.json +124 -64
- package/front_end/core/i18n/locales/ja.json +76 -16
- package/front_end/core/i18n/locales/ka.json +76 -16
- package/front_end/core/i18n/locales/kk.json +76 -16
- package/front_end/core/i18n/locales/km.json +76 -16
- package/front_end/core/i18n/locales/kn.json +76 -16
- package/front_end/core/i18n/locales/ko.json +76 -16
- package/front_end/core/i18n/locales/ky.json +76 -16
- package/front_end/core/i18n/locales/lo.json +76 -16
- package/front_end/core/i18n/locales/lt.json +76 -16
- package/front_end/core/i18n/locales/lv.json +76 -16
- package/front_end/core/i18n/locales/mk.json +76 -16
- package/front_end/core/i18n/locales/ml.json +76 -16
- package/front_end/core/i18n/locales/mn.json +76 -16
- package/front_end/core/i18n/locales/mr.json +76 -16
- package/front_end/core/i18n/locales/ms.json +76 -16
- package/front_end/core/i18n/locales/my.json +78 -18
- package/front_end/core/i18n/locales/ne.json +76 -16
- package/front_end/core/i18n/locales/nl.json +77 -17
- package/front_end/core/i18n/locales/no.json +76 -16
- package/front_end/core/i18n/locales/or.json +76 -16
- package/front_end/core/i18n/locales/pa.json +76 -16
- package/front_end/core/i18n/locales/pl.json +78 -18
- package/front_end/core/i18n/locales/pt-PT.json +123 -63
- package/front_end/core/i18n/locales/pt.json +78 -18
- package/front_end/core/i18n/locales/ro.json +76 -16
- package/front_end/core/i18n/locales/ru.json +77 -17
- package/front_end/core/i18n/locales/si.json +76 -16
- package/front_end/core/i18n/locales/sk.json +76 -16
- package/front_end/core/i18n/locales/sl.json +76 -16
- package/front_end/core/i18n/locales/sq.json +76 -16
- package/front_end/core/i18n/locales/sr-Latn.json +76 -16
- package/front_end/core/i18n/locales/sr.json +76 -16
- package/front_end/core/i18n/locales/sv.json +76 -16
- package/front_end/core/i18n/locales/sw.json +76 -16
- package/front_end/core/i18n/locales/ta.json +77 -17
- package/front_end/core/i18n/locales/te.json +76 -16
- package/front_end/core/i18n/locales/th.json +76 -16
- package/front_end/core/i18n/locales/tr.json +76 -16
- package/front_end/core/i18n/locales/uk.json +76 -16
- package/front_end/core/i18n/locales/ur.json +76 -16
- package/front_end/core/i18n/locales/uz.json +77 -17
- package/front_end/core/i18n/locales/vi.json +76 -16
- package/front_end/core/i18n/locales/zh-HK.json +76 -16
- package/front_end/core/i18n/locales/zh-TW.json +76 -16
- package/front_end/core/i18n/locales/zh.json +76 -16
- package/front_end/core/i18n/locales/zu.json +76 -16
- package/front_end/core/platform/dom-utilities.ts +16 -0
- package/front_end/core/platform/platform.ts +2 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +2 -1
- package/front_end/core/protocol_client/NodeURL.ts +1 -1
- package/front_end/core/root/Runtime.ts +6 -0
- package/front_end/core/sdk/AccessibilityModel.ts +7 -6
- package/front_end/core/sdk/CSSMatchedStyles.ts +71 -17
- package/front_end/core/sdk/CSSMetadata.ts +15 -0
- package/front_end/core/sdk/CSSModel.ts +9 -7
- package/front_end/core/sdk/CSSProperty.ts +97 -11
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +9 -5
- package/front_end/core/sdk/CSSSupports.ts +4 -1
- package/front_end/core/sdk/ChildTargetManager.ts +3 -1
- package/front_end/core/sdk/Connections.ts +3 -2
- package/front_end/core/sdk/ConsoleModel.ts +6 -5
- package/front_end/core/sdk/Cookie.ts +4 -2
- package/front_end/core/sdk/DOMDebuggerModel.ts +10 -6
- package/front_end/core/sdk/DOMModel.ts +2 -2
- package/front_end/core/sdk/DebuggerModel.ts +27 -5
- package/front_end/core/sdk/HeapProfilerModel.ts +2 -1
- package/front_end/core/sdk/NetworkManager.ts +13 -12
- package/front_end/core/sdk/NetworkRequest.ts +1 -1
- package/front_end/core/sdk/PageLoad.ts +3 -1
- package/front_end/core/sdk/PageResourceLoader.ts +9 -7
- package/front_end/core/sdk/ProfileTreeModel.ts +3 -2
- package/front_end/core/sdk/RemoteObject.ts +18 -6
- package/front_end/core/sdk/ResourceTreeModel.ts +17 -11
- package/front_end/core/sdk/ScreenCaptureModel.ts +3 -0
- package/front_end/core/sdk/Script.ts +4 -3
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +2 -1
- package/front_end/core/sdk/SourceMap.ts +10 -6
- package/front_end/core/sdk/SourceMapManager.ts +47 -5
- package/front_end/core/sdk/Target.ts +2 -1
- package/front_end/core/sdk/TracingModel.ts +0 -9
- package/front_end/devtools_compatibility.js +1 -0
- package/front_end/entrypoints/formatter_worker/CSSRuleParser.ts +1 -1
- package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +10 -3
- package/front_end/entrypoints/main/MainImpl.ts +22 -2
- package/front_end/generated/InspectorBackendCommands.js +85 -16
- package/front_end/generated/SupportedCSSProperties.js +21 -8
- package/front_end/generated/protocol-mapping.d.ts +4 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +174 -28
- package/front_end/legacy/legacy-defs.d.ts +0 -4
- package/front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js +1 -1
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +1 -0
- package/front_end/models/bindings/BreakpointManager.ts +68 -11
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +9 -2
- package/front_end/models/bindings/CompilerScriptMapping.ts +3 -2
- package/front_end/models/bindings/ContentProviderBasedProject.ts +12 -9
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +10 -8
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -1
- package/front_end/models/bindings/DefaultScriptMapping.ts +8 -2
- package/front_end/models/bindings/FileUtils.ts +3 -2
- package/front_end/models/bindings/IgnoreListManager.ts +5 -5
- package/front_end/models/bindings/ResourceUtils.ts +5 -4
- package/front_end/models/emulation/EmulatedDevices.ts +17 -0
- package/front_end/models/extensions/ExtensionAPI.ts +5 -2
- package/front_end/models/extensions/ExtensionPanel.ts +2 -1
- package/front_end/models/extensions/ExtensionServer.ts +13 -8
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +0 -63
- package/front_end/models/issues_manager/CookieIssue.ts +7 -0
- package/front_end/models/issues_manager/DeprecationIssue.ts +326 -8
- package/front_end/models/issues_manager/IssuesManager.ts +4 -0
- package/front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/front_end/models/issues_manager/descriptions/deprecation.md +1 -1
- package/front_end/models/logs/LogManager.ts +2 -1
- package/front_end/models/logs/NetworkLog.ts +14 -12
- package/front_end/models/persistence/Automapping.ts +17 -16
- package/front_end/models/persistence/EditFileSystemView.ts +5 -4
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +24 -24
- package/front_end/models/persistence/IsolatedFileSystem.ts +2 -2
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +7 -6
- package/front_end/models/persistence/NetworkPersistenceManager.ts +92 -54
- package/front_end/models/persistence/PersistenceImpl.ts +7 -7
- package/front_end/models/persistence/PlatformFileSystem.ts +7 -8
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +3 -2
- package/front_end/models/text_utils/CodeMirrorUtils.ts +53 -0
- package/front_end/models/text_utils/text_utils.ts +2 -0
- package/front_end/models/timeline_model/TimelineModel.ts +32 -30
- package/front_end/models/timeline_model/TimelineProfileTree.ts +3 -2
- package/front_end/models/workspace/FileManager.ts +9 -6
- package/front_end/models/workspace/UISourceCode.ts +16 -14
- package/front_end/models/workspace/WorkspaceImpl.ts +40 -16
- package/front_end/panels/accessibility/AccessibilitySubPane.ts +2 -1
- package/front_end/panels/application/AppManifestView.ts +1 -1
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +5 -4
- package/front_end/panels/application/ApplicationPanelSidebar.ts +34 -30
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +5 -4
- package/front_end/panels/application/BackgroundServiceView.ts +2 -1
- package/front_end/panels/application/DatabaseQueryView.ts +2 -1
- package/front_end/panels/application/InterestGroupTreeElement.ts +3 -2
- package/front_end/panels/application/ReportingApiTreeElement.ts +3 -2
- package/front_end/panels/application/ResourcesPanel.ts +4 -3
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +6 -1
- package/front_end/panels/application/TrustTokensTreeElement.ts +3 -2
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +10 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +163 -13
- package/front_end/panels/application/components/backForwardCacheView.css +15 -4
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +19 -19
- package/front_end/panels/changes/ChangesView.ts +38 -0
- package/front_end/panels/console/ConsoleFormat.ts +23 -0
- package/front_end/panels/console/ConsolePinPane.ts +7 -0
- package/front_end/panels/console/ConsolePrompt.ts +11 -1
- package/front_end/panels/console/ConsoleSidebar.ts +2 -1
- package/front_end/panels/console/ConsoleView.ts +60 -32
- package/front_end/panels/console/ConsoleViewMessage.ts +15 -28
- package/front_end/panels/console/ConsoleViewport.ts +2 -1
- package/front_end/panels/console/ErrorStackParser.ts +8 -4
- package/front_end/panels/console/consoleView.css +0 -1
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/coverage/CoverageModel.ts +6 -6
- package/front_end/panels/coverage/CoverageView.ts +2 -1
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +2 -1
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +7 -6
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +0 -48
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +5 -0
- package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +2 -0
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +2 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -1
- package/front_end/panels/elements/ElementStatePaneWidget.ts +4 -6
- package/front_end/panels/elements/ElementsPanel.ts +16 -5
- package/front_end/panels/elements/ImagePreviewPopover.ts +6 -4
- package/front_end/panels/elements/PropertiesWidget.ts +4 -24
- package/front_end/panels/elements/StyleEditorWidget.ts +2 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +1614 -0
- package/front_end/panels/elements/StylePropertyHighlighter.ts +2 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +20 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +97 -1675
- package/front_end/panels/elements/elements-legacy.ts +3 -3
- package/front_end/panels/elements/elements.ts +3 -0
- package/front_end/panels/elements/stylesSidebarPane.css +3 -1
- package/front_end/panels/emulation/AdvancedApp.ts +6 -2
- package/front_end/panels/emulation/DeviceModeToolbar.ts +2 -1
- package/front_end/panels/input/InputTimeline.ts +3 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +0 -50
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +14 -2
- package/front_end/panels/issues/IssueAggregator.ts +8 -0
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/lighthouse/LighthouseController.ts +5 -1
- package/front_end/panels/lighthouse/LighthousePanel.ts +3 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +3 -3
- package/front_end/panels/network/BlockedURLsPane.ts +3 -2
- package/front_end/panels/network/NetworkConfigView.ts +6 -0
- package/front_end/panels/network/NetworkDataGridNode.ts +4 -0
- package/front_end/panels/network/NetworkLogView.ts +3 -3
- package/front_end/panels/network/RequestHTMLView.ts +1 -0
- package/front_end/panels/network/RequestHeadersView.ts +71 -10
- package/front_end/panels/network/networkLogView.css +9 -17
- package/front_end/panels/network/requestHeadersTree.css +16 -0
- package/front_end/panels/profiler/HeapSnapshotView.ts +5 -2
- package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
- package/front_end/panels/profiler/ProfileView.ts +2 -2
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -1
- package/front_end/panels/profiler/heapProfiler.css +15 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +4 -2
- package/front_end/panels/screencast/ScreencastView.ts +5 -2
- package/front_end/panels/search/SearchConfig.ts +2 -1
- package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +4 -1
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -2
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +4 -4
- package/front_end/panels/sources/BreakpointEditDialog.ts +0 -1
- package/front_end/panels/sources/CSSPlugin.ts +6 -6
- package/front_end/panels/sources/CoveragePlugin.ts +2 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +4 -4
- package/front_end/panels/sources/EditingLocationHistoryManager.ts +4 -1
- package/front_end/panels/sources/NavigatorView.ts +28 -20
- package/front_end/panels/sources/SearchSourcesView.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +4 -2
- package/front_end/panels/sources/SourcesPanel.ts +4 -4
- package/front_end/panels/sources/SourcesSearchScope.ts +12 -8
- package/front_end/panels/sources/SourcesView.ts +3 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/components/HeadersView.css +17 -2
- package/front_end/panels/sources/components/HeadersView.ts +103 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +9 -9
- package/front_end/panels/timeline/TimelinePanel.ts +3 -2
- package/front_end/panels/timeline/TimelineUIUtils.ts +7 -0
- package/front_end/panels/timeline/timelinePanel.css +1 -2
- package/front_end/panels/utils/utils.ts +97 -0
- package/front_end/third_party/codemirror.next/bundle.ts +27 -25
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/java.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/json.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/php.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/python.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/wast.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +2 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1884 -2281
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +21 -32
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +963 -886
- package/front_end/third_party/lighthouse/report/bundle.js +3 -2
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- package/front_end/third_party/lit-html/README.chromium +3 -3
- package/front_end/third_party/lit-html/package/README.md +1 -1
- package/front_end/third_party/lit-html/package/async-directive.d.ts +1 -1
- package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.d.ts +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/choose.d.ts +32 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.js +41 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/join.d.ts +21 -0
- package/front_end/third_party/lit-html/package/development/directives/join.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/join.js +19 -0
- package/front_end/third_party/lit-html/package/development/directives/join.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts +23 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.js +39 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/map.d.ts +23 -0
- package/front_end/third_party/lit-html/package/development/directives/map.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/map.js +30 -0
- package/front_end/third_party/lit-html/package/development/directives/map.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/range.d.ts +24 -0
- package/front_end/third_party/lit-html/package/development/directives/range.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/range.js +13 -0
- package/front_end/third_party/lit-html/package/development/directives/range.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -1
- package/front_end/third_party/lit-html/package/development/directives/when.d.ts +26 -0
- package/front_end/third_party/lit-html/package/development/directives/when.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/when.js +9 -0
- package/front_end/third_party/lit-html/package/development/directives/when.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts +182 -1
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/lit-html.js +187 -4
- package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.js +7 -0
- package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/choose.d.ts +32 -0
- package/front_end/third_party/lit-html/package/directives/choose.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/choose.js +7 -0
- package/front_end/third_party/lit-html/package/directives/choose.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/class-map.js +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.js +1 -1
- package/front_end/third_party/lit-html/package/directives/join.d.ts +21 -0
- package/front_end/third_party/lit-html/package/directives/join.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/join.js +7 -0
- package/front_end/third_party/lit-html/package/directives/join.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/keyed.d.ts +23 -0
- package/front_end/third_party/lit-html/package/directives/keyed.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/keyed.js +7 -0
- package/front_end/third_party/lit-html/package/directives/keyed.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/map.d.ts +23 -0
- package/front_end/third_party/lit-html/package/directives/map.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/map.js +7 -0
- package/front_end/third_party/lit-html/package/directives/map.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/range.d.ts +24 -0
- package/front_end/third_party/lit-html/package/directives/range.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/range.js +7 -0
- package/front_end/third_party/lit-html/package/directives/range.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/ref.js +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.js +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.js +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.js +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js +1 -1
- package/front_end/third_party/lit-html/package/directives/until.js +1 -1
- package/front_end/third_party/lit-html/package/directives/when.d.ts +26 -0
- package/front_end/third_party/lit-html/package/directives/when.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/when.js +7 -0
- package/front_end/third_party/lit-html/package/directives/when.js.map +1 -0
- package/front_end/third_party/lit-html/package/lit-html.d.ts +182 -1
- package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/package.json +25 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.js +1 -1
- package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/static.js +1 -1
- package/front_end/third_party/lit-html/package/static.js.map +1 -1
- package/front_end/third_party/puppeteer/README.chromium +1 -1
- package/front_end/third_party/puppeteer/package/README.md +12 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +12 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +7 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +8 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +6 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +6 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +2 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +10 -6
- package/front_end/third_party/puppeteer/package/package.json +17 -17
- package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +1 -1
- package/front_end/ui/components/data_grid/DataGrid.ts +8 -9
- package/front_end/ui/components/data_grid/DataGridController.ts +3 -1
- package/front_end/ui/components/docs/panel_introduction_steps/basic.html +25 -0
- package/front_end/ui/components/docs/panel_introduction_steps/basic.ts +25 -0
- package/front_end/ui/components/input/input.ts +2 -2
- package/front_end/ui/components/linkifier/LinkifierUtils.ts +3 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +4 -1
- package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +44 -0
- package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +56 -0
- package/front_end/ui/components/panel_introduction_steps/panel_introduction_steps.ts +5 -0
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +3 -4
- package/front_end/ui/components/text_editor/TextEditor.ts +1 -1
- package/front_end/ui/components/text_editor/config.ts +1 -35
- package/front_end/ui/components/text_editor/javascript.ts +8 -8
- package/front_end/ui/components/tree_outline/TreeOutline.ts +10 -9
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
- package/front_end/ui/legacy/ARIAUtils.ts +4 -2
- package/front_end/ui/legacy/ContextMenu.ts +14 -0
- package/front_end/ui/legacy/DockController.ts +2 -1
- package/front_end/ui/legacy/SettingsUI.ts +3 -3
- package/front_end/ui/legacy/SoftContextMenu.ts +43 -14
- package/front_end/ui/legacy/Toolbar.ts +16 -0
- package/front_end/ui/legacy/Treeoutline.ts +17 -7
- package/front_end/ui/legacy/UIUtils.ts +2 -2
- package/front_end/ui/legacy/View.ts +14 -8
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/ViewRegistration.ts +6 -0
- package/front_end/ui/legacy/Widget.ts +2 -1
- package/front_end/ui/legacy/XLink.ts +8 -3
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +3 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +43 -11
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +98 -48
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +4 -3
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +24 -28
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +5 -11
- package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +8 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -7
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +11 -10
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -1
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +18 -9
- package/front_end/ui/legacy/components/utils/Linkifier.ts +13 -6
- package/front_end/ui/legacy/reportView.css +1 -0
- package/front_end/ui/legacy/splitWidget.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +2 -0
- package/front_end/ui/legacy/themeColors.css +1 -1
- package/front_end/ui/legacy/toolbar.css +17 -1
- package/front_end/ui/legacy/utils/focus-changed.ts +3 -1
- package/inspector_overlay/.eslintrc.js +9 -0
- package/package.json +17 -17
- package/scripts/eslint_rules/lib/check_component_naming.js +4 -0
- package/scripts/eslint_rules/lib/es_modules_import.js +6 -0
- package/scripts/eslint_rules/lib/inject_checkbox_styles.js +121 -0
- package/scripts/eslint_rules/tests/es_modules_import_test.js +12 -0
- package/scripts/eslint_rules/tests/inject_checkbox_styles_test.js +127 -0
- package/front_end/models/issues_manager/descriptions/arAttributionEventSourceTriggerDataTooLarge.md +0 -4
- package/front_end/models/issues_manager/descriptions/arAttributionTriggerDataTooLarge.md +0 -4
- package/front_end/models/issues_manager/descriptions/arInvalidAttributionData.md +0 -8
- package/front_end/models/issues_manager/descriptions/arInvalidEventSourceTriggerData.md +0 -9
- package/front_end/models/issues_manager/descriptions/arInvalidTriggerDedupKey.md +0 -5
- package/front_end/models/issues_manager/descriptions/arInvalidTriggerPriority.md +0 -5
- package/front_end/models/issues_manager/descriptions/arMissingAttributionData.md +0 -7
@@ -118,7 +118,7 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
118
118
|
rename(
|
119
119
|
uiSourceCode: Workspace.UISourceCode.UISourceCode, newName: Platform.DevToolsPath.RawPathString,
|
120
120
|
callback:
|
121
|
-
(arg0: boolean, arg1?: string|undefined, arg2?:
|
121
|
+
(arg0: boolean, arg1?: string|undefined, arg2?: Platform.DevToolsPath.UrlString|undefined,
|
122
122
|
arg3?: Common.ResourceType.ResourceType|undefined) => void): void {
|
123
123
|
const path = uiSourceCode.url();
|
124
124
|
this.performRename(path, newName, innerCallback.bind(this));
|
@@ -137,7 +137,7 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
137
137
|
}
|
138
138
|
}
|
139
139
|
|
140
|
-
excludeFolder(_path:
|
140
|
+
excludeFolder(_path: Platform.DevToolsPath.UrlString): void {
|
141
141
|
}
|
142
142
|
|
143
143
|
canExcludeFolder(_path: Platform.DevToolsPath.EncodedPathString): boolean {
|
@@ -160,7 +160,9 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
160
160
|
remove(): void {
|
161
161
|
}
|
162
162
|
|
163
|
-
performRename(
|
163
|
+
performRename(
|
164
|
+
path: Platform.DevToolsPath.UrlString, newName: string,
|
165
|
+
callback: (arg0: boolean, arg1?: string|undefined) => void): void {
|
164
166
|
callback(false);
|
165
167
|
}
|
166
168
|
|
@@ -173,11 +175,11 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
173
175
|
}
|
174
176
|
|
175
177
|
async findFilesMatchingSearchRequest(
|
176
|
-
searchConfig: Workspace.Workspace.ProjectSearchConfig,
|
178
|
+
searchConfig: Workspace.Workspace.ProjectSearchConfig, filesMatchingFileQuery: Platform.DevToolsPath.UrlString[],
|
177
179
|
progress: Common.Progress.Progress): Promise<string[]> {
|
178
180
|
const result: string[] = [];
|
179
|
-
progress.setTotalWork(
|
180
|
-
await Promise.all(
|
181
|
+
progress.setTotalWork(filesMatchingFileQuery.length);
|
182
|
+
await Promise.all(filesMatchingFileQuery.map(searchInContent.bind(this)));
|
181
183
|
progress.done();
|
182
184
|
return result;
|
183
185
|
|
@@ -211,14 +213,15 @@ export class ContentProviderBasedProject extends Workspace.Workspace.ProjectStor
|
|
211
213
|
this.addUISourceCode(uiSourceCode);
|
212
214
|
}
|
213
215
|
|
214
|
-
addContentProvider(
|
215
|
-
|
216
|
+
addContentProvider(
|
217
|
+
url: Platform.DevToolsPath.UrlString, contentProvider: TextUtils.ContentProvider.ContentProvider,
|
218
|
+
mimeType: string): Workspace.UISourceCode.UISourceCode {
|
216
219
|
const uiSourceCode = this.createUISourceCode(url, contentProvider.contentType());
|
217
220
|
this.addUISourceCodeWithProvider(uiSourceCode, contentProvider, null, mimeType);
|
218
221
|
return uiSourceCode;
|
219
222
|
}
|
220
223
|
|
221
|
-
removeFile(path:
|
224
|
+
removeFile(path: Platform.DevToolsPath.UrlString): void {
|
222
225
|
this.#contentProviders.delete(path);
|
223
226
|
this.removeUISourceCode(path);
|
224
227
|
}
|
@@ -766,7 +766,7 @@ export class DebuggerLanguagePluginManager implements
|
|
766
766
|
rawModuleId: string,
|
767
767
|
plugin: DebuggerLanguagePlugin,
|
768
768
|
scripts: Array<SDK.Script.Script>,
|
769
|
-
addRawModulePromise: Promise<Array<
|
769
|
+
addRawModulePromise: Promise<Array<Platform.DevToolsPath.UrlString>>,
|
770
770
|
}>;
|
771
771
|
|
772
772
|
constructor(
|
@@ -939,8 +939,8 @@ export class DebuggerLanguagePluginManager implements
|
|
939
939
|
return {rawModuleId, plugin: null};
|
940
940
|
}
|
941
941
|
|
942
|
-
uiSourceCodeForURL(debuggerModel: SDK.DebuggerModel.DebuggerModel, url:
|
943
|
-
|null {
|
942
|
+
uiSourceCodeForURL(debuggerModel: SDK.DebuggerModel.DebuggerModel, url: Platform.DevToolsPath.UrlString):
|
943
|
+
Workspace.UISourceCode.UISourceCode|null {
|
944
944
|
const modelData = this.#debuggerModelToData.get(debuggerModel);
|
945
945
|
if (modelData) {
|
946
946
|
return modelData.getProject().uiSourceCodeForURL(url);
|
@@ -970,7 +970,8 @@ export class DebuggerLanguagePluginManager implements
|
|
970
970
|
try {
|
971
971
|
const sourceLocations = await plugin.rawLocationToSourceLocation(pluginLocation);
|
972
972
|
for (const sourceLocation of sourceLocations) {
|
973
|
-
const uiSourceCode = this.uiSourceCodeForURL(
|
973
|
+
const uiSourceCode = this.uiSourceCodeForURL(
|
974
|
+
script.debuggerModel, sourceLocation.sourceFileURL as Platform.DevToolsPath.UrlString);
|
974
975
|
if (!uiSourceCode) {
|
975
976
|
continue;
|
976
977
|
}
|
@@ -1068,7 +1069,7 @@ export class DebuggerLanguagePluginManager implements
|
|
1068
1069
|
const rawModuleId = rawModuleIdForScript(script);
|
1069
1070
|
let rawModuleHandle = this.#rawModuleHandles.get(rawModuleId);
|
1070
1071
|
if (!rawModuleHandle) {
|
1071
|
-
const sourceFileURLsPromise = (async(): Promise<
|
1072
|
+
const sourceFileURLsPromise = (async(): Promise<Platform.DevToolsPath.UrlString[]> => {
|
1072
1073
|
const console = Common.Console.Console.instance();
|
1073
1074
|
const url = script.sourceURL;
|
1074
1075
|
const symbolsUrl = (script.debugSymbols && script.debugSymbols.externalURL) || '';
|
@@ -1079,7 +1080,8 @@ export class DebuggerLanguagePluginManager implements
|
|
1079
1080
|
}
|
1080
1081
|
try {
|
1081
1082
|
const code = (!symbolsUrl && url.startsWith('wasm://')) ? await script.getWasmBytecode() : undefined;
|
1082
|
-
const sourceFileURLs =
|
1083
|
+
const sourceFileURLs =
|
1084
|
+
await plugin.addRawModule(rawModuleId, symbolsUrl, {url, code}) as Platform.DevToolsPath.UrlString[];
|
1083
1085
|
// Check that the handle isn't stale by now. This works because the code that assigns to
|
1084
1086
|
// `rawModuleHandle` below will run before this code because of the `await` in the preceding
|
1085
1087
|
// line. This is primarily to avoid logging the message below, which would give the developer
|
@@ -1298,7 +1300,7 @@ class ModelData {
|
|
1298
1300
|
this.uiSourceCodeToScripts = new Map();
|
1299
1301
|
}
|
1300
1302
|
|
1301
|
-
addSourceFiles(script: SDK.Script.Script, urls:
|
1303
|
+
addSourceFiles(script: SDK.Script.Script, urls: Platform.DevToolsPath.UrlString[]): void {
|
1302
1304
|
const initiator = script.createPageResourceLoadInitiator();
|
1303
1305
|
for (const url of urls) {
|
1304
1306
|
let uiSourceCode = this.project.uiSourceCodeForURL(url);
|
@@ -1316,7 +1318,7 @@ class ModelData {
|
|
1316
1318
|
this.uiSourceCodeToScripts.set(uiSourceCode, [script]);
|
1317
1319
|
|
1318
1320
|
const contentProvider = new SDK.CompilerSourceMappingContentProvider.CompilerSourceMappingContentProvider(
|
1319
|
-
url
|
1321
|
+
url, Common.ResourceType.resourceTypes.SourceMapScript, initiator);
|
1320
1322
|
const mimeType = Common.ResourceType.ResourceType.mimeFromURL(url) || 'text/javascript';
|
1321
1323
|
this.project.addUISourceCodeWithProvider(uiSourceCode, contentProvider, null, mimeType);
|
1322
1324
|
} else {
|
@@ -71,6 +71,13 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
|
|
71
71
|
this.#sourceMappings.push(sourceMapping);
|
72
72
|
}
|
73
73
|
|
74
|
+
removeSourceMapping(sourceMapping: DebuggerSourceMapping): void {
|
75
|
+
const index = this.#sourceMappings.indexOf(sourceMapping);
|
76
|
+
if (index !== -1) {
|
77
|
+
this.#sourceMappings.splice(index, 1);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
74
81
|
private async computeAutoStepRanges(mode: SDK.DebuggerModel.StepMode, callFrame: SDK.DebuggerModel.CallFrame):
|
75
82
|
Promise<RawLocationRange[]> {
|
76
83
|
function contained(location: SDK.DebuggerModel.Location, range: RawLocationRange): boolean {
|
@@ -228,7 +235,7 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
|
|
228
235
|
}
|
229
236
|
|
230
237
|
uiSourceCodeForSourceMapSourceURL(
|
231
|
-
debuggerModel: SDK.DebuggerModel.DebuggerModel, url:
|
238
|
+
debuggerModel: SDK.DebuggerModel.DebuggerModel, url: Platform.DevToolsPath.UrlString,
|
232
239
|
isContentScript: boolean): Workspace.UISourceCode.UISourceCode|null {
|
233
240
|
const modelData = this.#debuggerModelToData.get(debuggerModel);
|
234
241
|
if (!modelData) {
|
@@ -29,6 +29,7 @@
|
|
29
29
|
*/
|
30
30
|
|
31
31
|
import * as Common from '../../core/common/common.js';
|
32
|
+
import type * as Platform from '../../core/platform/platform.js';
|
32
33
|
import * as SDK from '../../core/sdk/sdk.js';
|
33
34
|
import * as Workspace from '../workspace/workspace.js';
|
34
35
|
|
@@ -61,6 +62,12 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
|
|
61
62
|
this.#uiSourceCodeToScriptsMap = new WeakMap();
|
62
63
|
}
|
63
64
|
|
65
|
+
static createV8ScriptURL(script: SDK.Script.Script): Platform.DevToolsPath.UrlString {
|
66
|
+
const name = Common.ParsedURL.ParsedURL.extractName(script.sourceURL);
|
67
|
+
const url = 'debugger:///VM' + script.scriptId + (name ? ' ' + name : '') as Platform.DevToolsPath.UrlString;
|
68
|
+
return url;
|
69
|
+
}
|
70
|
+
|
64
71
|
static scriptForUISourceCode(uiSourceCode: Workspace.UISourceCode.UISourceCode): SDK.Script.Script|null {
|
65
72
|
const scripts = uiSourceCodeToScriptsMap.get(uiSourceCode);
|
66
73
|
return scripts ? scripts.values().next().value : null;
|
@@ -90,8 +97,7 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
|
|
90
97
|
|
91
98
|
private parsedScriptSource(event: Common.EventTarget.EventTargetEvent<SDK.Script.Script>): void {
|
92
99
|
const script = event.data;
|
93
|
-
const
|
94
|
-
const url = 'debugger:///VM' + script.scriptId + (name ? ' ' + name : '');
|
100
|
+
const url = DefaultScriptMapping.createV8ScriptURL(script);
|
95
101
|
|
96
102
|
const uiSourceCode = this.#project.createUISourceCode(url, Common.ResourceType.resourceTypes.Script);
|
97
103
|
this.#uiSourceCodeToScriptsMap.set(uiSourceCode, script);
|
@@ -29,6 +29,7 @@
|
|
29
29
|
*/
|
30
30
|
|
31
31
|
import type * as Common from '../../core/common/common.js';
|
32
|
+
import type * as Platform from '../../core/platform/platform.js';
|
32
33
|
import * as Workspace from '../workspace/workspace.js';
|
33
34
|
|
34
35
|
export interface ChunkedReader {
|
@@ -206,13 +207,13 @@ export class ChunkedFileReader implements ChunkedReader {
|
|
206
207
|
|
207
208
|
export class FileOutputStream implements Common.StringOutputStream.OutputStream {
|
208
209
|
#writeCallbacks: (() => void)[];
|
209
|
-
#fileName!:
|
210
|
+
#fileName!: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString;
|
210
211
|
#closed?: boolean;
|
211
212
|
constructor() {
|
212
213
|
this.#writeCallbacks = [];
|
213
214
|
}
|
214
215
|
|
215
|
-
async open(fileName:
|
216
|
+
async open(fileName: Platform.DevToolsPath.RawPathString|Platform.DevToolsPath.UrlString): Promise<boolean> {
|
216
217
|
this.#closed = false;
|
217
218
|
this.#writeCallbacks = [];
|
218
219
|
this.#fileName = fileName;
|
@@ -107,7 +107,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
107
107
|
return url ? this.isIgnoreListedURL(url) : false;
|
108
108
|
}
|
109
109
|
|
110
|
-
isIgnoreListedURL(url:
|
110
|
+
isIgnoreListedURL(url: Platform.DevToolsPath.UrlString, isContentScript?: boolean): boolean {
|
111
111
|
if (this.#isIgnoreListedURLCache.has(url)) {
|
112
112
|
return Boolean(this.#isIgnoreListedURLCache.get(url));
|
113
113
|
}
|
@@ -187,7 +187,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
187
187
|
}
|
188
188
|
}
|
189
189
|
|
190
|
-
private uiSourceCodeURL(uiSourceCode: Workspace.UISourceCode.UISourceCode):
|
190
|
+
private uiSourceCodeURL(uiSourceCode: Workspace.UISourceCode.UISourceCode): Platform.DevToolsPath.UrlString|null {
|
191
191
|
return uiSourceCode.project().type() === Workspace.Workspace.projectTypes.Debugger ? null : uiSourceCode.url();
|
192
192
|
}
|
193
193
|
|
@@ -218,7 +218,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
218
218
|
Common.Settings.Settings.instance().moduleSetting('skipContentScripts').set(false);
|
219
219
|
}
|
220
220
|
|
221
|
-
private ignoreListURL(url:
|
221
|
+
private ignoreListURL(url: Platform.DevToolsPath.UrlString): void {
|
222
222
|
const regexPatterns = this.getSkipStackFramesPatternSetting().getAsArray();
|
223
223
|
const regexValue = this.urlToRegExpString(url);
|
224
224
|
if (!regexValue) {
|
@@ -239,7 +239,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
239
239
|
this.getSkipStackFramesPatternSetting().setAsArray(regexPatterns);
|
240
240
|
}
|
241
241
|
|
242
|
-
private unIgnoreListURL(url:
|
242
|
+
private unIgnoreListURL(url: Platform.DevToolsPath.UrlString): void {
|
243
243
|
let regexPatterns = this.getSkipStackFramesPatternSetting().getAsArray();
|
244
244
|
const regexValue = IgnoreListManager.instance().urlToRegExpString(url);
|
245
245
|
if (!regexValue) {
|
@@ -287,7 +287,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
287
287
|
// This method is sniffed in tests.
|
288
288
|
}
|
289
289
|
|
290
|
-
private urlToRegExpString(url:
|
290
|
+
private urlToRegExpString(url: Platform.DevToolsPath.UrlString): string {
|
291
291
|
const parsedURL = new Common.ParsedURL.ParsedURL(url);
|
292
292
|
if (parsedURL.isAboutBlank() || parsedURL.isDataURL()) {
|
293
293
|
return '';
|
@@ -38,7 +38,7 @@ import * as SDK from '../../core/sdk/sdk.js';
|
|
38
38
|
import type * as Protocol from '../../generated/protocol.js';
|
39
39
|
import * as Workspace from '../workspace/workspace.js';
|
40
40
|
|
41
|
-
export function resourceForURL(url:
|
41
|
+
export function resourceForURL(url: Platform.DevToolsPath.UrlString): SDK.Resource.Resource|null {
|
42
42
|
for (const resourceTreeModel of SDK.TargetManager.TargetManager.instance().models(
|
43
43
|
SDK.ResourceTreeModel.ResourceTreeModel)) {
|
44
44
|
const resource = resourceTreeModel.resourceForURL(url);
|
@@ -49,7 +49,7 @@ export function resourceForURL(url: string): SDK.Resource.Resource|null {
|
|
49
49
|
return null;
|
50
50
|
}
|
51
51
|
|
52
|
-
export function displayNameForURL(url:
|
52
|
+
export function displayNameForURL(url: Platform.DevToolsPath.UrlString): string {
|
53
53
|
if (!url) {
|
54
54
|
return '';
|
55
55
|
}
|
@@ -88,8 +88,9 @@ export function displayNameForURL(url: string): string {
|
|
88
88
|
return displayName === '/' ? parsedURL.host + '/' : displayName;
|
89
89
|
}
|
90
90
|
|
91
|
-
export function metadataForURL(
|
92
|
-
|
91
|
+
export function metadataForURL(
|
92
|
+
target: SDK.Target.Target, frameId: Protocol.Page.FrameId,
|
93
|
+
url: Platform.DevToolsPath.UrlString): Workspace.UISourceCode.UISourceCodeMetadata|null {
|
93
94
|
const resourceTreeModel = target.model(SDK.ResourceTreeModel.ResourceTreeModel);
|
94
95
|
if (!resourceTreeModel) {
|
95
96
|
return null;
|
@@ -643,6 +643,10 @@ export interface JSONMode {
|
|
643
643
|
}
|
644
644
|
|
645
645
|
const emulatedDevices = [
|
646
|
+
// This is used by a python script to keep this list up-to-date with
|
647
|
+
// chromedriver native code.
|
648
|
+
// See //chrome/test/chromedriver/embed_mobile_devices_in_cpp.py in Chromium.
|
649
|
+
// DEVICE-LIST-BEGIN
|
646
650
|
{
|
647
651
|
'order': 10,
|
648
652
|
'show-by-default': true,
|
@@ -1653,7 +1657,11 @@ const emulatedDevices = [
|
|
1653
1657
|
},
|
1654
1658
|
{
|
1655
1659
|
'show-by-default': false,
|
1660
|
+
/* DEVICE-LIST-IF-JS */
|
1656
1661
|
'title': i18nLazyString(UIStrings.laptopWithTouch),
|
1662
|
+
/* DEVICE-LIST-ELSE
|
1663
|
+
'title': 'Laptop with touch',
|
1664
|
+
DEVICE-LIST-END-IF */
|
1657
1665
|
'screen': {
|
1658
1666
|
'horizontal': {'width': 1280, 'height': 950},
|
1659
1667
|
'device-pixel-ratio': 1,
|
@@ -1666,7 +1674,11 @@ const emulatedDevices = [
|
|
1666
1674
|
},
|
1667
1675
|
{
|
1668
1676
|
'show-by-default': false,
|
1677
|
+
/* DEVICE-LIST-IF-JS */
|
1669
1678
|
'title': i18nLazyString(UIStrings.laptopWithHiDPIScreen),
|
1679
|
+
/* DEVICE-LIST-ELSE
|
1680
|
+
'title': 'Laptop with HiDPI screen',
|
1681
|
+
DEVICE-LIST-END-IF */
|
1670
1682
|
'screen': {
|
1671
1683
|
'horizontal': {'width': 1440, 'height': 900},
|
1672
1684
|
'device-pixel-ratio': 2,
|
@@ -1679,7 +1691,11 @@ const emulatedDevices = [
|
|
1679
1691
|
},
|
1680
1692
|
{
|
1681
1693
|
'show-by-default': false,
|
1694
|
+
/* DEVICE-LIST-IF-JS */
|
1682
1695
|
'title': i18nLazyString(UIStrings.laptopWithMDPIScreen),
|
1696
|
+
/* DEVICE-LIST-ELSE
|
1697
|
+
'title': 'Laptop with MDPI screen',
|
1698
|
+
DEVICE-LIST-END-IF */
|
1683
1699
|
'screen': {
|
1684
1700
|
'horizontal': {'width': 1280, 'height': 800},
|
1685
1701
|
'device-pixel-ratio': 1,
|
@@ -1719,4 +1735,5 @@ const emulatedDevices = [
|
|
1719
1735
|
{'platform': 'Android', 'platformVersion': '6.0.1', 'architecture': '', 'model': 'Moto G (4)', 'mobile': true},
|
1720
1736
|
'type': 'phone',
|
1721
1737
|
},
|
1738
|
+
// DEVICE-LIST-END
|
1722
1739
|
];
|
@@ -28,6 +28,7 @@
|
|
28
28
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
29
|
*/
|
30
30
|
|
31
|
+
import type * as Platform from '../../core/platform/platform.js';
|
31
32
|
import type * as PublicAPI from '../../../extension-api/ExtensionAPI'; // eslint-disable-line rulesdir/es_modules_import
|
32
33
|
import type * as HAR from '../har/har.js';
|
33
34
|
|
@@ -151,7 +152,8 @@ export namespace PrivateAPI {
|
|
151
152
|
evaluateOptions?: EvaluateOptions,
|
152
153
|
};
|
153
154
|
type SetSidebarPageRequest = {command: Commands.SetSidebarPage, id: string, page: string};
|
154
|
-
type OpenResourceRequest =
|
155
|
+
type OpenResourceRequest =
|
156
|
+
{command: Commands.OpenResource, url: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber: number};
|
155
157
|
type SetOpenResourceHandlerRequest = {command: Commands.SetOpenResourceHandler, handlerPresent: boolean};
|
156
158
|
type SetThemeChangeHandlerRequest = {command: Commands.SetThemeChangeHandler, handlerPresent: boolean};
|
157
159
|
type ReloadRequest = {
|
@@ -606,7 +608,8 @@ self.injectedExtensionAPI = function(
|
|
606
608
|
},
|
607
609
|
|
608
610
|
openResource: function(
|
609
|
-
url:
|
611
|
+
url: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber?: number,
|
612
|
+
_callback?: (response: unknown) => unknown): void {
|
610
613
|
const callbackArg = extractCallbackArgument(arguments);
|
611
614
|
// Handle older API:
|
612
615
|
const columnNumberArg = typeof columnNumber === 'number' ? columnNumber : 0;
|
@@ -29,6 +29,7 @@
|
|
29
29
|
*/
|
30
30
|
|
31
31
|
import * as _ProtocolClient from '../../core/protocol_client/protocol_client.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
|
32
|
+
import type * as Platform from '../../core/platform/platform.js';
|
32
33
|
import * as SDK from '../../core/sdk/sdk.js';
|
33
34
|
import * as UI from '../../ui/legacy/legacy.js';
|
34
35
|
|
@@ -127,7 +128,7 @@ export class ExtensionSidebarPane extends UI.View.SimpleView {
|
|
127
128
|
private idInternal: string;
|
128
129
|
private extensionView?: ExtensionView;
|
129
130
|
private objectPropertiesView?: ExtensionNotifierView;
|
130
|
-
constructor(server: ExtensionServer, panelName: string, title:
|
131
|
+
constructor(server: ExtensionServer, panelName: string, title: Platform.UIString.LocalizedString, id: string) {
|
131
132
|
super(title);
|
132
133
|
this.element.classList.add('fill');
|
133
134
|
this.panelNameInternal = panelName;
|
@@ -31,8 +31,11 @@
|
|
31
31
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
32
32
|
/* eslint-disable @typescript-eslint/naming-convention */
|
33
33
|
|
34
|
+
// TODO(crbug.com/1253323): Casts to UrlString will be removed from this file when migration to branded types is complete.
|
35
|
+
|
34
36
|
import * as Common from '../../core/common/common.js';
|
35
37
|
import * as Host from '../../core/host/host.js';
|
38
|
+
import * as i18n from '../../core/i18n/i18n.js';
|
36
39
|
import * as Platform from '../../core/platform/platform.js';
|
37
40
|
import * as _ProtocolClient from '../../core/protocol_client/protocol_client.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
|
38
41
|
import * as Root from '../../core/root/root.js';
|
@@ -363,8 +366,8 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
363
366
|
const page = this.expandResourcePath(this.getExtensionOrigin(port), message.page) as string;
|
364
367
|
let persistentId = this.getExtensionOrigin(port) + message.title;
|
365
368
|
persistentId = persistentId.replace(/\s/g, '');
|
366
|
-
const panelView =
|
367
|
-
|
369
|
+
const panelView = new ExtensionServerPanelView(
|
370
|
+
persistentId, i18n.i18n.lockedString(message.title), new ExtensionPanel(this, persistentId, id, page));
|
368
371
|
this.clientObjects.set(id, panelView);
|
369
372
|
UI.InspectorView.InspectorView.instance().addPanel(panelView);
|
370
373
|
return this.status.OK();
|
@@ -438,7 +441,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
438
441
|
return this.status.E_BADARG('command', `expected ${PrivateAPI.Commands.CreateSidebarPane}`);
|
439
442
|
}
|
440
443
|
const id = message.id;
|
441
|
-
const sidebar = new ExtensionSidebarPane(this, message.panel, message.title, id);
|
444
|
+
const sidebar = new ExtensionSidebarPane(this, message.panel, i18n.i18n.lockedString(message.title), id);
|
442
445
|
this.sidebarPanesInternal.push(sidebar);
|
443
446
|
this.clientObjects.set(id, sidebar);
|
444
447
|
this.dispatchEventToListeners(Events.SidebarPaneAdded, sidebar);
|
@@ -500,7 +503,8 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
500
503
|
if (message.command !== PrivateAPI.Commands.OpenResource) {
|
501
504
|
return this.status.E_BADARG('command', `expected ${PrivateAPI.Commands.OpenResource}`);
|
502
505
|
}
|
503
|
-
const uiSourceCode =
|
506
|
+
const uiSourceCode =
|
507
|
+
Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(message.url as Platform.DevToolsPath.UrlString);
|
504
508
|
if (uiSourceCode) {
|
505
509
|
void Common.Revealer.reveal(uiSourceCode.uiLocation(message.lineNumber, message.columnNumber));
|
506
510
|
return this.status.OK();
|
@@ -674,7 +678,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
674
678
|
if (message.command !== PrivateAPI.Commands.GetResourceContent) {
|
675
679
|
return this.status.E_BADARG('command', `expected ${PrivateAPI.Commands.GetResourceContent}`);
|
676
680
|
}
|
677
|
-
const url =
|
681
|
+
const url = message.url as Platform.DevToolsPath.UrlString;
|
678
682
|
const contentProvider = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(url) ||
|
679
683
|
Bindings.ResourceUtils.resourceForURL(url);
|
680
684
|
if (!contentProvider) {
|
@@ -695,9 +699,10 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
695
699
|
this.dispatchCallback(requestId, port, response);
|
696
700
|
}
|
697
701
|
|
698
|
-
const uiSourceCode =
|
702
|
+
const uiSourceCode =
|
703
|
+
Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(url as Platform.DevToolsPath.UrlString);
|
699
704
|
if (!uiSourceCode || !uiSourceCode.contentType().isDocumentOrScriptOrStyleSheet()) {
|
700
|
-
const resource = SDK.ResourceTreeModel.ResourceTreeModel.resourceForURL(url);
|
705
|
+
const resource = SDK.ResourceTreeModel.ResourceTreeModel.resourceForURL(url as Platform.DevToolsPath.UrlString);
|
701
706
|
if (!resource) {
|
702
707
|
return this.status.E_NOTFOUND(url);
|
703
708
|
}
|
@@ -1132,7 +1137,7 @@ class ExtensionServerPanelView extends UI.View.SimpleView {
|
|
1132
1137
|
private readonly name: string;
|
1133
1138
|
private readonly panel: UI.Panel.Panel;
|
1134
1139
|
|
1135
|
-
constructor(name: string, title:
|
1140
|
+
constructor(name: string, title: Platform.UIString.LocalizedString, panel: UI.Panel.Panel) {
|
1136
1141
|
super(title);
|
1137
1142
|
this.name = name;
|
1138
1143
|
this.panel = panel;
|
@@ -11,19 +11,12 @@ import type {MarkdownIssueDescription} from './MarkdownIssueDescription.js';
|
|
11
11
|
export const enum IssueCode {
|
12
12
|
PermissionPolicyDisabled = 'AttributionReportingIssue::PermissionPolicyDisabled',
|
13
13
|
InvalidAttributionSourceEventId = 'AttributionReportingIssue::InvalidAttributionSourceEventId',
|
14
|
-
InvalidAttributionData = 'AttributionReportingIssue::InvalidAttributionData',
|
15
|
-
MissingAttributionData = 'AttributionReportingIssue::MissingAttributionData',
|
16
14
|
AttributionSourceUntrustworthyFrameOrigin = 'AttributionReportingIssue::AttributionSourceUntrustworthyFrameOrigin',
|
17
15
|
AttributionSourceUntrustworthyOrigin = 'AttributionReportingIssue::AttributionSourceUntrustworthyOrigin',
|
18
16
|
AttributionUntrustworthyFrameOrigin = 'AttributionReportingIssue::AttributionUntrustworthyFrameOrigin',
|
19
17
|
AttributionUntrustworthyOrigin = 'AttributionReportingIssue::AttributionUntrustworthyOrigin',
|
20
|
-
AttributionTriggerDataTooLarge = 'AttributionReportingIssue::AttributionTriggerDataTooLarge',
|
21
|
-
AttributionEventSourceTriggerDataTooLarge = 'AttributionReportingIssue::AttributionEventSourceTriggerDataTooLarge',
|
22
18
|
InvalidAttributionSourceExpiry = 'AttributionReportingIssue::InvalidAttributionSourceExpiry',
|
23
19
|
InvalidAttributionSourcePriority = 'AttributionReportingIssue::InvalidAttributionSourcePriority',
|
24
|
-
InvalidEventSourceTriggerData = 'AttributionReportingIssue::InvalidEventSourceTriggerData',
|
25
|
-
InvalidTriggerPriority = 'AttributionReportingIssue::InvalidTriggerPriority',
|
26
|
-
InvalidTriggerDedupKey = 'AttributionReportingIssue::InvalidTriggerDedupKey',
|
27
20
|
}
|
28
21
|
|
29
22
|
function getIssueCode(details: Protocol.Audits.AttributionReportingIssueDetails): IssueCode {
|
@@ -32,29 +25,16 @@ function getIssueCode(details: Protocol.Audits.AttributionReportingIssueDetails)
|
|
32
25
|
return IssueCode.PermissionPolicyDisabled;
|
33
26
|
case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourceEventId:
|
34
27
|
return IssueCode.InvalidAttributionSourceEventId;
|
35
|
-
case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionData:
|
36
|
-
return details.invalidParameter !== undefined ? IssueCode.InvalidAttributionData :
|
37
|
-
IssueCode.MissingAttributionData;
|
38
28
|
case Protocol.Audits.AttributionReportingIssueType.AttributionSourceUntrustworthyOrigin:
|
39
29
|
return details.frame !== undefined ? IssueCode.AttributionSourceUntrustworthyFrameOrigin :
|
40
30
|
IssueCode.AttributionSourceUntrustworthyOrigin;
|
41
31
|
case Protocol.Audits.AttributionReportingIssueType.AttributionUntrustworthyOrigin:
|
42
32
|
return details.frame !== undefined ? IssueCode.AttributionUntrustworthyFrameOrigin :
|
43
33
|
IssueCode.AttributionUntrustworthyOrigin;
|
44
|
-
case Protocol.Audits.AttributionReportingIssueType.AttributionTriggerDataTooLarge:
|
45
|
-
return IssueCode.AttributionTriggerDataTooLarge;
|
46
|
-
case Protocol.Audits.AttributionReportingIssueType.AttributionEventSourceTriggerDataTooLarge:
|
47
|
-
return IssueCode.AttributionEventSourceTriggerDataTooLarge;
|
48
34
|
case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourceExpiry:
|
49
35
|
return IssueCode.InvalidAttributionSourceExpiry;
|
50
36
|
case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourcePriority:
|
51
37
|
return IssueCode.InvalidAttributionSourcePriority;
|
52
|
-
case Protocol.Audits.AttributionReportingIssueType.InvalidEventSourceTriggerData:
|
53
|
-
return IssueCode.InvalidEventSourceTriggerData;
|
54
|
-
case Protocol.Audits.AttributionReportingIssueType.InvalidTriggerPriority:
|
55
|
-
return IssueCode.InvalidTriggerPriority;
|
56
|
-
case Protocol.Audits.AttributionReportingIssueType.InvalidTriggerDedupKey:
|
57
|
-
return IssueCode.InvalidTriggerDedupKey;
|
58
38
|
}
|
59
39
|
}
|
60
40
|
|
@@ -87,16 +67,6 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
|
|
87
67
|
linkTitle: 'attributionsourceeventid attribute',
|
88
68
|
}],
|
89
69
|
};
|
90
|
-
case IssueCode.InvalidAttributionData:
|
91
|
-
return {
|
92
|
-
file: 'arInvalidAttributionData.md',
|
93
|
-
links: [],
|
94
|
-
};
|
95
|
-
case IssueCode.MissingAttributionData:
|
96
|
-
return {
|
97
|
-
file: 'arMissingAttributionData.md',
|
98
|
-
links: [],
|
99
|
-
};
|
100
70
|
case IssueCode.AttributionSourceUntrustworthyFrameOrigin:
|
101
71
|
return {
|
102
72
|
file: 'arAttributionSourceUntrustworthyFrameOrigin.md',
|
@@ -128,16 +98,6 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
|
|
128
98
|
file: 'arAttributionUntrustworthyOrigin.md',
|
129
99
|
links: [],
|
130
100
|
};
|
131
|
-
case IssueCode.AttributionTriggerDataTooLarge:
|
132
|
-
return {
|
133
|
-
file: 'arAttributionTriggerDataTooLarge.md',
|
134
|
-
links: [],
|
135
|
-
};
|
136
|
-
case IssueCode.AttributionEventSourceTriggerDataTooLarge:
|
137
|
-
return {
|
138
|
-
file: 'arAttributionEventSourceTriggerDataTooLarge.md',
|
139
|
-
links: [],
|
140
|
-
};
|
141
101
|
case IssueCode.InvalidAttributionSourceExpiry:
|
142
102
|
return {
|
143
103
|
file: 'arInvalidAttributionSourceExpiry.md',
|
@@ -156,29 +116,6 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
|
|
156
116
|
linkTitle: 'attributionsourcepriority attribute',
|
157
117
|
}],
|
158
118
|
};
|
159
|
-
case IssueCode.InvalidEventSourceTriggerData:
|
160
|
-
return {
|
161
|
-
file: 'arInvalidEventSourceTriggerData.md',
|
162
|
-
links: [],
|
163
|
-
};
|
164
|
-
case IssueCode.InvalidTriggerPriority:
|
165
|
-
return {
|
166
|
-
file: 'arInvalidTriggerPriority.md',
|
167
|
-
links: [{
|
168
|
-
link:
|
169
|
-
'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#prioritize-specific-conversions',
|
170
|
-
linkTitle: 'Prioritizing specific conversions',
|
171
|
-
}],
|
172
|
-
};
|
173
|
-
case IssueCode.InvalidTriggerDedupKey:
|
174
|
-
return {
|
175
|
-
file: 'arInvalidTriggerDedupKey.md',
|
176
|
-
links: [{
|
177
|
-
link:
|
178
|
-
'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#deduplicate-reports',
|
179
|
-
linkTitle: 'Deduplicating reports',
|
180
|
-
}],
|
181
|
-
};
|
182
119
|
}
|
183
120
|
}
|
184
121
|
|
@@ -426,6 +426,11 @@ const samePartyCrossPartyContextSet: LazyMarkdownIssueDescription = {
|
|
426
426
|
}],
|
427
427
|
};
|
428
428
|
|
429
|
+
const attributeValueExceedsMaxSize: LazyMarkdownIssueDescription = {
|
430
|
+
file: 'CookieAttributeValueExceedsMaxSize.md',
|
431
|
+
links: [],
|
432
|
+
};
|
433
|
+
|
429
434
|
const issueDescriptions: Map<string, LazyMarkdownIssueDescription> = new Map([
|
430
435
|
['CookieIssue::ExcludeSameSiteUnspecifiedTreatedAsLax::ReadCookie', sameSiteUnspecifiedErrorRead],
|
431
436
|
['CookieIssue::ExcludeSameSiteUnspecifiedTreatedAsLax::SetCookie', sameSiteUnspecifiedErrorSet],
|
@@ -455,4 +460,6 @@ const issueDescriptions: Map<string, LazyMarkdownIssueDescription> = new Map([
|
|
455
460
|
['CookieIssue::ExcludeContextDowngrade::SetCookie::Insecure', sameSiteExcludeContextDowngradeSet(false)],
|
456
461
|
['CookieIssue::ExcludeInvalidSameParty::SetCookie', sameSiteInvalidSameParty],
|
457
462
|
['CookieIssue::ExcludeSamePartyCrossPartyContext::SetCookie', samePartyCrossPartyContextSet],
|
463
|
+
['CookieIssue::WarnAttributeValueExceedsMaxSize::ReadCookie', attributeValueExceedsMaxSize],
|
464
|
+
['CookieIssue::WarnAttributeValueExceedsMaxSize::SetCookie', attributeValueExceedsMaxSize],
|
458
465
|
]);
|