chrome-devtools-frontend 1.0.1000934 → 1.0.1002543

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.
Files changed (187) hide show
  1. package/config/gni/devtools_grd_files.gni +4 -3
  2. package/front_end/.eslintrc.js +1 -0
  3. package/front_end/core/common/ParsedURL.ts +3 -3
  4. package/front_end/core/host/InspectorFrontendHost.ts +30 -1
  5. package/front_end/core/i18n/locales/en-US.json +177 -12
  6. package/front_end/core/i18n/locales/en-XL.json +177 -12
  7. package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
  8. package/front_end/core/root/Runtime.ts +7 -3
  9. package/front_end/core/sdk/ServiceWorkerManager.ts +6 -5
  10. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +14 -0
  11. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +491 -0
  12. package/front_end/entrypoints/formatter_worker/Substitute.ts +4 -440
  13. package/front_end/entrypoints/formatter_worker/formatter_worker.ts +2 -0
  14. package/front_end/generated/InspectorBackendCommands.js +38 -10
  15. package/front_end/generated/protocol-mapping.d.ts +5 -1
  16. package/front_end/generated/protocol-proxy-api.d.ts +4 -1
  17. package/front_end/generated/protocol.ts +50 -10
  18. package/front_end/models/bindings/BreakpointManager.ts +12 -11
  19. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  20. package/front_end/models/issues_manager/AttributionReportingIssue.ts +5 -36
  21. package/front_end/models/issues_manager/DeprecationIssue.ts +233 -257
  22. package/front_end/models/issues_manager/Issue.ts +8 -4
  23. package/front_end/models/persistence/PersistenceImpl.ts +2 -2
  24. package/front_end/models/timeline_model/TimelineModel.ts +0 -48
  25. package/front_end/panels/application/AppManifestView.ts +3 -3
  26. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -1
  27. package/front_end/panels/application/ApplicationPanelSidebar.ts +11 -6
  28. package/front_end/panels/application/ApplicationPanelTreeElement.ts +2 -2
  29. package/front_end/panels/application/BackgroundServiceView.ts +5 -4
  30. package/front_end/panels/application/ResourcesPanel.ts +1 -1
  31. package/front_end/panels/application/components/BackForwardCacheView.ts +4 -5
  32. package/front_end/panels/application/components/FrameDetailsView.ts +19 -19
  33. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  34. package/front_end/panels/console/ConsoleViewMessage.ts +6 -3
  35. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +1 -1
  36. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +3 -2
  37. package/front_end/panels/css_overview/cssOverviewCompletedView.css +4 -0
  38. package/front_end/panels/elements/StylePropertyTreeElement.ts +19 -13
  39. package/front_end/panels/elements/StylesSidebarPane.ts +53 -0
  40. package/front_end/panels/elements/components/QueryContainer.ts +1 -1
  41. package/front_end/panels/issues/AffectedResourcesView.ts +4 -3
  42. package/front_end/panels/issues/AffectedSourcesView.ts +2 -1
  43. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +0 -43
  44. package/front_end/panels/issues/IssueView.ts +1 -1
  45. package/front_end/panels/lighthouse/LighthouseController.ts +5 -3
  46. package/front_end/panels/lighthouse/LighthouseReporterTypes.ts +2 -1
  47. package/front_end/panels/lighthouse/lighthousePanel.css +4 -0
  48. package/front_end/panels/network/components/RequestTrustTokensView.ts +7 -7
  49. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +2 -2
  50. package/front_end/panels/profiler/HeapSnapshotView.ts +2 -1
  51. package/front_end/panels/profiler/ProfileDataGrid.ts +1 -1
  52. package/front_end/panels/security/SecurityPanel.ts +6 -5
  53. package/front_end/panels/settings/SettingsScreen.ts +2 -3
  54. package/front_end/panels/sources/DebuggerPlugin.ts +10 -9
  55. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
  56. package/front_end/panels/timeline/PerformanceModel.ts +2 -6
  57. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +1 -14
  58. package/front_end/panels/timeline/TimelineUIUtils.ts +14 -12
  59. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1036 -1088
  60. package/front_end/third_party/lighthouse/locales/en-US.json +241 -4
  61. package/front_end/third_party/lighthouse/locales/en-XL.json +241 -4
  62. package/front_end/third_party/lighthouse/report/bundle.d.ts +2 -0
  63. package/front_end/third_party/lighthouse/report/bundle.js +18 -12
  64. package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
  65. package/front_end/third_party/puppeteer/package/README.md +11 -11
  66. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
  67. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +26 -2
  68. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
  69. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  70. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +7 -0
  71. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  72. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +2 -2
  73. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  74. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +19 -11
  75. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +2 -2
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +6 -2
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +1 -1
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +1 -1
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts +3 -0
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts.map +1 -0
  84. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js +18 -0
  85. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js.map +1 -0
  86. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts +2 -0
  87. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts.map +1 -0
  88. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js +7 -0
  89. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js.map +1 -0
  90. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +2 -0
  91. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts.map +1 -0
  92. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +5 -0
  93. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js.map +1 -0
  94. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.js +2 -15
  96. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.js.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +1 -1
  98. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +23 -15
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +1 -0
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +17 -3
  107. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  108. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
  109. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +1 -6
  110. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  112. package/front_end/third_party/puppeteer/package/lib/esm/package.json +1 -0
  113. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
  114. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +3 -2
  115. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
  116. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +7 -0
  118. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +2 -2
  120. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  121. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +19 -11
  122. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +2 -2
  124. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +6 -2
  126. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +1 -1
  129. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts +3 -0
  130. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts.map +1 -0
  131. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js +17 -0
  132. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js.map +1 -0
  133. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts +2 -0
  134. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts.map +1 -0
  135. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js +4 -0
  136. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js.map +1 -0
  137. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +2 -0
  138. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts.map +1 -0
  139. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +2 -0
  140. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js.map +1 -0
  141. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +1 -1
  142. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +2 -15
  143. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js.map +1 -1
  144. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  146. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +21 -13
  147. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  148. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
  149. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +1 -0
  150. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  151. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +1 -1
  152. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  153. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +17 -3
  154. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  155. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +1 -6
  157. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +1 -1
  158. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  159. package/front_end/third_party/puppeteer/package/lib/types.d.ts +6 -6
  160. package/front_end/third_party/puppeteer/package/package.json +33 -18
  161. package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +4 -1
  162. package/front_end/ui/components/data_grid/DataGrid.ts +1 -1
  163. package/front_end/ui/components/data_grid/DataGridUtils.ts +1 -1
  164. package/front_end/ui/components/docs/linkifier/simple-url.ts +2 -1
  165. package/front_end/ui/components/docs/panel_feedback/basic.ts +3 -2
  166. package/front_end/ui/components/docs/panel_feedback/button.ts +2 -1
  167. package/front_end/ui/components/linkifier/LinkifierImpl.ts +4 -3
  168. package/front_end/ui/components/linkifier/LinkifierUtils.ts +2 -3
  169. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +4 -6
  170. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +5 -4
  171. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +4 -4
  172. package/front_end/ui/legacy/EmptyWidget.ts +2 -1
  173. package/front_end/ui/legacy/UIUtils.ts +4 -4
  174. package/front_end/ui/legacy/XLink.ts +12 -13
  175. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +2 -4
  176. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +1 -1
  177. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +0 -2
  178. package/front_end/ui/legacy/components/utils/ImagePreview.ts +3 -7
  179. package/front_end/ui/legacy/components/utils/Linkifier.ts +23 -23
  180. package/front_end/ui/legacy/toolbar.css +1 -1
  181. package/front_end/ui/lit-html/lit-html.ts +3 -0
  182. package/package.json +1 -1
  183. package/scripts/eslint_rules/lib/lit_template_result_or_nothing.js +4 -0
  184. package/scripts/eslint_rules/tests/lit_template_result_or_nothing_test.js +13 -0
  185. package/front_end/models/issues_manager/descriptions/arInvalidAttributionSourceEventId.md +0 -3
  186. package/front_end/models/issues_manager/descriptions/arInvalidAttributionSourceExpiry.md +0 -4
  187. package/front_end/models/issues_manager/descriptions/arInvalidAttributionSourcePriority.md +0 -4
@@ -963,11 +963,9 @@ export namespace Audits {
963
963
 
964
964
  export const enum AttributionReportingIssueType {
965
965
  PermissionPolicyDisabled = 'PermissionPolicyDisabled',
966
- InvalidAttributionSourceEventId = 'InvalidAttributionSourceEventId',
967
966
  AttributionSourceUntrustworthyOrigin = 'AttributionSourceUntrustworthyOrigin',
968
967
  AttributionUntrustworthyOrigin = 'AttributionUntrustworthyOrigin',
969
- InvalidAttributionSourceExpiry = 'InvalidAttributionSourceExpiry',
970
- InvalidAttributionSourcePriority = 'InvalidAttributionSourcePriority',
968
+ InvalidHeader = 'InvalidHeader',
971
969
  }
972
970
 
973
971
  /**
@@ -1038,10 +1036,7 @@ export namespace Audits {
1038
1036
  GetUserMediaInsecureOrigin = 'GetUserMediaInsecureOrigin',
1039
1037
  HostCandidateAttributeGetter = 'HostCandidateAttributeGetter',
1040
1038
  InsecurePrivateNetworkSubresourceRequest = 'InsecurePrivateNetworkSubresourceRequest',
1041
- LegacyConstraintGoogCpuOveruseDetection = 'LegacyConstraintGoogCpuOveruseDetection',
1042
1039
  LegacyConstraintGoogIPv6 = 'LegacyConstraintGoogIPv6',
1043
- LegacyConstraintGoogScreencastMinBitrate = 'LegacyConstraintGoogScreencastMinBitrate',
1044
- LegacyConstraintGoogSuspendBelowMinBitrate = 'LegacyConstraintGoogSuspendBelowMinBitrate',
1045
1040
  LocalCSSFileExtensionRejected = 'LocalCSSFileExtensionRejected',
1046
1041
  MediaElementAudioSourceNode = 'MediaElementAudioSourceNode',
1047
1042
  MediaSourceAbortRemove = 'MediaSourceAbortRemove',
@@ -1068,16 +1063,13 @@ export namespace Audits {
1068
1063
  RTCConstraintEnableDtlsSrtpTrue = 'RTCConstraintEnableDtlsSrtpTrue',
1069
1064
  RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics =
1070
1065
  'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics',
1071
- RTCPeerConnectionLegacyCreateWithMediaConstraints = 'RTCPeerConnectionLegacyCreateWithMediaConstraints',
1072
1066
  RTCPeerConnectionSdpSemanticsPlanB = 'RTCPeerConnectionSdpSemanticsPlanB',
1073
1067
  RtcpMuxPolicyNegotiate = 'RtcpMuxPolicyNegotiate',
1074
1068
  RTPDataChannel = 'RTPDataChannel',
1075
- SelectionAddRangeIntersect = 'SelectionAddRangeIntersect',
1076
1069
  SharedArrayBufferConstructedWithoutIsolation = 'SharedArrayBufferConstructedWithoutIsolation',
1077
1070
  TextToSpeech_DisallowedByAutoplay = 'TextToSpeech_DisallowedByAutoplay',
1078
1071
  V8SharedArrayBufferConstructedInExtensionWithoutIsolation =
1079
1072
  'V8SharedArrayBufferConstructedInExtensionWithoutIsolation',
1080
- WebCodecsVideoFrameDefaultTimestamp = 'WebCodecsVideoFrameDefaultTimestamp',
1081
1073
  XHRJSONEncodingDetection = 'XHRJSONEncodingDetection',
1082
1074
  XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload = 'XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload',
1083
1075
  XRSupportsSession = 'XRSupportsSession',
@@ -4939,6 +4931,8 @@ export namespace DOMSnapshot {
4939
4931
  */
4940
4932
  export namespace DOMStorage {
4941
4933
 
4934
+ export type SerializedStorageKey = string;
4935
+
4942
4936
  /**
4943
4937
  * DOM Storage identifier.
4944
4938
  */
@@ -4946,7 +4940,11 @@ export namespace DOMStorage {
4946
4940
  /**
4947
4941
  * Security origin for the storage.
4948
4942
  */
4949
- securityOrigin: string;
4943
+ securityOrigin?: string;
4944
+ /**
4945
+ * Represents a key by which DOM Storage keys its CachedStorageAreas
4946
+ */
4947
+ storageKey?: SerializedStorageKey;
4950
4948
  /**
4951
4949
  * Whether the storage is local storage (not session storage).
4952
4950
  */
@@ -4981,6 +4979,14 @@ export namespace DOMStorage {
4981
4979
  value: string;
4982
4980
  }
4983
4981
 
4982
+ export interface GetStorageKeyForFrameRequest {
4983
+ frameId: Page.FrameId;
4984
+ }
4985
+
4986
+ export interface GetStorageKeyForFrameResponse extends ProtocolResponseWithError {
4987
+ storageKey: SerializedStorageKey;
4988
+ }
4989
+
4984
4990
  export interface DomStorageItemAddedEvent {
4985
4991
  storageId: StorageId;
4986
4992
  key: string;
@@ -10978,6 +10984,38 @@ export namespace Page {
10978
10984
  */
10979
10985
  export const enum PrerenderFinalStatus {
10980
10986
  Activated = 'Activated',
10987
+ Destroyed = 'Destroyed',
10988
+ LowEndDevice = 'LowEndDevice',
10989
+ CrossOriginRedirect = 'CrossOriginRedirect',
10990
+ CrossOriginNavigation = 'CrossOriginNavigation',
10991
+ InvalidSchemeRedirect = 'InvalidSchemeRedirect',
10992
+ InvalidSchemeNavigation = 'InvalidSchemeNavigation',
10993
+ InProgressNavigation = 'InProgressNavigation',
10994
+ NavigationRequestBlockedByCsp = 'NavigationRequestBlockedByCsp',
10995
+ MainFrameNavigation = 'MainFrameNavigation',
10996
+ MojoBinderPolicy = 'MojoBinderPolicy',
10997
+ RendererProcessCrashed = 'RendererProcessCrashed',
10998
+ RendererProcessKilled = 'RendererProcessKilled',
10999
+ Download = 'Download',
11000
+ TriggerDestroyed = 'TriggerDestroyed',
11001
+ NavigationNotCommitted = 'NavigationNotCommitted',
11002
+ NavigationBadHttpStatus = 'NavigationBadHttpStatus',
11003
+ ClientCertRequested = 'ClientCertRequested',
11004
+ NavigationRequestNetworkError = 'NavigationRequestNetworkError',
11005
+ MaxNumOfRunningPrerendersExceeded = 'MaxNumOfRunningPrerendersExceeded',
11006
+ CancelAllHostsForTesting = 'CancelAllHostsForTesting',
11007
+ DidFailLoad = 'DidFailLoad',
11008
+ Stop = 'Stop',
11009
+ SslCertificateError = 'SslCertificateError',
11010
+ LoginAuthRequested = 'LoginAuthRequested',
11011
+ UaChangeRequiresReload = 'UaChangeRequiresReload',
11012
+ BlockedByClient = 'BlockedByClient',
11013
+ AudioOutputDeviceRequested = 'AudioOutputDeviceRequested',
11014
+ MixedContent = 'MixedContent',
11015
+ TriggerBackgrounded = 'TriggerBackgrounded',
11016
+ EmbedderTriggeredAndSameOriginRedirected = 'EmbedderTriggeredAndSameOriginRedirected',
11017
+ EmbedderTriggeredAndCrossOriginRedirected = 'EmbedderTriggeredAndCrossOriginRedirected',
11018
+ EmbedderTriggeredAndDestroyed = 'EmbedderTriggeredAndDestroyed',
10981
11019
  }
10982
11020
 
10983
11021
  export interface AddScriptToEvaluateOnLoadRequest {
@@ -12661,6 +12699,8 @@ export namespace ServiceWorker {
12661
12699
 
12662
12700
  export namespace Storage {
12663
12701
 
12702
+ export type SerializedStorageKey = string;
12703
+
12664
12704
  /**
12665
12705
  * Enum of possible storage types.
12666
12706
  */
@@ -560,13 +560,17 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
560
560
  Array.from(this.#modelBreakpoints.values()).map(modelBreakpoint => modelBreakpoint.scheduleUpdateInDebugger()));
561
561
  }
562
562
 
563
- remove(keepInStorage: boolean): void {
563
+ async remove(keepInStorage: boolean): Promise<void> {
564
564
  this.isRemoved = true;
565
565
  const removeFromStorage = !keepInStorage;
566
+
567
+ // Await removing for all targets.
568
+ const updatePromises: Promise<void>[] = [];
566
569
  for (const modelBreakpoint of this.#modelBreakpoints.values()) {
567
- void modelBreakpoint.scheduleUpdateInDebugger();
568
570
  modelBreakpoint.removeEventListeners();
571
+ updatePromises.push(modelBreakpoint.scheduleUpdateInDebugger());
569
572
  }
573
+ await Promise.all(updatePromises);
570
574
 
571
575
  this.breakpointManager.removeBreakpoint(this, removeFromStorage);
572
576
  this.breakpointManager.targetManager.unobserveModels(SDK.DebuggerModel.DebuggerModel, this);
@@ -578,13 +582,6 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
578
582
  this.urlInternal, this.#lineNumberInternal, this.#columnNumberInternal);
579
583
  }
580
584
 
581
- private resetLocations(): void {
582
- this.clearUISourceCodes();
583
- for (const modelBreakpoint of this.#modelBreakpoints.values()) {
584
- modelBreakpoint.resetLocations();
585
- }
586
- }
587
-
588
585
  private defaultUILocation(uiSourceCode: Workspace.UISourceCode.UISourceCode): Workspace.UISourceCode.UILocation {
589
586
  return uiSourceCode.uiLocation(this.#lineNumberInternal, this.#columnNumberInternal);
590
587
  }
@@ -782,7 +779,11 @@ export class ModelBreakpoint {
782
779
  }
783
780
 
784
781
  if (!breakpointIds.length) {
785
- this.#breakpoint.remove(true);
782
+ // Do not await the remove, as we otherwise will create a circular
783
+ // dependency. Removing breakpoints will call `scheduleUpdateInDebugger` again.
784
+ // Calling it again would cause it to await this current run of `scheduleInDebugger`, which
785
+ // will then deadlock.
786
+ void this.#breakpoint.remove(true);
786
787
  return;
787
788
  }
788
789
 
@@ -844,7 +845,7 @@ export class ModelBreakpoint {
844
845
  const breakpointLocation = this.#breakpoint.breakpointManager.findBreakpoint(uiLocation);
845
846
  if (breakpointLocation && breakpointLocation.breakpoint !== this.#breakpoint) {
846
847
  // location clash
847
- this.#breakpoint.remove(false /* keepInStorage */);
848
+ await this.#breakpoint.remove(false /* keepInStorage */);
848
849
  return;
849
850
  }
850
851
  await this.#debuggerWorkspaceBinding.createLiveLocation(
@@ -124,7 +124,7 @@ export class CompilerScriptMapping implements DebuggerSourceMapping {
124
124
  await this.#debuggerWorkspaceBinding.updateLocations(script);
125
125
  }
126
126
 
127
- static uiSourceCodeOrigin(uiSourceCode: Workspace.UISourceCode.UISourceCode): string[] {
127
+ static uiSourceCodeOrigin(uiSourceCode: Workspace.UISourceCode.UISourceCode): Platform.DevToolsPath.UrlString[] {
128
128
  const binding = uiSourceCodeToBinding.get(uiSourceCode);
129
129
  if (binding) {
130
130
  return binding.getReferringSourceMaps().map((sourceMap: SDK.SourceMap.SourceMap) => sourceMap.compiledURL());
@@ -10,31 +10,25 @@ import type {MarkdownIssueDescription} from './MarkdownIssueDescription.js';
10
10
 
11
11
  export const enum IssueCode {
12
12
  PermissionPolicyDisabled = 'AttributionReportingIssue::PermissionPolicyDisabled',
13
- InvalidAttributionSourceEventId = 'AttributionReportingIssue::InvalidAttributionSourceEventId',
14
13
  AttributionSourceUntrustworthyFrameOrigin = 'AttributionReportingIssue::AttributionSourceUntrustworthyFrameOrigin',
15
14
  AttributionSourceUntrustworthyOrigin = 'AttributionReportingIssue::AttributionSourceUntrustworthyOrigin',
16
15
  AttributionUntrustworthyFrameOrigin = 'AttributionReportingIssue::AttributionUntrustworthyFrameOrigin',
17
16
  AttributionUntrustworthyOrigin = 'AttributionReportingIssue::AttributionUntrustworthyOrigin',
18
- InvalidAttributionSourceExpiry = 'AttributionReportingIssue::InvalidAttributionSourceExpiry',
19
- InvalidAttributionSourcePriority = 'AttributionReportingIssue::InvalidAttributionSourcePriority',
17
+ InvalidHeader = 'AttributionReportingIssue::InvalidHeader',
20
18
  }
21
19
 
22
20
  function getIssueCode(details: Protocol.Audits.AttributionReportingIssueDetails): IssueCode {
23
21
  switch (details.violationType) {
24
22
  case Protocol.Audits.AttributionReportingIssueType.PermissionPolicyDisabled:
25
23
  return IssueCode.PermissionPolicyDisabled;
26
- case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourceEventId:
27
- return IssueCode.InvalidAttributionSourceEventId;
28
24
  case Protocol.Audits.AttributionReportingIssueType.AttributionSourceUntrustworthyOrigin:
29
25
  return details.frame !== undefined ? IssueCode.AttributionSourceUntrustworthyFrameOrigin :
30
26
  IssueCode.AttributionSourceUntrustworthyOrigin;
31
27
  case Protocol.Audits.AttributionReportingIssueType.AttributionUntrustworthyOrigin:
32
28
  return details.frame !== undefined ? IssueCode.AttributionUntrustworthyFrameOrigin :
33
29
  IssueCode.AttributionUntrustworthyOrigin;
34
- case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourceExpiry:
35
- return IssueCode.InvalidAttributionSourceExpiry;
36
- case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourcePriority:
37
- return IssueCode.InvalidAttributionSourcePriority;
30
+ case Protocol.Audits.AttributionReportingIssueType.InvalidHeader:
31
+ return IssueCode.InvalidHeader;
38
32
  }
39
33
  }
40
34
 
@@ -58,15 +52,6 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
58
52
  file: 'arPermissionPolicyDisabled.md',
59
53
  links: [],
60
54
  };
61
- case IssueCode.InvalidAttributionSourceEventId:
62
- return {
63
- file: 'arInvalidAttributionSourceEventId.md',
64
- links: [{
65
- link:
66
- 'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#html-attribute-attributionsourceeventid-required',
67
- linkTitle: 'attributionsourceeventid attribute',
68
- }],
69
- };
70
55
  case IssueCode.AttributionSourceUntrustworthyFrameOrigin:
71
56
  return {
72
57
  file: 'arAttributionSourceUntrustworthyFrameOrigin.md',
@@ -98,24 +83,8 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
98
83
  file: 'arAttributionUntrustworthyOrigin.md',
99
84
  links: [],
100
85
  };
101
- case IssueCode.InvalidAttributionSourceExpiry:
102
- return {
103
- file: 'arInvalidAttributionSourceExpiry.md',
104
- links: [{
105
- link:
106
- 'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#html-attribute-attributionexpiry',
107
- linkTitle: 'attributionexpiry attribute',
108
- }],
109
- };
110
- case IssueCode.InvalidAttributionSourcePriority:
111
- return {
112
- file: 'arInvalidAttributionSourcePriority.md',
113
- links: [{
114
- link:
115
- 'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#html-attribute-attributionsourcepriority',
116
- linkTitle: 'attributionsourcepriority attribute',
117
- }],
118
- };
86
+ case IssueCode.InvalidHeader:
87
+ return null;
119
88
  }
120
89
  }
121
90