chrome-devtools-frontend 1.0.923302 → 1.0.925026

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 (320) hide show
  1. package/config/gni/all_devtools_files.gni +0 -1
  2. package/config/gni/devtools_grd_files.gni +1 -3
  3. package/config/gni/devtools_image_files.gni +1 -1
  4. package/front_end/Images/src/copy_icon.svg +79 -0
  5. package/front_end/core/common/EventTarget.ts +22 -27
  6. package/front_end/core/common/Object.ts +28 -26
  7. package/front_end/core/common/Settings.ts +9 -8
  8. package/front_end/core/i18n/locales/en-US.json +18 -39
  9. package/front_end/core/i18n/locales/en-XL.json +18 -39
  10. package/front_end/core/platform/string-utilities.ts +4 -3
  11. package/front_end/core/sdk/EmulationModel.ts +1 -1
  12. package/front_end/core/sdk/NetworkManager.ts +1 -2
  13. package/front_end/core/sdk/ResourceTreeModel.ts +2 -3
  14. package/front_end/core/sdk/RuntimeModel.ts +2 -3
  15. package/front_end/core/sdk/SourceMap.ts +74 -31
  16. package/front_end/core/sdk/TargetManager.ts +9 -8
  17. package/front_end/core/sdk/TracingManager.ts +1 -1
  18. package/front_end/entrypoints/main/MainImpl.ts +1 -1
  19. package/front_end/entrypoints/node_main/NodeMain.ts +1 -1
  20. package/front_end/generated/InspectorBackendCommands.js +9 -5
  21. package/front_end/generated/protocol-mapping.d.ts +1 -0
  22. package/front_end/generated/protocol-proxy-api.d.ts +1 -0
  23. package/front_end/generated/protocol.d.ts +13 -2
  24. package/front_end/legacy_test_runner/application_test_runner/application_test_runner.js +0 -1
  25. package/front_end/models/bindings/CompilerScriptMapping.ts +24 -6
  26. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +30 -30
  27. package/front_end/models/extensions/ExtensionServer.ts +10 -13
  28. package/front_end/models/workspace/WorkspaceImpl.ts +1 -1
  29. package/front_end/models/workspace_diff/WorkspaceDiff.ts +24 -20
  30. package/front_end/panels/animation/AnimationModel.ts +6 -1
  31. package/front_end/panels/animation/AnimationTimeline.ts +2 -2
  32. package/front_end/panels/application/AppManifestView.ts +58 -20
  33. package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -59
  34. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -163
  35. package/front_end/panels/application/BackgroundServiceModel.ts +6 -1
  36. package/front_end/panels/application/BackgroundServiceView.ts +4 -4
  37. package/front_end/panels/application/DOMStorageItemsView.ts +2 -2
  38. package/front_end/panels/application/DatabaseModel.ts +6 -1
  39. package/front_end/panels/application/DatabaseTableView.ts +1 -1
  40. package/front_end/panels/application/IndexedDBModel.ts +9 -1
  41. package/front_end/panels/application/IndexedDBViews.ts +7 -8
  42. package/front_end/panels/application/ServiceWorkerCacheViews.ts +2 -2
  43. package/front_end/panels/application/ServiceWorkersView.ts +3 -3
  44. package/front_end/panels/application/StorageItemsView.ts +2 -3
  45. package/front_end/panels/application/StorageView.ts +0 -13
  46. package/front_end/panels/application/appManifestView.css +8 -0
  47. package/front_end/panels/application/application-legacy.ts +0 -3
  48. package/front_end/panels/application/application.ts +0 -4
  49. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  50. package/front_end/panels/console/ConsolePinPane.ts +1 -2
  51. package/front_end/panels/console/ConsoleSidebar.ts +2 -2
  52. package/front_end/panels/console/ConsoleView.ts +7 -6
  53. package/front_end/panels/console/ConsoleViewMessage.ts +4 -3
  54. package/front_end/panels/coverage/CoverageModel.ts +9 -3
  55. package/front_end/panels/coverage/CoverageView.ts +3 -2
  56. package/front_end/panels/css_overview/CSSOverviewModel.ts +1 -1
  57. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
  58. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
  59. package/front_end/panels/elements/ElementsPanel.ts +3 -3
  60. package/front_end/panels/elements/StylePropertyTreeElement.ts +14 -4
  61. package/front_end/panels/elements/StylesSidebarPane.ts +4 -2
  62. package/front_end/panels/input/InputModel.ts +1 -1
  63. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +2 -4
  64. package/front_end/panels/issues/HiddenIssuesRow.ts +7 -12
  65. package/front_end/panels/layers/LayerTreeModel.ts +6 -1
  66. package/front_end/panels/layers/LayersPanel.ts +3 -4
  67. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -0
  68. package/front_end/panels/media/MainView.ts +22 -19
  69. package/front_end/panels/media/MediaModel.ts +15 -7
  70. package/front_end/panels/media/PlayerMessagesView.ts +2 -4
  71. package/front_end/panels/network/NetworkPanel.ts +6 -6
  72. package/front_end/panels/network/RequestHeadersView.ts +7 -0
  73. package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -2
  74. package/front_end/panels/network/networkLogView.css +5 -0
  75. package/front_end/panels/profiler/HeapProfileView.ts +14 -4
  76. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +14 -1
  77. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +11 -3
  78. package/front_end/panels/profiler/HeapSnapshotView.ts +67 -32
  79. package/front_end/panels/profiler/LiveHeapProfileView.ts +2 -2
  80. package/front_end/panels/profiler/ProfileHeader.ts +11 -2
  81. package/front_end/panels/profiler/ProfileView.ts +3 -3
  82. package/front_end/panels/profiler/ProfilesPanel.ts +7 -6
  83. package/front_end/panels/screencast/InputModel.ts +1 -1
  84. package/front_end/panels/screencast/ScreencastView.ts +1 -1
  85. package/front_end/panels/security/SecurityModel.ts +5 -1
  86. package/front_end/panels/security/SecurityPanel.ts +1 -2
  87. package/front_end/panels/sensors/SensorsView.ts +3 -2
  88. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +6 -3
  89. package/front_end/panels/sources/CSSPlugin.ts +1 -1
  90. package/front_end/panels/sources/DebuggerPlugin.ts +6 -4
  91. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +1 -1
  92. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +1 -1
  93. package/front_end/panels/sources/SourcesPanel.ts +2 -2
  94. package/front_end/panels/timeline/TimelineFlameChartView.ts +5 -8
  95. package/front_end/panels/timeline/TimelineUIUtils.ts +1 -2
  96. package/front_end/panels/web_audio/AudioContextSelector.ts +4 -6
  97. package/front_end/panels/web_audio/WebAudioModel.ts +19 -1
  98. package/front_end/panels/web_audio/WebAudioView.ts +28 -22
  99. package/front_end/panels/web_audio/graph_visualizer/graph_visualizer.ts +0 -7
  100. package/front_end/panels/web_audio/web_audio.ts +1 -23
  101. package/front_end/panels/webauthn/WebauthnPane.ts +20 -10
  102. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +598 -595
  103. package/front_end/third_party/lighthouse/locales/en-US.json +6 -0
  104. package/front_end/third_party/lighthouse/locales/en-XL.json +6 -0
  105. package/front_end/third_party/lighthouse/report/bundle.d.ts +25 -4
  106. package/front_end/third_party/lighthouse/report/bundle.js +111 -22
  107. package/front_end/third_party/lighthouse/report-assets/report.css +120 -12
  108. package/front_end/third_party/lighthouse/report-assets/report.js +10 -10
  109. package/front_end/third_party/puppeteer/README.chromium +1 -1
  110. package/front_end/third_party/puppeteer/package/CHANGELOG.md +66 -0
  111. package/front_end/third_party/puppeteer/package/README.md +34 -13
  112. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +5 -5
  114. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  115. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +18 -2
  116. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +8 -3
  118. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +2 -2
  120. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +2 -2
  121. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +22 -6
  122. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +14 -7
  124. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +1 -0
  126. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +10 -6
  128. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
  129. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
  130. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js +120 -0
  131. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
  132. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -1
  133. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -1
  134. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  135. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +2 -2
  136. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +62 -3
  138. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  139. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +131 -3
  140. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  141. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +40 -0
  142. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +76 -0
  144. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +53 -2
  146. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +82 -13
  148. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  149. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +2 -1
  150. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  151. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +14 -2
  152. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  153. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +5 -0
  154. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
  155. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +1053 -29
  157. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  158. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +1114 -22
  159. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  160. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
  161. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +17 -6
  162. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts +1 -0
  164. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts.map +1 -1
  165. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js +6 -1
  166. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js.map +1 -1
  167. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts +21 -5
  168. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
  169. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +47 -28
  170. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.d.ts +17 -0
  172. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.d.ts.map +1 -0
  173. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.js +3 -0
  174. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.js.map +1 -0
  175. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  176. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +9 -10
  177. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  178. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +5 -2
  180. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +10 -2
  182. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  183. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +1 -1
  184. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
  185. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +83 -6
  186. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  187. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  188. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +7 -1
  189. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  190. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +1 -1
  191. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
  192. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +2 -2
  193. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
  194. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
  195. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +17 -3
  196. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
  197. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  198. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  199. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +5 -5
  200. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +18 -2
  202. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +8 -3
  204. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +2 -2
  206. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +2 -2
  207. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +22 -6
  208. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
  209. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +14 -7
  210. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
  211. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +1 -0
  212. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
  213. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +10 -6
  214. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
  215. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +120 -0
  217. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -1
  219. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -1
  220. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  221. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +2 -2
  222. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  223. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +62 -3
  224. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  225. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +131 -3
  226. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  227. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +40 -0
  228. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
  229. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +76 -0
  230. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
  231. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +53 -2
  232. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  233. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +82 -13
  234. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  235. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +2 -1
  236. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  237. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +14 -2
  238. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  239. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +5 -0
  240. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
  241. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
  242. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +1053 -29
  243. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  244. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +1115 -23
  245. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  246. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
  247. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +17 -6
  248. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js.map +1 -1
  249. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +1 -0
  250. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -1
  251. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +4 -0
  252. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js.map +1 -1
  253. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +21 -5
  254. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
  255. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +32 -13
  256. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
  257. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.d.ts +17 -0
  258. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.d.ts.map +1 -0
  259. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.js +2 -0
  260. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.js.map +1 -0
  261. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  262. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +9 -10
  263. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  264. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  265. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +5 -2
  266. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  267. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +10 -2
  268. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  269. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +1 -1
  270. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
  271. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +83 -6
  272. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  273. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  274. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +7 -1
  275. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  276. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +1 -1
  277. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
  278. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +2 -2
  279. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
  280. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -1
  281. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +17 -3
  282. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +1 -1
  283. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  284. package/front_end/third_party/puppeteer/package/lib/types.d.ts +1382 -19726
  285. package/front_end/third_party/puppeteer/package/package.json +9 -6
  286. package/front_end/third_party/wasmparser/README.chromium +2 -2
  287. package/front_end/third_party/wasmparser/package/CHANGELOG.md +13 -0
  288. package/front_end/third_party/wasmparser/package/dist/cjs/WasmDis.js +50 -10
  289. package/front_end/third_party/wasmparser/package/dist/cjs/WasmDis.js.map +1 -1
  290. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.d.ts +21 -4
  291. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +76 -8
  292. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
  293. package/front_end/third_party/wasmparser/package/dist/esm/WasmDis.js +50 -10
  294. package/front_end/third_party/wasmparser/package/dist/esm/WasmDis.js.map +1 -1
  295. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.d.ts +21 -4
  296. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +76 -8
  297. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
  298. package/front_end/third_party/wasmparser/package/package.json +1 -1
  299. package/front_end/third_party/wasmparser/package/src/WasmDis.ts +47 -10
  300. package/front_end/third_party/wasmparser/package/src/WasmParser.ts +75 -5
  301. package/front_end/ui/components/icon_button/iconButton.css +4 -0
  302. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +2 -6
  303. package/front_end/ui/legacy/FilterBar.ts +1 -1
  304. package/front_end/ui/legacy/GlassPane.ts +1 -3
  305. package/front_end/ui/legacy/SplitWidget.ts +1 -1
  306. package/front_end/ui/legacy/UIUtils.ts +3 -4
  307. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +3 -3
  308. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +1 -1
  309. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +15 -6
  310. package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +7 -1
  311. package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +6 -2
  312. package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
  313. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +1 -1
  314. package/front_end/ui/legacy/reportView.css +1 -0
  315. package/package.json +1 -1
  316. package/scripts/build/rollup.config.js +0 -5
  317. package/front_end/Images/src/exclamation_mark_circle_icon.svg +0 -65
  318. package/front_end/legacy_test_runner/application_test_runner/AppcacheTestRunner.js +0 -220
  319. package/front_end/panels/application/ApplicationCacheItemsView.ts +0 -335
  320. package/front_end/panels/application/ApplicationCacheModel.ts +0 -206
@@ -19,7 +19,6 @@ all_devtools_files = [
19
19
  "front_end/panels/accessibility/module.json",
20
20
  "front_end/legacy_test_runner/application_test_runner/application_test_runner.js",
21
21
  "front_end/legacy_test_runner/bindings_test_runner/bindings_test_runner.js",
22
- "front_end/legacy_test_runner/application_test_runner/AppcacheTestRunner.js",
23
22
  "front_end/legacy_test_runner/application_test_runner/CacheStorageTestRunner.js",
24
23
  "front_end/legacy_test_runner/application_test_runner/IndexedDBTestRunner.js",
25
24
  "front_end/legacy_test_runner/application_test_runner/ResourcesTestRunner.js",
@@ -46,12 +46,12 @@ grd_files_release_sources = [
46
46
  "front_end/Images/chromeSelect.svg",
47
47
  "front_end/Images/chromeSelectDark.svg",
48
48
  "front_end/Images/close-icon.svg",
49
+ "front_end/Images/copy_icon.svg",
49
50
  "front_end/Images/cssoverview_icons_2x.avif",
50
51
  "front_end/Images/dropdown_7x6_icon.svg",
51
52
  "front_end/Images/elements_panel_icon.svg",
52
53
  "front_end/Images/errorWave.svg",
53
54
  "front_end/Images/error_icon.svg",
54
- "front_end/Images/exclamation_mark_circle_icon.svg",
55
55
  "front_end/Images/feedback_thin_16x16_icon.svg",
56
56
  "front_end/Images/flex-direction-icon.svg",
57
57
  "front_end/Images/flex-nowrap-icon.svg",
@@ -788,8 +788,6 @@ grd_files_debug_sources = [
788
788
  "front_end/panels/animation/animationScreenshotPopover.css.js",
789
789
  "front_end/panels/animation/animationTimeline.css.js",
790
790
  "front_end/panels/application/AppManifestView.js",
791
- "front_end/panels/application/ApplicationCacheItemsView.js",
792
- "front_end/panels/application/ApplicationCacheModel.js",
793
791
  "front_end/panels/application/ApplicationPanelCacheSection.js",
794
792
  "front_end/panels/application/ApplicationPanelSidebar.js",
795
793
  "front_end/panels/application/ApplicationPanelTreeElement.js",
@@ -59,11 +59,11 @@ devtools_svg_sources = [
59
59
  "chromeSelect.svg",
60
60
  "chromeSelectDark.svg",
61
61
  "close-icon.svg",
62
+ "copy_icon.svg",
62
63
  "dropdown_7x6_icon.svg",
63
64
  "elements_panel_icon.svg",
64
65
  "errorWave.svg",
65
66
  "error_icon.svg",
66
- "exclamation_mark_circle_icon.svg",
67
67
  "feedback_thin_16x16_icon.svg",
68
68
  "flex-direction-icon.svg",
69
69
  "flex-nowrap-icon.svg",
@@ -0,0 +1,79 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ width="4.1506615mm"
11
+ height="4.1506615mm"
12
+ viewBox="0 0 4.1506615 4.1506615"
13
+ version="1.1"
14
+ id="svg349"
15
+ inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
16
+ sodipodi:docname="copy_icon.svg">
17
+ <defs
18
+ id="defs343" />
19
+ <sodipodi:namedview
20
+ id="base"
21
+ pagecolor="#ffffff"
22
+ bordercolor="#666666"
23
+ borderopacity="1.0"
24
+ inkscape:pageopacity="0.0"
25
+ inkscape:pageshadow="2"
26
+ inkscape:zoom="78.023708"
27
+ inkscape:cx="5.4855121"
28
+ inkscape:cy="7.8437697"
29
+ inkscape:document-units="mm"
30
+ inkscape:current-layer="layer1"
31
+ inkscape:document-rotation="0"
32
+ showgrid="false"
33
+ fit-margin-top="0"
34
+ fit-margin-left="0"
35
+ fit-margin-right="0"
36
+ fit-margin-bottom="0"
37
+ inkscape:window-width="1878"
38
+ inkscape:window-height="1456"
39
+ inkscape:window-x="0"
40
+ inkscape:window-y="0"
41
+ inkscape:window-maximized="1" />
42
+ <metadata
43
+ id="metadata346">
44
+ <rdf:RDF>
45
+ <cc:Work
46
+ rdf:about="">
47
+ <dc:format>image/svg+xml</dc:format>
48
+ <dc:type
49
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
50
+ <dc:title></dc:title>
51
+ </cc:Work>
52
+ </rdf:RDF>
53
+ </metadata>
54
+ <g
55
+ inkscape:label="Layer 1"
56
+ inkscape:groupmode="layer"
57
+ id="layer1"
58
+ transform="translate(-28.918717,-80.323479)">
59
+ <g
60
+ transform="matrix(0.26458333,0,0,0.26458333,27.841598,79.114862)"
61
+ id="g98">
62
+ <g
63
+ id="g102"
64
+ style="fill-rule:evenodd">
65
+ <path
66
+ transform="matrix(0.87153,0,0,0.87153,4.071,4.568)"
67
+ d="M 0,0 H 18 V 18 H 0 Z"
68
+ id="path104"
69
+ inkscape:connector-curvature="0"
70
+ style="fill:none" />
71
+ <path
72
+ transform="matrix(0.87153,0,0,0.87153,4.071,4.568)"
73
+ d="M 12,3.5 A 1.505,1.505 0 0 0 10.494,2 H 4.506 C 3.676,2 3,2.674 3,3.506 v 7.988 C 3,12.326 3.671,12.997 4.5,13 V 3.5 Z M 6,6.506 C 6,5.674 6.676,5 7.506,5 h 5.988 C 14.326,5 15,5.672 15,6.506 v 7.988 C 15,15.326 14.324,16 13.494,16 H 7.506 A 1.505,1.505 0 0 1 6,14.494 Z M 7.5,6.5 h 6 v 8 h -6 z"
74
+ id="path106"
75
+ inkscape:connector-curvature="0" />
76
+ </g>
77
+ </g>
78
+ </g>
79
+ </svg>
@@ -4,14 +4,12 @@
4
4
 
5
5
  import type * as Platform from '../platform/platform.js';
6
6
 
7
- // TODO(crbug.com/1228674) Remove defaults for generic type parameters once
8
- // all event emitters and sinks have been migrated.
9
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
- export interface EventDescriptor<Events = any, T extends EventType<Events> = any> {
8
+ export interface EventDescriptor<Events = any, T extends keyof Events = any> {
11
9
  eventTarget: EventTarget<Events>;
12
10
  eventType: T;
13
11
  thisObject?: Object;
14
- listener: (arg0: EventTargetEvent<EventPayload<Events, T>>) => void;
12
+ listener: EventListener<Events, T>;
15
13
  }
16
14
 
17
15
  export function removeEventListeners(eventList: EventDescriptor[]): void {
@@ -22,36 +20,33 @@ export function removeEventListeners(eventList: EventDescriptor[]): void {
22
20
  eventList.splice(0);
23
21
  }
24
22
 
25
- // TODO(crbug.com/1228674): Once all event emitters and sinks have been migrated
26
- // we can use:
27
- // export type EventType<Events> = keyof Events;
28
- // export type EventPayload<Events, T> = Events[T];
29
- export type EventType<Events> = Events extends Object ? keyof Events : Events extends void ? never : string|symbol;
30
- export type EventPayload<Events, T> = T extends keyof Events ? Events[T] : unknown;
31
- export type EventPayloadToRestParameters<T> = T extends void ? [] : [T];
23
+ // This type can be used as the type parameter for `EventTarget`/`ObjectWrapper`
24
+ // when the set of events is not known at compile time.
25
+ export type GenericEvents = {
26
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
+ [eventName: string]: any,
28
+ };
32
29
 
33
- // TODO(crbug.com/1228674) Remove defaults for generic type parameters once
34
- // all event emitters and sinks have been migrated.
35
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
36
- export interface EventTarget<Events = any> {
37
- addEventListener<T extends EventType<Events>>(
38
- eventType: T, listener: (arg0: EventTargetEvent<EventPayload<Events, T>>) => void,
39
- thisObject?: Object): EventDescriptor<Events, T>;
40
- once<T extends EventType<Events>>(eventType: T): Promise<EventPayload<Events, T>>;
41
- removeEventListener<T extends EventType<Events>>(
42
- eventType: T, listener: (arg0: EventTargetEvent<EventPayload<Events, T>>) => void, thisObject?: Object): void;
43
- hasEventListeners(eventType: EventType<Events>): boolean;
44
- dispatchEventToListeners<T extends EventType<Events>>(
30
+ export type EventPayloadToRestParameters<Events, T extends keyof Events> = Events[T] extends void ? [] : [Events[T]];
31
+ export type EventListener<Events, T extends keyof Events> = (arg0: EventTargetEvent<Events[T]>) => void;
32
+
33
+ export interface EventTarget<Events> {
34
+ addEventListener<T extends keyof Events>(eventType: T, listener: EventListener<Events, T>, thisObject?: Object):
35
+ EventDescriptor<Events, T>;
36
+ once<T extends keyof Events>(eventType: T): Promise<Events[T]>;
37
+ removeEventListener<T extends keyof Events>(eventType: T, listener: EventListener<Events, T>, thisObject?: Object):
38
+ void;
39
+ hasEventListeners(eventType: keyof Events): boolean;
40
+ dispatchEventToListeners<T extends keyof Events>(
45
41
  eventType: Platform.TypeScriptUtilities.NoUnion<T>,
46
- ...[eventData]: EventPayloadToRestParameters<EventPayload<Events, T>>): void;
42
+ ...[eventData]: EventPayloadToRestParameters<Events, T>): void;
47
43
  }
48
44
 
49
45
  export function fireEvent(name: string, detail: unknown = {}, target: HTMLElement|Window = window): void {
50
46
  const evt = new CustomEvent(name, {bubbles: true, cancelable: true, detail});
51
47
  target.dispatchEvent(evt);
52
48
  }
53
- // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
54
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
55
- export interface EventTargetEvent<T = any> {
49
+
50
+ export interface EventTargetEvent<T> {
56
51
  data: T;
57
52
  }
@@ -28,23 +28,20 @@
28
28
  */
29
29
 
30
30
  import type * as Platform from '../platform/platform.js';
31
- import type {EventDescriptor, EventTarget, EventTargetEvent, EventType, EventPayload, EventPayloadToRestParameters} from './EventTarget.js';
31
+ import type {EventDescriptor, EventListener, EventTarget, EventTargetEvent, EventPayloadToRestParameters} from './EventTarget.js';
32
32
 
33
- export interface ListenerCallbackTuple {
33
+ export interface ListenerCallbackTuple<Events, T extends keyof Events> {
34
34
  thisObject?: Object;
35
- listener: (arg0: EventTargetEvent) => void;
35
+ listener: EventListener<Events, T>;
36
36
  disposed?: boolean;
37
37
  }
38
38
 
39
- // TODO(crbug.com/1228674) Remove defaults for generic type parameters once
40
- // all event emitters and sinks have been migrated.
41
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
- export class ObjectWrapper<Events = any> implements EventTarget<Events> {
43
- listeners?: Map<EventType<Events>, Set<ListenerCallbackTuple>>;
39
+ export class ObjectWrapper<Events> implements EventTarget<Events> {
40
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
41
+ listeners?: Map<keyof Events, Set<ListenerCallbackTuple<Events, any>>>;
44
42
 
45
- addEventListener<T extends EventType<Events>>(
46
- eventType: T, listener: (arg0: EventTargetEvent<EventPayload<Events, T>>) => void,
47
- thisObject?: Object): EventDescriptor<Events, T> {
43
+ addEventListener<T extends keyof Events>(eventType: T, listener: EventListener<Events, T>, thisObject?: Object):
44
+ EventDescriptor<Events, T> {
48
45
  if (!this.listeners) {
49
46
  this.listeners = new Map();
50
47
  }
@@ -58,7 +55,7 @@ export class ObjectWrapper<Events = any> implements EventTarget<Events> {
58
55
  return {eventTarget: this, eventType, thisObject, listener};
59
56
  }
60
57
 
61
- once<T extends EventType<Events>>(eventType: T): Promise<EventPayload<Events, T>> {
58
+ once<T extends keyof Events>(eventType: T): Promise<Events[T]> {
62
59
  return new Promise(resolve => {
63
60
  const descriptor = this.addEventListener(eventType, event => {
64
61
  this.removeEventListener(eventType, descriptor.listener);
@@ -67,8 +64,8 @@ export class ObjectWrapper<Events = any> implements EventTarget<Events> {
67
64
  });
68
65
  }
69
66
 
70
- removeEventListener<T extends EventType<Events>>(
71
- eventType: T, listener: (arg0: EventTargetEvent<EventPayload<Events, T>>) => void, thisObject?: Object): void {
67
+ removeEventListener<T extends keyof Events>(eventType: T, listener: EventListener<Events, T>, thisObject?: Object):
68
+ void {
72
69
  const listeners = this.listeners?.get(eventType);
73
70
  if (!listeners) {
74
71
  return;
@@ -85,18 +82,23 @@ export class ObjectWrapper<Events = any> implements EventTarget<Events> {
85
82
  }
86
83
  }
87
84
 
88
- hasEventListeners(eventType: EventType<Events>): boolean {
85
+ hasEventListeners(eventType: keyof Events): boolean {
89
86
  return Boolean(this.listeners && this.listeners.has(eventType));
90
87
  }
91
88
 
92
- dispatchEventToListeners<T extends EventType<Events>>(
89
+ dispatchEventToListeners<T extends keyof Events>(
93
90
  eventType: Platform.TypeScriptUtilities.NoUnion<T>,
94
- ...[eventData]: EventPayloadToRestParameters<EventPayload<Events, T>>): void {
91
+ ...[eventData]: EventPayloadToRestParameters<Events, T>): void {
95
92
  const listeners = this.listeners?.get(eventType);
96
93
  if (!listeners) {
97
94
  return;
98
95
  }
99
- const event = {data: eventData};
96
+ // `eventData` is typed as `Events[T] | undefined`:
97
+ // - `undefined` when `Events[T]` is void.
98
+ // - `Events[T]` otherwise.
99
+ // We cast it to `Events[T]` which is the correct type in all instances, as
100
+ // `void` will be cast and used as `undefined`.
101
+ const event = {data: eventData as Events[T]};
100
102
  // Work on a snapshot of the current listeners, callbacks might remove/add
101
103
  // new listeners.
102
104
  for (const listener of [...listeners]) {
@@ -115,28 +117,28 @@ export function eventMixin<Events, Base extends Constructor>(base: Base) {
115
117
  return class EventHandling extends base implements EventTarget<Events> {
116
118
  #events = new ObjectWrapper<Events>();
117
119
 
118
- addEventListener<T extends EventType<Events>>(
119
- eventType: T, listener: (arg0: EventTargetEvent<EventPayload<Events, T>>) => void,
120
+ addEventListener<T extends keyof Events>(
121
+ eventType: T, listener: (arg0: EventTargetEvent<Events[T]>) => void,
120
122
  thisObject?: Object): EventDescriptor<Events, T> {
121
123
  return this.#events.addEventListener(eventType, listener, thisObject);
122
124
  }
123
125
 
124
- once<T extends EventType<Events>>(eventType: T): Promise<EventPayload<Events, T>> {
126
+ once<T extends keyof Events>(eventType: T): Promise<Events[T]> {
125
127
  return this.#events.once(eventType);
126
128
  }
127
129
 
128
- removeEventListener<T extends EventType<Events>>(
129
- eventType: T, listener: (arg0: EventTargetEvent<EventPayload<Events, T>>) => void, thisObject?: Object): void {
130
+ removeEventListener<T extends keyof Events>(
131
+ eventType: T, listener: (arg0: EventTargetEvent<Events[T]>) => void, thisObject?: Object): void {
130
132
  this.#events.removeEventListener(eventType, listener, thisObject);
131
133
  }
132
134
 
133
- hasEventListeners(eventType: EventType<Events>): boolean {
135
+ hasEventListeners(eventType: keyof Events): boolean {
134
136
  return this.#events.hasEventListeners(eventType);
135
137
  }
136
138
 
137
- dispatchEventToListeners<T extends EventType<Events>>(
139
+ dispatchEventToListeners<T extends keyof Events>(
138
140
  eventType: Platform.TypeScriptUtilities.NoUnion<T>,
139
- ...eventData: EventPayloadToRestParameters<EventPayload<Events, T>>): void {
141
+ ...eventData: EventPayloadToRestParameters<Events, T>): void {
140
142
  this.#events.dispatchEventToListeners(eventType, ...eventData);
141
143
  }
142
144
  };
@@ -34,7 +34,7 @@ import * as Root from '../root/root.js';
34
34
  import type {Color} from './Color.js';
35
35
  import {Format} from './Color.js';
36
36
  import {Console} from './Console.js';
37
- import type {EventDescriptor, EventTargetEvent} from './EventTarget.js';
37
+ import type {GenericEvents, EventDescriptor, EventTargetEvent} from './EventTarget.js';
38
38
  import {ObjectWrapper} from './Object.js';
39
39
  import {getLocalizedSettingsCategory, getRegisteredSettings, maybeRemoveSettingExtension, RegExpSettingItem, registerSettingExtension, registerSettingsForTest, resetSettings, SettingCategory, SettingExtensionOption, SettingRegistration, SettingType} from './SettingRegistration.js';
40
40
 
@@ -46,7 +46,7 @@ export class Settings {
46
46
  private readonly sessionStorage: SettingsStorage;
47
47
  settingNameSet: Set<string>;
48
48
  orderValuesBySettingCategory: Map<SettingCategory, Set<number>>;
49
- private eventSupport: ObjectWrapper;
49
+ private eventSupport: ObjectWrapper<GenericEvents>;
50
50
  private registry: Map<string, Setting<unknown>>;
51
51
  readonly moduleSettings: Map<string, Setting<unknown>>;
52
52
 
@@ -59,7 +59,7 @@ export class Settings {
59
59
 
60
60
  this.orderValuesBySettingCategory = new Map();
61
61
 
62
- this.eventSupport = new ObjectWrapper();
62
+ this.eventSupport = new ObjectWrapper<GenericEvents>();
63
63
  this.registry = new Map();
64
64
  this.moduleSettings = new Map();
65
65
 
@@ -276,7 +276,7 @@ function removeSetting(setting: Setting<unknown>): void {
276
276
  export class Setting<V> {
277
277
  private nameInternal: string;
278
278
  private defaultValueInternal: V;
279
- private readonly eventSupport: ObjectWrapper;
279
+ private readonly eventSupport: ObjectWrapper<GenericEvents>;
280
280
  private storage: SettingsStorage;
281
281
  private titleFunction!: () => Platform.UIString.LocalizedString;
282
282
  private titleInternal!: string;
@@ -287,7 +287,7 @@ export class Setting<V> {
287
287
  private serializer: Serializer<unknown, V> = JSON;
288
288
  private hadUserAction?: boolean;
289
289
 
290
- constructor(name: string, defaultValue: V, eventSupport: ObjectWrapper, storage: SettingsStorage) {
290
+ constructor(name: string, defaultValue: V, eventSupport: ObjectWrapper<GenericEvents>, storage: SettingsStorage) {
291
291
  this.nameInternal = name;
292
292
  this.defaultValueInternal = defaultValue;
293
293
  this.eventSupport = eventSupport;
@@ -299,11 +299,11 @@ export class Setting<V> {
299
299
  this.serializer = serializer;
300
300
  }
301
301
 
302
- addChangeListener(listener: (arg0: EventTargetEvent) => void, thisObject?: Object): EventDescriptor {
302
+ addChangeListener(listener: (arg0: EventTargetEvent<V>) => void, thisObject?: Object): EventDescriptor {
303
303
  return this.eventSupport.addEventListener(this.nameInternal, listener, thisObject);
304
304
  }
305
305
 
306
- removeChangeListener(listener: (arg0: EventTargetEvent) => void, thisObject?: Object): void {
306
+ removeChangeListener(listener: (arg0: EventTargetEvent<V>) => void, thisObject?: Object): void {
307
307
  this.eventSupport.removeEventListener(this.nameInternal, listener, thisObject);
308
308
  }
309
309
 
@@ -449,7 +449,8 @@ export class RegExpSetting extends Setting<any> {
449
449
  private regex?: RegExp|null;
450
450
 
451
451
  constructor(
452
- name: string, defaultValue: string, eventSupport: ObjectWrapper, storage: SettingsStorage, regexFlags?: string) {
452
+ name: string, defaultValue: string, eventSupport: ObjectWrapper<GenericEvents>, storage: SettingsStorage,
453
+ regexFlags?: string) {
453
454
  super(name, defaultValue ? [{pattern: defaultValue}] : [], eventSupport, storage);
454
455
  this.regexFlags = regexFlags;
455
456
  }
@@ -2003,33 +2003,6 @@
2003
2003
  "panels/application/application-meta.ts | stopRecordingEvents": {
2004
2004
  "message": "Stop recording events"
2005
2005
  },
2006
- "panels/application/ApplicationCacheItemsView.ts | appcache": {
2007
- "message": "AppCache"
2008
- },
2009
- "panels/application/ApplicationCacheItemsView.ts | applicationCache": {
2010
- "message": "Application Cache"
2011
- },
2012
- "panels/application/ApplicationCacheItemsView.ts | deleteString": {
2013
- "message": "Delete"
2014
- },
2015
- "panels/application/ApplicationCacheItemsView.ts | noApplicationCacheInformation": {
2016
- "message": "No Application Cache information available."
2017
- },
2018
- "panels/application/ApplicationCacheItemsView.ts | offline": {
2019
- "message": "Offline"
2020
- },
2021
- "panels/application/ApplicationCacheItemsView.ts | online": {
2022
- "message": "Online"
2023
- },
2024
- "panels/application/ApplicationCacheItemsView.ts | resource": {
2025
- "message": "Resource"
2026
- },
2027
- "panels/application/ApplicationCacheItemsView.ts | sizeString": {
2028
- "message": "Size"
2029
- },
2030
- "panels/application/ApplicationCacheItemsView.ts | typeString": {
2031
- "message": "Type"
2032
- },
2033
2006
  "panels/application/ApplicationPanelCacheSection.ts | backForwardCache": {
2034
2007
  "message": "Back-forward Cache"
2035
2008
  },
@@ -2045,9 +2018,6 @@
2045
2018
  "panels/application/ApplicationPanelSidebar.ts | application": {
2046
2019
  "message": "Application"
2047
2020
  },
2048
- "panels/application/ApplicationPanelSidebar.ts | applicationCache": {
2049
- "message": "Application Cache"
2050
- },
2051
2021
  "panels/application/ApplicationPanelSidebar.ts | backgroundServices": {
2052
2022
  "message": "Background Services"
2053
2023
  },
@@ -2126,14 +2096,11 @@
2126
2096
  "panels/application/AppManifestView.ts | actualWidthSpxOfSSDoesNotMatch": {
2127
2097
  "message": "Actual width ({PH1}px) of {PH2} {PH3} does not match specified width ({PH4}px)"
2128
2098
  },
2129
- "panels/application/AppManifestView.ts | appId": {
2130
- "message": "App Id"
2131
- },
2132
2099
  "panels/application/AppManifestView.ts | appIdExplainer": {
2133
2100
  "message": "This is used by the browser to know whether the manifest should be updating an existing application, or whether it refers to a new web app that can be installed."
2134
2101
  },
2135
2102
  "panels/application/AppManifestView.ts | appIdNote": {
2136
- "message": "Note: 'id' is not specified in the manifest, 'start_url' is used instead. To specify an App Id that matches the current identity, set the 'id' field to ''{PH1}''."
2103
+ "message": "{PH1} {PH2} is not specified in the manifest, {PH3} is used instead. To specify an App Id that matches the current identity, set the {PH4} field to {PH5} {PH6}."
2137
2104
  },
2138
2105
  "panels/application/AppManifestView.ts | appManifest": {
2139
2106
  "message": "App Manifest"
@@ -2147,6 +2114,12 @@
2147
2114
  "panels/application/AppManifestView.ts | backgroundColor": {
2148
2115
  "message": "Background color"
2149
2116
  },
2117
+ "panels/application/AppManifestView.ts | computedAppId": {
2118
+ "message": "Computed App Id"
2119
+ },
2120
+ "panels/application/AppManifestView.ts | copyToClipboard": {
2121
+ "message": "Copy to clipboard"
2122
+ },
2150
2123
  "panels/application/AppManifestView.ts | couldNotCheckServiceWorker": {
2151
2124
  "message": "Could not check service worker without a 'start_url' field in the manifest"
2152
2125
  },
@@ -2186,6 +2159,9 @@
2186
2159
  "panels/application/AppManifestView.ts | installability": {
2187
2160
  "message": "Installability"
2188
2161
  },
2162
+ "panels/application/AppManifestView.ts | learnMore": {
2163
+ "message": "Learn more"
2164
+ },
2189
2165
  "panels/application/AppManifestView.ts | manifestContainsDisplayoverride": {
2190
2166
  "message": "Manifest contains 'display_override' field, and the first supported display mode must be one of 'standalone', 'fullscreen', or 'minimal-ui'"
2191
2167
  },
@@ -2228,6 +2204,9 @@
2228
2204
  "panels/application/AppManifestView.ts | noSuppliedIconIsAtLeastSpxSquare": {
2229
2205
  "message": "No supplied icon is at least {PH1} pixels square in PNG, SVG or WebP format, with the purpose attribute unset or set to \"any\"."
2230
2206
  },
2207
+ "panels/application/AppManifestView.ts | note": {
2208
+ "message": "Note:"
2209
+ },
2231
2210
  "panels/application/AppManifestView.ts | orientation": {
2232
2211
  "message": "Orientation"
2233
2212
  },
@@ -3029,9 +3008,6 @@
3029
3008
  "panels/application/StorageView.ts | application": {
3030
3009
  "message": "Application"
3031
3010
  },
3032
- "panels/application/StorageView.ts | applicationCache": {
3033
- "message": "Application cache"
3034
- },
3035
3011
  "panels/application/StorageView.ts | cache": {
3036
3012
  "message": "Cache"
3037
3013
  },
@@ -4952,8 +4928,8 @@
4952
4928
  "panels/issues/HiddenIssuesRow.ts | hiddenIssues": {
4953
4929
  "message": "Hidden issues"
4954
4930
  },
4955
- "panels/issues/HiddenIssuesRow.ts | unhideIssues": {
4956
- "message": "Unhide all issues"
4931
+ "panels/issues/HiddenIssuesRow.ts | unhideAll": {
4932
+ "message": "Unhide all"
4957
4933
  },
4958
4934
  "panels/issues/issues-meta.ts | cspViolations": {
4959
4935
  "message": "CSP Violations"
@@ -6620,6 +6596,9 @@
6620
6596
  "panels/network/RequestHeadersView.ts | fromSignedexchange": {
6621
6597
  "message": "(from signed-exchange)"
6622
6598
  },
6599
+ "panels/network/RequestHeadersView.ts | fromWebBundle": {
6600
+ "message": "(from Web Bundle)"
6601
+ },
6623
6602
  "panels/network/RequestHeadersView.ts | general": {
6624
6603
  "message": "General"
6625
6604
  },
@@ -2003,33 +2003,6 @@
2003
2003
  "panels/application/application-meta.ts | stopRecordingEvents": {
2004
2004
  "message": "Ŝt́ôṕ r̂éĉór̂d́îńĝ év̂én̂t́ŝ"
2005
2005
  },
2006
- "panels/application/ApplicationCacheItemsView.ts | appcache": {
2007
- "message": "Âṕp̂Ćâćĥé"
2008
- },
2009
- "panels/application/ApplicationCacheItemsView.ts | applicationCache": {
2010
- "message": "Âṕp̂ĺîćât́îón̂ Ćâćĥé"
2011
- },
2012
- "panels/application/ApplicationCacheItemsView.ts | deleteString": {
2013
- "message": "D̂él̂ét̂é"
2014
- },
2015
- "panels/application/ApplicationCacheItemsView.ts | noApplicationCacheInformation": {
2016
- "message": "N̂ó Âṕp̂ĺîćât́îón̂ Ćâćĥé îńf̂ór̂ḿât́îón̂ áv̂áîĺâb́l̂é."
2017
- },
2018
- "panels/application/ApplicationCacheItemsView.ts | offline": {
2019
- "message": "Ôf́f̂ĺîńê"
2020
- },
2021
- "panels/application/ApplicationCacheItemsView.ts | online": {
2022
- "message": "Ôńl̂ín̂é"
2023
- },
2024
- "panels/application/ApplicationCacheItemsView.ts | resource": {
2025
- "message": "R̂éŝóûŕĉé"
2026
- },
2027
- "panels/application/ApplicationCacheItemsView.ts | sizeString": {
2028
- "message": "Ŝíẑé"
2029
- },
2030
- "panels/application/ApplicationCacheItemsView.ts | typeString": {
2031
- "message": "T̂ýp̂é"
2032
- },
2033
2006
  "panels/application/ApplicationPanelCacheSection.ts | backForwardCache": {
2034
2007
  "message": "B̂áĉḱ-f̂ór̂ẃâŕd̂ Ćâćĥé"
2035
2008
  },
@@ -2045,9 +2018,6 @@
2045
2018
  "panels/application/ApplicationPanelSidebar.ts | application": {
2046
2019
  "message": "Âṕp̂ĺîćât́îón̂"
2047
2020
  },
2048
- "panels/application/ApplicationPanelSidebar.ts | applicationCache": {
2049
- "message": "Âṕp̂ĺîćât́îón̂ Ćâćĥé"
2050
- },
2051
2021
  "panels/application/ApplicationPanelSidebar.ts | backgroundServices": {
2052
2022
  "message": "B̂áĉḱĝŕôún̂d́ Ŝér̂v́îćêś"
2053
2023
  },
@@ -2126,14 +2096,11 @@
2126
2096
  "panels/application/AppManifestView.ts | actualWidthSpxOfSSDoesNotMatch": {
2127
2097
  "message": "Âćt̂úâĺ ŵíd̂t́ĥ ({PH1}ṕx̂) óf̂ {PH2} {PH3} d́ôéŝ ńôt́ m̂át̂ćĥ śp̂éĉíf̂íêd́ ŵíd̂t́ĥ ({PH4}ṕx̂)"
2128
2098
  },
2129
- "panels/application/AppManifestView.ts | appId": {
2130
- "message": "Âṕp̂ Íd̂"
2131
- },
2132
2099
  "panels/application/AppManifestView.ts | appIdExplainer": {
2133
2100
  "message": "T̂h́îś îś ûśêd́ b̂ý t̂h́ê b́r̂óŵśêŕ t̂ó k̂ńôẃ ŵh́êt́ĥér̂ t́ĥé m̂án̂íf̂éŝt́ ŝh́ôúl̂d́ b̂é ûṕd̂át̂ín̂ǵ âń êx́îśt̂ín̂ǵ âṕp̂ĺîćât́îón̂, ór̂ ẃĥét̂h́êŕ ît́ r̂éf̂ér̂ś t̂ó â ńêẃ ŵéb̂ áp̂ṕ t̂h́ât́ ĉán̂ b́ê ín̂śt̂ál̂ĺêd́."
2134
2101
  },
2135
2102
  "panels/application/AppManifestView.ts | appIdNote": {
2136
- "message": "N̂ót̂é: 'îd́' îś n̂ót̂ śp̂éĉíf̂íêd́ îń t̂h́ê ḿâńîf́êśt̂, 'śt̂ár̂t́_ûŕl̂' íŝ úŝéd̂ ín̂śt̂éâd́. T̂ó ŝṕêćîf́ŷ án̂ Áp̂ṕ Îd́ t̂h́ât́ m̂át̂ćĥéŝ t́ĥé ĉúr̂ŕêńt̂ íd̂én̂t́ît́ŷ, śêt́ t̂h́ê 'íd̂' f́îél̂d́ t̂ó ''{PH1}''."
2103
+ "message": "{PH1} {PH2} îś n̂ót̂ śp̂éĉíf̂íêd́ îń t̂h́ê ḿâńîf́êśt̂, {PH3} íŝ úŝéd̂ ín̂śt̂éâd́. T̂ó ŝṕêćîf́ŷ án̂ Áp̂ṕ Îd́ t̂h́ât́ m̂át̂ćĥéŝ t́ĥé ĉúr̂ŕêńt̂ íd̂én̂t́ît́ŷ, śêt́ t̂h́ê {PH4} f́îél̂d́ t̂ó {PH5} {PH6}."
2137
2104
  },
2138
2105
  "panels/application/AppManifestView.ts | appManifest": {
2139
2106
  "message": "Âṕp̂ Ḿâńîf́êśt̂"
@@ -2147,6 +2114,12 @@
2147
2114
  "panels/application/AppManifestView.ts | backgroundColor": {
2148
2115
  "message": "B̂áĉḱĝŕôún̂d́ ĉól̂ór̂"
2149
2116
  },
2117
+ "panels/application/AppManifestView.ts | computedAppId": {
2118
+ "message": "Ĉóm̂ṕût́êd́ Âṕp̂ Íd̂"
2119
+ },
2120
+ "panels/application/AppManifestView.ts | copyToClipboard": {
2121
+ "message": "Ĉóp̂ý t̂ó ĉĺîṕb̂óâŕd̂"
2122
+ },
2150
2123
  "panels/application/AppManifestView.ts | couldNotCheckServiceWorker": {
2151
2124
  "message": "Ĉóûĺd̂ ńôt́ ĉh́êćk̂ service worker ẃît́ĥóût́ â 'start_url' f́îél̂d́ îń t̂h́ê ḿâńîf́êśt̂"
2152
2125
  },
@@ -2186,6 +2159,9 @@
2186
2159
  "panels/application/AppManifestView.ts | installability": {
2187
2160
  "message": "Îńŝt́âĺl̂áb̂íl̂ít̂ý"
2188
2161
  },
2162
+ "panels/application/AppManifestView.ts | learnMore": {
2163
+ "message": "L̂éâŕn̂ ḿôŕê"
2164
+ },
2189
2165
  "panels/application/AppManifestView.ts | manifestContainsDisplayoverride": {
2190
2166
  "message": "M̂án̂íf̂éŝt́ ĉón̂t́âín̂ś 'display_override' f̂íêĺd̂, án̂d́ t̂h́ê f́îŕŝt́ ŝúp̂ṕôŕt̂éd̂ d́îśp̂ĺâý m̂ód̂é m̂úŝt́ b̂é ôńê óf̂ 'standalone', 'fullscreen', ór̂ 'minimal-ui'"
2191
2167
  },
@@ -2228,6 +2204,9 @@
2228
2204
  "panels/application/AppManifestView.ts | noSuppliedIconIsAtLeastSpxSquare": {
2229
2205
  "message": "N̂ó ŝúp̂ṕl̂íêd́ îćôń îś ât́ l̂éâśt̂ {PH1} ṕîx́êĺŝ śq̂úâŕê ín̂ PNG, SVG ór̂ WebP f́ôŕm̂át̂, ẃît́ĥ t́ĥé p̂úr̂ṕôśê át̂t́r̂íb̂út̂é ûńŝét̂ ór̂ śêt́ t̂ó \"any\"."
2230
2206
  },
2207
+ "panels/application/AppManifestView.ts | note": {
2208
+ "message": "N̂ót̂é:"
2209
+ },
2231
2210
  "panels/application/AppManifestView.ts | orientation": {
2232
2211
  "message": "Ôŕîén̂t́ât́îón̂"
2233
2212
  },
@@ -3029,9 +3008,6 @@
3029
3008
  "panels/application/StorageView.ts | application": {
3030
3009
  "message": "Âṕp̂ĺîćât́îón̂"
3031
3010
  },
3032
- "panels/application/StorageView.ts | applicationCache": {
3033
- "message": "Âṕp̂ĺîćât́îón̂ ćâćĥé"
3034
- },
3035
3011
  "panels/application/StorageView.ts | cache": {
3036
3012
  "message": "Ĉáĉh́ê"
3037
3013
  },
@@ -4952,8 +4928,8 @@
4952
4928
  "panels/issues/HiddenIssuesRow.ts | hiddenIssues": {
4953
4929
  "message": "Ĥíd̂d́êń îśŝúêś"
4954
4930
  },
4955
- "panels/issues/HiddenIssuesRow.ts | unhideIssues": {
4956
- "message": "Ûńĥíd̂é âĺl̂ íŝśûéŝ"
4931
+ "panels/issues/HiddenIssuesRow.ts | unhideAll": {
4932
+ "message": "Ûńĥíd̂é âĺl̂"
4957
4933
  },
4958
4934
  "panels/issues/issues-meta.ts | cspViolations": {
4959
4935
  "message": "ĈŚP̂ V́îól̂át̂íôńŝ"
@@ -6620,6 +6596,9 @@
6620
6596
  "panels/network/RequestHeadersView.ts | fromSignedexchange": {
6621
6597
  "message": "(f̂ŕôḿ ŝíĝńêd́-êx́ĉh́âńĝé)"
6622
6598
  },
6599
+ "panels/network/RequestHeadersView.ts | fromWebBundle": {
6600
+ "message": "(f̂ŕôḿ Ŵéb̂ B́ûńd̂ĺê)"
6601
+ },
6623
6602
  "panels/network/RequestHeadersView.ts | general": {
6624
6603
  "message": "Ĝén̂ér̂ál̂"
6625
6604
  },