chrome-devtools-frontend 1.0.950850 → 1.0.952284

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 (379) hide show
  1. package/config/gni/devtools_grd_files.gni +3 -3
  2. package/extension-api/ExtensionAPI.d.ts +1 -1
  3. package/front_end/.eslintrc.js +6 -0
  4. package/front_end/Tests.js +10 -0
  5. package/front_end/core/common/App.ts +0 -3
  6. package/front_end/core/common/AppProvider.ts +0 -3
  7. package/front_end/core/common/JavaScriptMetaData.ts +0 -3
  8. package/front_end/core/common/QueryParamHandler.ts +0 -3
  9. package/front_end/core/common/Runnable.ts +0 -3
  10. package/front_end/core/common/SimpleHistoryManager.ts +0 -3
  11. package/front_end/core/i18n/locales/en-US.json +183 -183
  12. package/front_end/core/i18n/locales/en-XL.json +183 -183
  13. package/front_end/core/sdk/CSSRule.ts +1 -1
  14. package/front_end/core/sdk/DOMModel.ts +12 -37
  15. package/front_end/core/sdk/OverlayModel.ts +18 -34
  16. package/front_end/core/sdk/OverlayPersistentHighlighter.ts +0 -12
  17. package/front_end/core/sdk/RuntimeModel.ts +0 -1
  18. package/front_end/core/sdk/SourceMap.ts +1 -1
  19. package/front_end/core/sdk/TracingManager.ts +0 -3
  20. package/front_end/entrypoints/formatter_worker/AcornTokenizer.ts +36 -36
  21. package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +53 -53
  22. package/front_end/entrypoints/formatter_worker/ESTreeWalker.ts +11 -11
  23. package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +43 -43
  24. package/front_end/entrypoints/formatter_worker/HTMLFormatter.ts +106 -105
  25. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +26 -26
  26. package/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts +51 -56
  27. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +201 -204
  28. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +84 -83
  29. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +16 -16
  30. package/front_end/entrypoints/inspector_main/InspectorMain.ts +21 -21
  31. package/front_end/entrypoints/main/ExecutionContextSelector.ts +30 -30
  32. package/front_end/entrypoints/main/MainImpl.ts +12 -12
  33. package/front_end/entrypoints/node_app/NodeConnectionsPanel.ts +33 -33
  34. package/front_end/entrypoints/node_app/NodeMain.ts +35 -35
  35. package/front_end/generated/InspectorBackendCommands.js +5 -1
  36. package/front_end/generated/protocol.d.ts +16 -0
  37. package/front_end/models/bindings/CSSWorkspaceBinding.ts +0 -3
  38. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -2
  39. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -4
  40. package/front_end/models/bindings/FileUtils.ts +0 -4
  41. package/front_end/models/bindings/IgnoreListManager.ts +1 -2
  42. package/front_end/models/bindings/NetworkProject.ts +1 -2
  43. package/front_end/models/extensions/ExtensionAPI.ts +2 -2
  44. package/front_end/models/extensions/ExtensionTraceProvider.ts +0 -3
  45. package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +6 -6
  46. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +15 -15
  47. package/front_end/models/issues_manager/CorsIssue.ts +9 -9
  48. package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +5 -5
  49. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
  50. package/front_end/models/issues_manager/GenericIssue.ts +5 -5
  51. package/front_end/models/issues_manager/HeavyAdIssue.ts +5 -5
  52. package/front_end/models/issues_manager/Issue.ts +10 -10
  53. package/front_end/models/issues_manager/IssueResolver.ts +11 -10
  54. package/front_end/models/issues_manager/IssuesManager.ts +56 -56
  55. package/front_end/models/issues_manager/LowTextContrastIssue.ts +4 -4
  56. package/front_end/models/issues_manager/MixedContentIssue.ts +7 -7
  57. package/front_end/models/issues_manager/NavigatorUserAgentIssue.ts +7 -7
  58. package/front_end/models/issues_manager/QuirksModeIssue.ts +4 -4
  59. package/front_end/models/issues_manager/SameSiteCookieIssue.ts +17 -18
  60. package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +5 -5
  61. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +32 -31
  62. package/front_end/models/issues_manager/TrustedWebActivityIssue.ts +5 -5
  63. package/front_end/models/issues_manager/WasmCrossOriginModuleSharingIssue.ts +5 -5
  64. package/front_end/models/timeline_model/TimelineModel.ts +1 -1
  65. package/front_end/models/timeline_model/TracingLayerTree.ts +0 -1
  66. package/front_end/panels/accessibility/ARIAMetadata.ts +0 -1
  67. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +2 -2
  68. package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
  69. package/front_end/panels/animation/AnimationTimeline.ts +0 -1
  70. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -4
  71. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +0 -2
  72. package/front_end/panels/application/StorageView.ts +2 -6
  73. package/front_end/panels/application/{BackForwardCacheStrings.ts → components/BackForwardCacheStrings.ts} +2 -2
  74. package/front_end/panels/application/{BackForwardCacheView.ts → components/BackForwardCacheView.ts} +96 -62
  75. package/front_end/panels/application/components/EndpointsGrid.ts +12 -12
  76. package/front_end/panels/application/components/FrameDetailsView.ts +108 -110
  77. package/front_end/panels/application/components/OriginTrialTreeView.ts +45 -45
  78. package/front_end/panels/application/components/PermissionsPolicySection.ts +19 -19
  79. package/front_end/panels/application/components/ReportsGrid.ts +30 -30
  80. package/front_end/panels/application/components/StackTrace.ts +48 -47
  81. package/front_end/panels/application/components/TrustTokensView.ts +31 -31
  82. package/front_end/panels/application/{backForwardCacheView.css → components/backForwardCacheView.css} +9 -0
  83. package/front_end/panels/application/components/components.ts +2 -0
  84. package/front_end/panels/console/ConsoleViewMessage.ts +1 -25
  85. package/front_end/panels/console/consoleView.css +5 -0
  86. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +41 -52
  87. package/front_end/panels/css_overview/CSSOverviewController.ts +2 -2
  88. package/front_end/panels/css_overview/CSSOverviewPanel.ts +18 -27
  89. package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
  90. package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +6 -6
  91. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +4 -4
  92. package/front_end/panels/elements/ComputedStyleModel.ts +2 -2
  93. package/front_end/panels/elements/ElementsPanel.ts +1 -5
  94. package/front_end/panels/elements/ElementsTreeElement.ts +2 -6
  95. package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
  96. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  97. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +17 -17
  98. package/front_end/panels/elements/components/AdornerManager.ts +21 -21
  99. package/front_end/panels/elements/components/AdornerSettingsPane.ts +14 -14
  100. package/front_end/panels/elements/components/CSSQuery.ts +16 -16
  101. package/front_end/panels/elements/components/ComputedStyleProperty.ts +14 -14
  102. package/front_end/panels/elements/components/ComputedStyleTrace.ts +15 -15
  103. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +78 -78
  104. package/front_end/panels/elements/components/ElementsPanelLink.ts +16 -16
  105. package/front_end/panels/elements/components/LayoutPane.ts +47 -47
  106. package/front_end/panels/elements/components/NodeText.ts +18 -18
  107. package/front_end/panels/elements/components/QueryContainer.ts +40 -40
  108. package/front_end/panels/elements/components/StylePropertyEditor.ts +18 -18
  109. package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +4 -4
  110. package/front_end/panels/event_listeners/EventListenersUtils.ts +2 -1
  111. package/front_end/panels/issues/AffectedBlockedByResponseView.ts +4 -4
  112. package/front_end/panels/issues/AffectedCookiesView.ts +4 -5
  113. package/front_end/panels/issues/AffectedDirectivesView.ts +19 -19
  114. package/front_end/panels/issues/AffectedDocumentsInQuirksModeView.ts +7 -8
  115. package/front_end/panels/issues/AffectedElementsView.ts +4 -4
  116. package/front_end/panels/issues/AffectedElementsWithLowContrastView.ts +7 -8
  117. package/front_end/panels/issues/AffectedHeavyAdView.ts +8 -8
  118. package/front_end/panels/issues/AffectedResourcesView.ts +25 -26
  119. package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +8 -8
  120. package/front_end/panels/issues/AffectedSourcesView.ts +4 -4
  121. package/front_end/panels/issues/AffectedTrustedWebActivityIssueDetailsView.ts +4 -4
  122. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +17 -17
  123. package/front_end/panels/issues/CSPViolationsListView.ts +22 -23
  124. package/front_end/panels/issues/CSPViolationsView.ts +17 -17
  125. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +13 -13
  126. package/front_end/panels/issues/CorsIssueDetailsView.ts +23 -23
  127. package/front_end/panels/issues/GenericIssueDetailsView.ts +4 -4
  128. package/front_end/panels/issues/HiddenIssuesRow.ts +7 -7
  129. package/front_end/panels/issues/IssueAggregator.ts +95 -95
  130. package/front_end/panels/issues/IssueKindView.ts +14 -14
  131. package/front_end/panels/issues/IssueView.ts +98 -98
  132. package/front_end/panels/issues/IssuesPane.ts +102 -102
  133. package/front_end/panels/issues/WasmCrossOriginModuleSharingAffectedResourcesView.ts +5 -5
  134. package/front_end/panels/issues/components/HideIssuesMenu.ts +10 -10
  135. package/front_end/panels/layer_viewer/Layers3DView.ts +3 -9
  136. package/front_end/panels/lighthouse/LighthouseController.ts +4 -5
  137. package/front_end/panels/media/PlayerListView.ts +160 -97
  138. package/front_end/panels/media/PlayerMessagesView.ts +1 -0
  139. package/front_end/panels/media/TickingFlameChart.ts +1 -2
  140. package/front_end/panels/media/playerListView.css +58 -0
  141. package/front_end/panels/network/NetworkLogView.ts +2 -6
  142. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  143. package/front_end/panels/network/NetworkWaterfallColumn.ts +2 -4
  144. package/front_end/panels/network/components/RequestTrustTokensView.ts +40 -40
  145. package/front_end/panels/network/components/WebBundleInfoView.ts +9 -9
  146. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +6 -12
  147. package/front_end/panels/profiler/HeapProfileView.ts +1 -1
  148. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +0 -1
  149. package/front_end/panels/profiler/HeapSnapshotView.ts +1 -2
  150. package/front_end/panels/profiler/heapProfiler.css +1 -1
  151. package/front_end/panels/search/SearchConfig.ts +0 -6
  152. package/front_end/panels/security/SecurityModel.ts +2 -4
  153. package/front_end/panels/security/SecurityPanel.ts +2 -2
  154. package/front_end/panels/settings/KeybindsSettingsTab.ts +4 -0
  155. package/front_end/panels/settings/components/SyncSection.ts +14 -14
  156. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +96 -96
  157. package/front_end/panels/settings/settingsScreen.css +8 -3
  158. package/front_end/panels/sources/BreakpointEditDialog.ts +4 -3
  159. package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
  160. package/front_end/panels/sources/NavigatorView.ts +4 -10
  161. package/front_end/panels/sources/ScopeChainSidebarPane.ts +2 -3
  162. package/front_end/panels/sources/SourceMapNamesResolver.ts +3 -3
  163. package/front_end/panels/sources/SourcesPanel.ts +1 -3
  164. package/front_end/panels/sources/SourcesView.ts +0 -3
  165. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -4
  166. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -5
  167. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +0 -1
  168. package/front_end/panels/timeline/TimelineFlameChartView.ts +0 -1
  169. package/front_end/panels/timeline/TimelineLoader.ts +0 -3
  170. package/front_end/panels/timeline/TimelinePanel.ts +2 -3
  171. package/front_end/panels/timeline/TimelineUIUtils.ts +1 -1
  172. package/front_end/panels/timeline/components/WebVitalsLane.ts +77 -76
  173. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +133 -133
  174. package/front_end/panels/timeline/components/WebVitalsTooltip.ts +9 -9
  175. package/front_end/panels/webauthn/WebauthnPane.ts +203 -205
  176. package/front_end/third_party/codemirror.next/bundle.ts +3 -3
  177. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  178. package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -1
  179. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +10 -1
  180. package/front_end/third_party/codemirror.next/codemirror.next.js +2 -1
  181. package/front_end/third_party/codemirror.next/package.json +3 -3
  182. package/front_end/third_party/puppeteer/package/README.md +11 -11
  183. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts +4 -5
  184. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +2 -2
  185. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  186. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +4 -6
  187. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +1 -2
  188. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +1 -4
  189. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +1 -4
  190. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +9 -7
  191. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
  192. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +21 -12
  193. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
  194. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +1 -3
  195. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -2
  196. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +3 -5
  197. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +1 -3
  198. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +8 -10
  199. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +3 -3
  200. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +50 -11
  202. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +70 -33
  204. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +12 -5
  206. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  207. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +25 -5
  208. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
  209. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -4
  210. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +39 -6
  211. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  212. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +36 -0
  213. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +3 -4
  215. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +2 -1
  217. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +46 -0
  219. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
  220. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +124 -0
  221. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -0
  222. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +27 -10
  223. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  224. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +144 -74
  225. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  226. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +5 -6
  227. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +1 -2
  228. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +4 -6
  229. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +3 -5
  230. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +4 -5
  231. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  232. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +43 -17
  233. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  234. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +1 -1
  235. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +1 -3
  236. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
  237. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +101 -34
  238. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  239. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
  240. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +1 -2
  241. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +5 -7
  242. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  243. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +4 -5
  244. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +2 -2
  245. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  246. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +4 -6
  247. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +2 -3
  248. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +1 -2
  249. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -5
  250. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +1 -4
  251. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +1 -4
  252. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +1 -2
  253. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +9 -7
  254. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
  255. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +24 -17
  256. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
  257. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +1 -3
  258. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -2
  259. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +3 -5
  260. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +1 -3
  261. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +8 -10
  262. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +7 -8
  263. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  264. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +50 -11
  265. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  266. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +70 -34
  267. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  268. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +12 -5
  269. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  270. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +26 -7
  271. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
  272. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -4
  273. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +39 -6
  274. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  275. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +38 -4
  276. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  277. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +3 -4
  278. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  279. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +4 -4
  280. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
  281. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +46 -0
  282. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
  283. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +120 -0
  284. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -0
  285. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +27 -10
  286. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  287. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +144 -75
  288. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  289. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -14
  290. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +5 -6
  291. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +3 -4
  292. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +1 -2
  293. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +4 -6
  294. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +3 -5
  295. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +1 -2
  296. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +3 -5
  297. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +1 -3
  298. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +10 -12
  299. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +4 -5
  300. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  301. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +43 -20
  302. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  303. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +1 -1
  304. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +1 -3
  305. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
  306. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +104 -40
  307. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  308. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
  309. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +1 -2
  310. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -2
  311. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +5 -7
  312. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +1 -3
  313. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +3 -5
  314. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +1 -2
  315. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js +1 -2
  316. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  317. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js +1 -2
  318. package/front_end/third_party/puppeteer/package/lib/types.d.ts +173 -36
  319. package/front_end/third_party/puppeteer/package/package.json +3 -3
  320. package/front_end/ui/components/adorners/Adorner.ts +2 -2
  321. package/front_end/ui/components/buttons/Button.ts +9 -9
  322. package/front_end/ui/components/data_grid/DataGrid.ts +62 -62
  323. package/front_end/ui/components/data_grid/DataGridController.ts +22 -22
  324. package/front_end/ui/components/diff_view/DiffView.ts +6 -6
  325. package/front_end/ui/components/expandable_list/ExpandableList.ts +5 -5
  326. package/front_end/ui/components/icon_button/Icon.ts +4 -4
  327. package/front_end/ui/components/icon_button/IconButton.ts +4 -4
  328. package/front_end/ui/components/issue_counter/IssueCounter.ts +3 -3
  329. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +11 -11
  330. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +50 -50
  331. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +6 -6
  332. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +4 -4
  333. package/front_end/ui/components/linear_memory_inspector/LinearMemoryNavigator.ts +12 -12
  334. package/front_end/ui/components/linear_memory_inspector/LinearMemoryValueInterpreter.ts +11 -11
  335. package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +40 -39
  336. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterDisplay.ts +18 -18
  337. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterSettings.ts +6 -6
  338. package/front_end/ui/components/linkifier/LinkifierImpl.ts +4 -4
  339. package/front_end/ui/components/markdown_view/MarkdownImage.ts +5 -5
  340. package/front_end/ui/components/markdown_view/MarkdownLink.ts +2 -2
  341. package/front_end/ui/components/markdown_view/MarkdownView.ts +4 -5
  342. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +2 -2
  343. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +2 -2
  344. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +4 -4
  345. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +22 -22
  346. package/front_end/ui/components/report_view/ReportView.ts +16 -16
  347. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +14 -14
  348. package/front_end/ui/components/settings/SettingCheckbox.ts +5 -5
  349. package/front_end/ui/components/survey_link/SurveyLink.ts +8 -8
  350. package/front_end/ui/components/text_editor/TextEditor.ts +9 -9
  351. package/front_end/ui/components/text_editor/cursor_tooltip.ts +7 -1
  352. package/front_end/ui/components/text_prompt/TextPrompt.ts +18 -18
  353. package/front_end/ui/components/tree_outline/TreeOutline.ts +69 -70
  354. package/front_end/ui/legacy/ContextFlavorListener.ts +0 -4
  355. package/front_end/ui/legacy/ContextMenu.ts +2 -3
  356. package/front_end/ui/legacy/InspectorView.ts +1 -1
  357. package/front_end/ui/legacy/ReportView.ts +3 -4
  358. package/front_end/ui/legacy/SearchableView.ts +1 -2
  359. package/front_end/ui/legacy/SplitWidget.ts +2 -3
  360. package/front_end/ui/legacy/SuggestBox.ts +0 -3
  361. package/front_end/ui/legacy/TextPrompt.ts +1 -1
  362. package/front_end/ui/legacy/UIUtils.ts +1 -1
  363. package/front_end/ui/legacy/XLink.ts +1 -1
  364. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
  365. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +9 -9
  366. package/front_end/ui/legacy/components/data_grid/dataGrid.css +7 -7
  367. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
  368. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +1 -5
  369. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +0 -1
  370. package/front_end/ui/legacy/components/utils/Linkifier.ts +2 -2
  371. package/front_end/ui/legacy/themeColors.css +2 -0
  372. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +24 -1
  373. package/inspector_overlay/main.ts +16 -2
  374. package/package.json +1 -1
  375. package/scripts/eslint_rules/lib/use_private_class_members.js +41 -0
  376. package/scripts/eslint_rules/tests/use_private_class_members_test.js +62 -0
  377. package/scripts/migration/class-fields/migrate.js +2 -3
  378. package/scripts/migration/class-fields/migrate.sh +1 -3
  379. package/scripts/migration/class-fields/package.json +1 -1
@@ -19,22 +19,22 @@ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/MixedContentIssu
19
19
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
20
20
 
21
21
  export class MixedContentIssue extends Issue {
22
- private issueDetails: Protocol.Audits.MixedContentIssueDetails;
22
+ #issueDetails: Protocol.Audits.MixedContentIssueDetails;
23
23
 
24
24
  constructor(issueDetails: Protocol.Audits.MixedContentIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
25
25
  super(Protocol.Audits.InspectorIssueCode.MixedContentIssue, issuesModel);
26
- this.issueDetails = issueDetails;
26
+ this.#issueDetails = issueDetails;
27
27
  }
28
28
 
29
29
  requests(): Iterable<Protocol.Audits.AffectedRequest> {
30
- if (this.issueDetails.request) {
31
- return [this.issueDetails.request];
30
+ if (this.#issueDetails.request) {
31
+ return [this.#issueDetails.request];
32
32
  }
33
33
  return [];
34
34
  }
35
35
 
36
36
  getDetails(): Protocol.Audits.MixedContentIssueDetails {
37
- return this.issueDetails;
37
+ return this.#issueDetails;
38
38
  }
39
39
 
40
40
  getCategory(): IssueCategory {
@@ -50,11 +50,11 @@ export class MixedContentIssue extends Issue {
50
50
  }
51
51
 
52
52
  primaryKey(): string {
53
- return JSON.stringify(this.issueDetails);
53
+ return JSON.stringify(this.#issueDetails);
54
54
  }
55
55
 
56
56
  getKind(): IssueKind {
57
- switch (this.issueDetails.resolutionStatus) {
57
+ switch (this.#issueDetails.resolutionStatus) {
58
58
  case Protocol.Audits.MixedContentResolutionStatus.MixedContentAutomaticallyUpgraded:
59
59
  return IssueKind.Improvement;
60
60
  case Protocol.Audits.MixedContentResolutionStatus.MixedContentBlocked:
@@ -27,11 +27,11 @@ export enum IssueCode {
27
27
  }
28
28
 
29
29
  export class NavigatorUserAgentIssue extends Issue<IssueCode> {
30
- private issueDetails: Protocol.Audits.NavigatorUserAgentIssueDetails;
30
+ #issueDetails: Protocol.Audits.NavigatorUserAgentIssueDetails;
31
31
 
32
32
  constructor(issueDetails: Protocol.Audits.NavigatorUserAgentIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
33
33
  super(IssueCode.NavigatorUserAgentIssue, issuesModel);
34
- this.issueDetails = issueDetails;
34
+ this.#issueDetails = issueDetails;
35
35
  }
36
36
 
37
37
  getCategory(): IssueCategory {
@@ -39,7 +39,7 @@ export class NavigatorUserAgentIssue extends Issue<IssueCode> {
39
39
  }
40
40
 
41
41
  details(): Protocol.Audits.NavigatorUserAgentIssueDetails {
42
- return this.issueDetails;
42
+ return this.#issueDetails;
43
43
  }
44
44
 
45
45
  getDescription(): MarkdownIssueDescription|null {
@@ -53,14 +53,14 @@ export class NavigatorUserAgentIssue extends Issue<IssueCode> {
53
53
  }
54
54
 
55
55
  sources(): Iterable<Protocol.Audits.SourceCodeLocation> {
56
- if (this.issueDetails.location) {
57
- return [this.issueDetails.location];
56
+ if (this.#issueDetails.location) {
57
+ return [this.#issueDetails.location];
58
58
  }
59
59
  return [];
60
60
  }
61
61
 
62
62
  primaryKey(): string {
63
- return JSON.stringify(this.issueDetails);
63
+ return JSON.stringify(this.#issueDetails);
64
64
  }
65
65
 
66
66
  getKind(): IssueKind {
@@ -69,7 +69,7 @@ export class NavigatorUserAgentIssue extends Issue<IssueCode> {
69
69
 
70
70
  isCausedByThirdParty(): boolean {
71
71
  const topFrame = SDK.FrameManager.FrameManager.instance().getTopFrame();
72
- return isCausedByThirdParty(topFrame, this.issueDetails.url);
72
+ return isCausedByThirdParty(topFrame, this.#issueDetails.url);
73
73
  }
74
74
 
75
75
  static fromInspectorIssue(issuesModel: SDK.IssuesModel.IssuesModel, inspectorIssue: Protocol.Audits.InspectorIssue):
@@ -19,17 +19,17 @@ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/QuirksModeIssue.
19
19
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
20
20
 
21
21
  export class QuirksModeIssue extends Issue {
22
- private issueDetails: Protocol.Audits.QuirksModeIssueDetails;
22
+ #issueDetails: Protocol.Audits.QuirksModeIssueDetails;
23
23
 
24
24
  constructor(issueDetails: Protocol.Audits.QuirksModeIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
25
25
  const mode = issueDetails.isLimitedQuirksMode ? 'LimitedQuirksMode' : 'QuirksMode';
26
26
  const umaCode = [Protocol.Audits.InspectorIssueCode.QuirksModeIssue, mode].join('::');
27
27
  super({code: Protocol.Audits.InspectorIssueCode.QuirksModeIssue, umaCode}, issuesModel);
28
- this.issueDetails = issueDetails;
28
+ this.#issueDetails = issueDetails;
29
29
  }
30
30
 
31
31
  primaryKey(): string {
32
- return `${this.code()}-(${this.issueDetails.documentNodeId})-(${this.issueDetails.url})`;
32
+ return `${this.code()}-(${this.#issueDetails.documentNodeId})-(${this.#issueDetails.url})`;
33
33
  }
34
34
 
35
35
  getCategory(): IssueCategory {
@@ -37,7 +37,7 @@ export class QuirksModeIssue extends Issue {
37
37
  }
38
38
 
39
39
  details(): Protocol.Audits.QuirksModeIssueDetails {
40
- return this.issueDetails;
40
+ return this.#issueDetails;
41
41
  }
42
42
 
43
43
  getDescription(): MarkdownIssueDescription {
@@ -38,27 +38,27 @@ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/SameSiteCookieIs
38
38
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
39
39
 
40
40
  export class SameSiteCookieIssue extends Issue {
41
- private issueDetails: Protocol.Audits.SameSiteCookieIssueDetails;
41
+ #issueDetails: Protocol.Audits.SameSiteCookieIssueDetails;
42
42
 
43
43
  constructor(
44
44
  code: string, issueDetails: Protocol.Audits.SameSiteCookieIssueDetails,
45
45
  issuesModel: SDK.IssuesModel.IssuesModel) {
46
46
  super(code, issuesModel);
47
- this.issueDetails = issueDetails;
47
+ this.#issueDetails = issueDetails;
48
48
  }
49
49
 
50
- private cookieId(): string {
51
- if (this.issueDetails.cookie) {
52
- const {domain, path, name} = this.issueDetails.cookie;
50
+ #cookieId(): string {
51
+ if (this.#issueDetails.cookie) {
52
+ const {domain, path, name} = this.#issueDetails.cookie;
53
53
  const cookieId = `${domain};${path};${name}`;
54
54
  return cookieId;
55
55
  }
56
- return this.issueDetails.rawCookieLine ?? 'no-cookie-info';
56
+ return this.#issueDetails.rawCookieLine ?? 'no-cookie-info';
57
57
  }
58
58
 
59
59
  primaryKey(): string {
60
- const requestId = this.issueDetails.request ? this.issueDetails.request.requestId : 'no-request';
61
- return `${this.code()}-(${this.cookieId()})-(${requestId})`;
60
+ const requestId = this.#issueDetails.request ? this.#issueDetails.request.requestId : 'no-request';
61
+ return `${this.code()}-(${this.#cookieId()})-(${requestId})`;
62
62
  }
63
63
 
64
64
  /**
@@ -67,8 +67,7 @@ export class SameSiteCookieIssue extends Issue {
67
67
  static createIssuesFromSameSiteDetails(
68
68
  sameSiteDetails: Protocol.Audits.SameSiteCookieIssueDetails,
69
69
  issuesModel: SDK.IssuesModel.IssuesModel): SameSiteCookieIssue[] {
70
- /** @type {!Array<!Issue>} */
71
- const issues = [];
70
+ const issues: SameSiteCookieIssue[] = [];
72
71
 
73
72
  // Exclusion reasons have priority. It means a cookie was blocked. Create an issue
74
73
  // for every exclusion reason but ignore warning reasons if the cookie was blocked.
@@ -163,22 +162,22 @@ export class SameSiteCookieIssue extends Issue {
163
162
  }
164
163
 
165
164
  cookies(): Iterable<Protocol.Audits.AffectedCookie> {
166
- if (this.issueDetails.cookie) {
167
- return [this.issueDetails.cookie];
165
+ if (this.#issueDetails.cookie) {
166
+ return [this.#issueDetails.cookie];
168
167
  }
169
168
  return [];
170
169
  }
171
170
 
172
171
  rawCookieLines(): Iterable<string> {
173
- if (this.issueDetails.rawCookieLine) {
174
- return [this.issueDetails.rawCookieLine];
172
+ if (this.#issueDetails.rawCookieLine) {
173
+ return [this.#issueDetails.rawCookieLine];
175
174
  }
176
175
  return [];
177
176
  }
178
177
 
179
178
  requests(): Iterable<Protocol.Audits.AffectedRequest> {
180
- if (this.issueDetails.request) {
181
- return [this.issueDetails.request];
179
+ if (this.#issueDetails.request) {
180
+ return [this.#issueDetails.request];
182
181
  }
183
182
  return [];
184
183
  }
@@ -197,11 +196,11 @@ export class SameSiteCookieIssue extends Issue {
197
196
 
198
197
  isCausedByThirdParty(): boolean {
199
198
  const topFrame = SDK.FrameManager.FrameManager.instance().getTopFrame();
200
- return isCausedByThirdParty(topFrame, this.issueDetails.cookieUrl);
199
+ return isCausedByThirdParty(topFrame, this.#issueDetails.cookieUrl);
201
200
  }
202
201
 
203
202
  getKind(): IssueKind {
204
- if (this.issueDetails.cookieExclusionReasons?.length > 0) {
203
+ if (this.#issueDetails.cookieExclusionReasons?.length > 0) {
205
204
  return IssueKind.PageError;
206
205
  }
207
206
  return IssueKind.BreakingChange;
@@ -20,12 +20,12 @@ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/SharedArrayBuffe
20
20
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
21
21
 
22
22
  export class SharedArrayBufferIssue extends Issue {
23
- private issueDetails: Protocol.Audits.SharedArrayBufferIssueDetails;
23
+ #issueDetails: Protocol.Audits.SharedArrayBufferIssueDetails;
24
24
 
25
25
  constructor(issueDetails: Protocol.Audits.SharedArrayBufferIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
26
26
  const umaCode = [Protocol.Audits.InspectorIssueCode.SharedArrayBufferIssue, issueDetails.type].join('::');
27
27
  super({code: Protocol.Audits.InspectorIssueCode.SharedArrayBufferIssue, umaCode}, issuesModel);
28
- this.issueDetails = issueDetails;
28
+ this.#issueDetails = issueDetails;
29
29
  }
30
30
 
31
31
  getCategory(): IssueCategory {
@@ -33,7 +33,7 @@ export class SharedArrayBufferIssue extends Issue {
33
33
  }
34
34
 
35
35
  details(): Protocol.Audits.SharedArrayBufferIssueDetails {
36
- return this.issueDetails;
36
+ return this.#issueDetails;
37
37
  }
38
38
 
39
39
  getDescription(): MarkdownIssueDescription {
@@ -47,11 +47,11 @@ export class SharedArrayBufferIssue extends Issue {
47
47
  }
48
48
 
49
49
  primaryKey(): string {
50
- return JSON.stringify(this.issueDetails);
50
+ return JSON.stringify(this.#issueDetails);
51
51
  }
52
52
 
53
53
  getKind(): IssueKind {
54
- if (this.issueDetails.isWarning) {
54
+ if (this.#issueDetails.isWarning) {
55
55
  return IssueKind.BreakingChange;
56
56
  }
57
57
  return IssueKind.PageError;
@@ -16,21 +16,21 @@ import {Events} from './IssuesManagerEvents.js';
16
16
  import {getIssueTitleFromMarkdownDescription} from './MarkdownIssueDescription.js';
17
17
 
18
18
  export class SourceFrameIssuesManager {
19
- private locationPool = new Bindings.LiveLocation.LiveLocationPool();
20
- private issueMessages = new Array<IssueMessage>();
19
+ #locationPool = new Bindings.LiveLocation.LiveLocationPool();
20
+ #issueMessages = new Array<IssueMessage>();
21
21
 
22
22
  constructor(private readonly issuesManager: IssuesManager) {
23
- this.issuesManager.addEventListener(Events.IssueAdded, this.onIssueAdded, this);
24
- this.issuesManager.addEventListener(Events.FullUpdateRequired, this.onFullUpdateRequired, this);
23
+ this.issuesManager.addEventListener(Events.IssueAdded, this.#onIssueAdded, this);
24
+ this.issuesManager.addEventListener(Events.FullUpdateRequired, this.#onFullUpdateRequired, this);
25
25
  }
26
26
 
27
- private onIssueAdded(event: Common.EventTarget.EventTargetEvent<IssueAddedEvent>): void {
27
+ #onIssueAdded(event: Common.EventTarget.EventTargetEvent<IssueAddedEvent>): void {
28
28
  const {issue} = event.data;
29
- this.addIssue(issue);
29
+ this.#addIssue(issue);
30
30
  }
31
31
 
32
- private addIssue(issue: Issue): void {
33
- if (!this.isTrustedTypeIssue(issue)) {
32
+ #addIssue(issue: Issue): void {
33
+ if (!this.#isTrustedTypeIssue(issue)) {
34
34
  return;
35
35
  }
36
36
  const issuesModel = issue.model();
@@ -43,20 +43,20 @@ export class SourceFrameIssuesManager {
43
43
  const rawLocation =
44
44
  debuggerModel.createRawLocationByURL(srcLocation.url, srcLocation.lineNumber, srcLocation.columnNumber);
45
45
  if (rawLocation) {
46
- this.addIssueMessageToScript(issue, rawLocation);
46
+ this.#addIssueMessageToScript(issue, rawLocation);
47
47
  }
48
48
  }
49
49
  }
50
50
 
51
- private onFullUpdateRequired(): void {
52
- this.resetMessages();
51
+ #onFullUpdateRequired(): void {
52
+ this.#resetMessages();
53
53
  const issues = this.issuesManager.issues();
54
54
  for (const issue of issues) {
55
- this.addIssue(issue);
55
+ this.#addIssue(issue);
56
56
  }
57
57
  }
58
58
 
59
- private async addIssueMessageToScript(issue: Issue, rawLocation: SDK.DebuggerModel.Location): Promise<void> {
59
+ async #addIssueMessageToScript(issue: Issue, rawLocation: SDK.DebuggerModel.Location): Promise<void> {
60
60
  const description = issue.getDescription();
61
61
  if (description) {
62
62
  const title = await getIssueTitleFromMarkdownDescription(description);
@@ -64,58 +64,59 @@ export class SourceFrameIssuesManager {
64
64
  const clickHandler = (): void => {
65
65
  Common.Revealer.reveal(issue);
66
66
  };
67
- this.issueMessages.push(new IssueMessage(title, issue.getKind(), rawLocation, this.locationPool, clickHandler));
67
+ this.#issueMessages.push(
68
+ new IssueMessage(title, issue.getKind(), rawLocation, this.#locationPool, clickHandler));
68
69
  }
69
70
  }
70
71
  }
71
72
 
72
- private isTrustedTypeIssue(issue: Issue): issue is ContentSecurityPolicyIssue {
73
+ #isTrustedTypeIssue(issue: Issue): issue is ContentSecurityPolicyIssue {
73
74
  return issue instanceof ContentSecurityPolicyIssue && issue.code() === trustedTypesSinkViolationCode ||
74
75
  issue.code() === trustedTypesPolicyViolationCode;
75
76
  }
76
77
 
77
- private resetMessages(): void {
78
- for (const message of this.issueMessages) {
78
+ #resetMessages(): void {
79
+ for (const message of this.#issueMessages) {
79
80
  message.dispose();
80
81
  }
81
- this.issueMessages = [];
82
- this.locationPool.disposeAll();
82
+ this.#issueMessages = [];
83
+ this.#locationPool.disposeAll();
83
84
  }
84
85
  }
85
86
 
86
87
  export class IssueMessage extends Workspace.UISourceCode.Message {
87
- private uiSourceCode?: Workspace.UISourceCode.UISourceCode = undefined;
88
- private kind: IssueKind;
88
+ #uiSourceCode?: Workspace.UISourceCode.UISourceCode = undefined;
89
+ #kind: IssueKind;
89
90
 
90
91
  constructor(
91
92
  title: string, kind: IssueKind, rawLocation: SDK.DebuggerModel.Location,
92
93
  locationPool: Bindings.LiveLocation.LiveLocationPool, clickHandler: () => void) {
93
94
  super(Workspace.UISourceCode.Message.Level.Issue, title, clickHandler);
94
- this.kind = kind;
95
+ this.#kind = kind;
95
96
  Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().createLiveLocation(
96
- rawLocation, this.updateLocation.bind(this), locationPool);
97
+ rawLocation, this.#updateLocation.bind(this), locationPool);
97
98
  }
98
99
 
99
- private async updateLocation(liveLocation: Bindings.LiveLocation.LiveLocation): Promise<void> {
100
- if (this.uiSourceCode) {
101
- this.uiSourceCode.removeMessage(this);
100
+ async #updateLocation(liveLocation: Bindings.LiveLocation.LiveLocation): Promise<void> {
101
+ if (this.#uiSourceCode) {
102
+ this.#uiSourceCode.removeMessage(this);
102
103
  }
103
104
  const uiLocation = await liveLocation.uiLocation();
104
105
  if (!uiLocation) {
105
106
  return;
106
107
  }
107
108
  this.range = TextUtils.TextRange.TextRange.createFromLocation(uiLocation.lineNumber, uiLocation.columnNumber || 0);
108
- this.uiSourceCode = uiLocation.uiSourceCode;
109
- this.uiSourceCode.addMessage(this);
109
+ this.#uiSourceCode = uiLocation.uiSourceCode;
110
+ this.#uiSourceCode.addMessage(this);
110
111
  }
111
112
 
112
113
  getIssueKind(): IssueKind {
113
- return this.kind;
114
+ return this.#kind;
114
115
  }
115
116
 
116
117
  dispose(): void {
117
- if (this.uiSourceCode) {
118
- this.uiSourceCode.removeMessage(this);
118
+ if (this.#uiSourceCode) {
119
+ this.#uiSourceCode.removeMessage(this);
119
120
  }
120
121
  }
121
122
  }
@@ -20,21 +20,21 @@ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/TrustedWebActivi
20
20
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
21
21
 
22
22
  export class TrustedWebActivityIssue extends Issue {
23
- private issueDetails: Protocol.Audits.TrustedWebActivityIssueDetails;
23
+ #issueDetails: Protocol.Audits.TrustedWebActivityIssueDetails;
24
24
 
25
25
  constructor(issueDetails: Protocol.Audits.TrustedWebActivityIssueDetails) {
26
26
  const issueCode =
27
27
  [Protocol.Audits.InspectorIssueCode.TrustedWebActivityIssue, issueDetails.violationType].join('::');
28
28
  super(issueCode);
29
- this.issueDetails = issueDetails;
29
+ this.#issueDetails = issueDetails;
30
30
  }
31
31
 
32
32
  details(): Protocol.Audits.TrustedWebActivityIssueDetails {
33
- return this.issueDetails;
33
+ return this.#issueDetails;
34
34
  }
35
35
 
36
36
  getDescription(): MarkdownIssueDescription|null {
37
- const description = issueDescriptions.get(this.issueDetails.violationType);
37
+ const description = issueDescriptions.get(this.#issueDetails.violationType);
38
38
  if (!description) {
39
39
  return null;
40
40
  }
@@ -46,7 +46,7 @@ export class TrustedWebActivityIssue extends Issue {
46
46
  }
47
47
 
48
48
  primaryKey(): string {
49
- return `${Protocol.Audits.InspectorIssueCode.TrustedWebActivityIssue}-${JSON.stringify(this.issueDetails)}`;
49
+ return `${Protocol.Audits.InspectorIssueCode.TrustedWebActivityIssue}-${JSON.stringify(this.#issueDetails)}`;
50
50
  }
51
51
 
52
52
  getKind(): IssueKind {
@@ -20,13 +20,13 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
20
20
 
21
21
  export class WasmCrossOriginModuleSharingIssue extends
22
22
  Issue<Protocol.Audits.InspectorIssueCode.WasmCrossOriginModuleSharingIssue> {
23
- private issueDetails: Protocol.Audits.WasmCrossOriginModuleSharingIssueDetails;
23
+ #issueDetails: Protocol.Audits.WasmCrossOriginModuleSharingIssueDetails;
24
24
 
25
25
  constructor(
26
26
  issueDetails: Protocol.Audits.WasmCrossOriginModuleSharingIssueDetails,
27
27
  issuesModel: SDK.IssuesModel.IssuesModel) {
28
28
  super(Protocol.Audits.InspectorIssueCode.WasmCrossOriginModuleSharingIssue, issuesModel);
29
- this.issueDetails = issueDetails;
29
+ this.#issueDetails = issueDetails;
30
30
  }
31
31
 
32
32
  getCategory(): IssueCategory {
@@ -34,7 +34,7 @@ export class WasmCrossOriginModuleSharingIssue extends
34
34
  }
35
35
 
36
36
  details(): Protocol.Audits.WasmCrossOriginModuleSharingIssueDetails {
37
- return this.issueDetails;
37
+ return this.#issueDetails;
38
38
  }
39
39
 
40
40
  getDescription(): MarkdownIssueDescription|null {
@@ -48,11 +48,11 @@ export class WasmCrossOriginModuleSharingIssue extends
48
48
  }
49
49
 
50
50
  primaryKey(): string {
51
- return JSON.stringify(this.issueDetails);
51
+ return JSON.stringify(this.#issueDetails);
52
52
  }
53
53
 
54
54
  getKind(): IssueKind {
55
- return this.issueDetails.isWarning ? IssueKind.BreakingChange : IssueKind.PageError;
55
+ return this.#issueDetails.isWarning ? IssueKind.BreakingChange : IssueKind.PageError;
56
56
  }
57
57
 
58
58
  static fromInspectorIssue(issuesModel: SDK.IssuesModel.IssuesModel, inspectorIssue: Protocol.Audits.InspectorIssue):
@@ -122,7 +122,7 @@ export class TimelineModelImpl {
122
122
  static forEachEvent(
123
123
  events: SDK.TracingModel.Event[], onStartEvent: (arg0: SDK.TracingModel.Event) => void,
124
124
  onEndEvent: (arg0: SDK.TracingModel.Event) => void,
125
- onInstantEvent?: ((arg0: SDK.TracingModel.Event, arg1: SDK.TracingModel.Event|null) => any), startTime?: number,
125
+ onInstantEvent?: ((arg0: SDK.TracingModel.Event, arg1: SDK.TracingModel.Event|null) => void), startTime?: number,
126
126
  endTime?: number, filter?: ((arg0: SDK.TracingModel.Event) => boolean)): void {
127
127
  startTime = startTime || 0;
128
128
  endTime = endTime || Infinity;
@@ -178,7 +178,6 @@ export class TracingLayer implements SDK.LayerTreeBase.Layer {
178
178
  payload.compositing_reason_ids || (payload.debug_info && payload.debug_info.compositing_reason_ids) || [];
179
179
  this.drawsContentInternal = Boolean(payload.draws_content);
180
180
  this.gpuMemoryUsageInternal = payload.gpu_memory_usage;
181
- /** @type {!Array<!LayerPaintEvent>} */
182
181
  this.paints = [];
183
182
  }
184
183
 
@@ -39,7 +39,6 @@ export class ARIAMetadata {
39
39
  this.attributes.set(attributeConfig.name, new Attribute(attributeConfig));
40
40
  }
41
41
 
42
- /** @type {!Array<string>} */
43
42
  this.roleNames = config['roles'].map(roleConfig => roleConfig.name);
44
43
  }
45
44
 
@@ -499,11 +499,11 @@ export class AXBreadcrumb {
499
499
  }
500
500
 
501
501
  element(): HTMLElement {
502
- return /** @type {!HTMLElement} */ this.elementInternal as HTMLElement;
502
+ return this.elementInternal;
503
503
  }
504
504
 
505
505
  nodeElement(): HTMLElement {
506
- return /** @type {!HTMLElement} */ this.nodeElementInternal as HTMLElement;
506
+ return this.nodeElementInternal;
507
507
  }
508
508
 
509
509
  appendChild(breadcrumb: AXBreadcrumb): void {
@@ -203,8 +203,7 @@ export class AXNodeSubPane extends AccessibilitySubPane {
203
203
  };
204
204
  addProperty(roleProperty);
205
205
  }
206
- for (const property of /** @type {!Array.<!Protocol.Accessibility.AXProperty>} */ axNode.properties() as
207
- Protocol.Accessibility.AXProperty[]) {
206
+ for (const property of axNode.properties() as Protocol.Accessibility.AXProperty[]) {
208
207
  addProperty(property);
209
208
  }
210
209
 
@@ -240,7 +240,6 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
240
240
  UI.ARIAUtils.markAsListBox(playbackRateControl);
241
241
  UI.ARIAUtils.setAccessibleName(playbackRateControl, i18nString(UIStrings.playbackRates));
242
242
 
243
- /** @type {!Array<!HTMLElement>} */
244
243
  this.#playbackRateButtons = [];
245
244
  for (const playbackRate of GlobalPlaybackRates) {
246
245
  const button = (playbackRateControl.createChild('button', 'animation-playback-rate-button') as HTMLElement);
@@ -6,9 +6,9 @@ import type * as Common from '../../core/common/common.js';
6
6
  import * as i18n from '../../core/i18n/i18n.js';
7
7
  import * as SDK from '../../core/sdk/sdk.js';
8
8
  import * as UI from '../../ui/legacy/legacy.js';
9
+ import * as ApplicationComponents from './components/components.js';
9
10
 
10
11
  import {ApplicationPanelTreeElement, ExpandableApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
11
- import {BackForwardCacheView} from './BackForwardCacheView.js';
12
12
  import type {ResourcesPanel} from './ResourcesPanel.js';
13
13
  import {ServiceWorkerCacheView} from './ServiceWorkerCacheViews.js';
14
14
 
@@ -125,7 +125,6 @@ export class SWCacheTreeElement extends ApplicationPanelTreeElement {
125
125
  super(resourcesPanel, cache.cacheName + ' - ' + cache.securityOrigin, false);
126
126
  this.model = model;
127
127
  this.cache = cache;
128
- /** @type {?} */
129
128
  this.view = null;
130
129
  const icon = UI.Icon.Icon.create('mediumicon-table', 'resource-tree-item');
131
130
  this.setLeadingIcons([icon]);
@@ -175,7 +174,7 @@ export class SWCacheTreeElement extends ApplicationPanelTreeElement {
175
174
  }
176
175
 
177
176
  export class BackForwardCacheTreeElement extends ApplicationPanelTreeElement {
178
- private view?: BackForwardCacheView;
177
+ private view?: ApplicationComponents.BackForwardCacheView.BackForwardCacheViewWrapper;
179
178
 
180
179
  constructor(resourcesPanel: ResourcesPanel) {
181
180
  super(resourcesPanel, i18nString(UIStrings.backForwardCache), false);
@@ -190,7 +189,7 @@ export class BackForwardCacheTreeElement extends ApplicationPanelTreeElement {
190
189
  onselect(selectedByUser?: boolean): boolean {
191
190
  super.onselect(selectedByUser);
192
191
  if (!this.view) {
193
- this.view = new BackForwardCacheView();
192
+ this.view = new ApplicationComponents.BackForwardCacheView.BackForwardCacheViewWrapper();
194
193
  }
195
194
  this.showView(this.view);
196
195
  return false;
@@ -105,7 +105,6 @@ export class ServiceWorkerUpdateCycleView {
105
105
  }
106
106
  state = state.previousState;
107
107
  }
108
- /** @type {Array <ServiceWorkerUpdateRange>} */
109
108
  const ranges: Array<ServiceWorkerUpdateRange> = [];
110
109
  addNormalizedRanges(
111
110
  ranges, version.id, beginInstallTime, endInstallTime, beginActivateTime, endActivateTime, currentStatus);
@@ -158,7 +157,6 @@ export class ServiceWorkerUpdateCycleView {
158
157
  this.selectedRowIndex = -1;
159
158
  this.removeRows();
160
159
  this.createTimingTableHead();
161
- /** @type {!Array<ServiceWorkerUpdateRange>} */
162
160
  const timeRangeArray = timeRanges;
163
161
  if (timeRangeArray.length === 0) {
164
162
  return;
@@ -178,9 +178,7 @@ export class StorageView extends UI.ThrottledWidget.ThrottledWidget {
178
178
 
179
179
  this.reportView.element.classList.add('clear-storage-header');
180
180
  this.reportView.show(this.contentElement);
181
- /** @type {?SDK.Target.Target} */
182
181
  this.target = null;
183
- /** @type {?string} */
184
182
  this.securityOrigin = null;
185
183
 
186
184
  this.settings = new Map();
@@ -213,7 +211,6 @@ export class StorageView extends UI.ThrottledWidget.ThrottledWidget {
213
211
  quotaOverrideCheckboxRow.appendChild(this.quotaOverrideCheckbox);
214
212
  this.quotaOverrideCheckbox.checkboxElement.addEventListener('click', this.onClickCheckbox.bind(this), false);
215
213
  this.quotaOverrideControlRow = quota.appendRow();
216
- /** @type {!HTMLInputElement} */
217
214
  this.quotaOverrideEditor =
218
215
  this.quotaOverrideControlRow.createChild('input', 'quota-override-notification-editor') as HTMLInputElement;
219
216
  this.quotaOverrideControlRow.appendChild(UI.UIUtils.createLabel(i18nString(UIStrings.mb)));
@@ -446,7 +443,7 @@ export class StorageView extends UI.ThrottledWidget.ThrottledWidget {
446
443
  return;
447
444
  }
448
445
 
449
- const securityOrigin = /** @type {string} */ (this.securityOrigin);
446
+ const securityOrigin = this.securityOrigin;
450
447
  const response = await this.target.storageAgent().invoke_getUsageAndQuota({origin: securityOrigin});
451
448
  this.quotaRow.textContent = '';
452
449
  if (response.getError()) {
@@ -475,8 +472,7 @@ export class StorageView extends UI.ThrottledWidget.ThrottledWidget {
475
472
 
476
473
  if (this.quotaUsage === null || this.quotaUsage !== response.usage) {
477
474
  this.quotaUsage = response.usage;
478
- /** @type {!Array<!PerfUI.PieChart.Slice>} */
479
- const slices = [];
475
+ const slices: PerfUI.PieChart.Slice[] = [];
480
476
  for (const usageForType of response.usageBreakdown.sort((a, b) => b.usage - a.usage)) {
481
477
  const value = usageForType.usage;
482
478
  if (!value) {
@@ -2,7 +2,7 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- import * as i18n from '../../core/i18n/i18n.js';
5
+ import * as i18n from '../../../core/i18n/i18n.js';
6
6
 
7
7
  const UIStrings = {
8
8
  /**
@@ -422,7 +422,7 @@ const UIStrings = {
422
422
  contentMediaPlay: 'A media player was playing upon navigating away.',
423
423
  };
424
424
 
425
- const str_ = i18n.i18n.registerUIStrings('panels/application/BackForwardCacheStrings.ts', UIStrings);
425
+ const str_ = i18n.i18n.registerUIStrings('panels/application/components/BackForwardCacheStrings.ts', UIStrings);
426
426
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
427
427
 
428
428
  export const NotRestoredReasonDescription = {