chrome-devtools-frontend 1.0.950971 → 1.0.952403

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 (401) hide show
  1. package/config/gni/devtools_grd_files.gni +6 -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/host/UserMetrics.ts +2 -1
  12. package/front_end/core/i18n/locales/en-US.json +186 -183
  13. package/front_end/core/i18n/locales/en-XL.json +186 -183
  14. package/front_end/core/root/Runtime.ts +4 -12
  15. package/front_end/core/sdk/CSSRule.ts +1 -1
  16. package/front_end/core/sdk/DOMModel.ts +12 -37
  17. package/front_end/core/sdk/OverlayModel.ts +18 -34
  18. package/front_end/core/sdk/OverlayPersistentHighlighter.ts +0 -12
  19. package/front_end/core/sdk/PageResourceLoader.ts +2 -1
  20. package/front_end/core/sdk/RuntimeModel.ts +0 -1
  21. package/front_end/core/sdk/SourceMap.ts +1 -1
  22. package/front_end/core/sdk/TracingManager.ts +0 -3
  23. package/front_end/entrypoints/formatter_worker/AcornTokenizer.ts +39 -39
  24. package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +54 -54
  25. package/front_end/entrypoints/formatter_worker/ESTreeWalker.ts +20 -20
  26. package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +54 -54
  27. package/front_end/entrypoints/formatter_worker/HTMLFormatter.ts +145 -144
  28. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +40 -40
  29. package/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts +65 -70
  30. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +203 -204
  31. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +109 -108
  32. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +18 -18
  33. package/front_end/entrypoints/inspector_main/InspectorMain.ts +30 -30
  34. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +25 -25
  35. package/front_end/entrypoints/main/ExecutionContextSelector.ts +52 -55
  36. package/front_end/entrypoints/main/MainImpl.ts +49 -49
  37. package/front_end/entrypoints/node_app/NodeConnectionsPanel.ts +43 -43
  38. package/front_end/entrypoints/node_app/NodeMain.ts +38 -38
  39. package/front_end/generated/InspectorBackendCommands.js +5 -1
  40. package/front_end/generated/protocol.d.ts +16 -0
  41. package/front_end/legacy/legacy-defs.d.ts +0 -21
  42. package/front_end/models/bindings/CSSWorkspaceBinding.ts +0 -3
  43. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -2
  44. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -4
  45. package/front_end/models/bindings/FileUtils.ts +0 -4
  46. package/front_end/models/bindings/IgnoreListManager.ts +1 -2
  47. package/front_end/models/bindings/NetworkProject.ts +1 -2
  48. package/front_end/models/extensions/ExtensionAPI.ts +2 -2
  49. package/front_end/models/extensions/ExtensionTraceProvider.ts +0 -3
  50. package/front_end/models/heap_snapshot_model/HeapSnapshotModel.ts +1 -1
  51. package/front_end/models/issues_manager/ClientHintIssue.ts +95 -0
  52. package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +6 -6
  53. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +15 -15
  54. package/front_end/models/issues_manager/CorsIssue.ts +9 -9
  55. package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +5 -5
  56. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
  57. package/front_end/models/issues_manager/GenericIssue.ts +5 -5
  58. package/front_end/models/issues_manager/HeavyAdIssue.ts +5 -5
  59. package/front_end/models/issues_manager/Issue.ts +10 -10
  60. package/front_end/models/issues_manager/IssueResolver.ts +11 -10
  61. package/front_end/models/issues_manager/IssuesManager.ts +61 -56
  62. package/front_end/models/issues_manager/LowTextContrastIssue.ts +4 -4
  63. package/front_end/models/issues_manager/MixedContentIssue.ts +7 -7
  64. package/front_end/models/issues_manager/NavigatorUserAgentIssue.ts +7 -7
  65. package/front_end/models/issues_manager/QuirksModeIssue.ts +4 -4
  66. package/front_end/models/issues_manager/SameSiteCookieIssue.ts +17 -18
  67. package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +5 -5
  68. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +32 -31
  69. package/front_end/models/issues_manager/TrustedWebActivityIssue.ts +5 -5
  70. package/front_end/models/issues_manager/WasmCrossOriginModuleSharingIssue.ts +5 -5
  71. package/front_end/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  72. package/front_end/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  73. package/front_end/models/issues_manager/issues_manager.ts +2 -0
  74. package/front_end/models/timeline_model/TimelineModel.ts +1 -1
  75. package/front_end/models/timeline_model/TracingLayerTree.ts +0 -1
  76. package/front_end/panels/accessibility/ARIAMetadata.ts +0 -1
  77. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +2 -2
  78. package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
  79. package/front_end/panels/animation/AnimationTimeline.ts +0 -1
  80. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -4
  81. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +0 -2
  82. package/front_end/panels/application/StorageView.ts +2 -6
  83. package/front_end/panels/application/{BackForwardCacheStrings.ts → components/BackForwardCacheStrings.ts} +2 -2
  84. package/front_end/panels/application/{BackForwardCacheView.ts → components/BackForwardCacheView.ts} +96 -62
  85. package/front_end/panels/application/components/EndpointsGrid.ts +12 -12
  86. package/front_end/panels/application/components/FrameDetailsView.ts +108 -110
  87. package/front_end/panels/application/components/OriginTrialTreeView.ts +45 -45
  88. package/front_end/panels/application/components/PermissionsPolicySection.ts +19 -19
  89. package/front_end/panels/application/components/ReportsGrid.ts +30 -30
  90. package/front_end/panels/application/components/StackTrace.ts +48 -47
  91. package/front_end/panels/application/components/TrustTokensView.ts +31 -31
  92. package/front_end/panels/application/{backForwardCacheView.css → components/backForwardCacheView.css} +9 -0
  93. package/front_end/panels/application/components/components.ts +2 -0
  94. package/front_end/panels/console/ConsoleView.ts +1 -1
  95. package/front_end/panels/console/ConsoleViewMessage.ts +1 -25
  96. package/front_end/panels/console/consoleView.css +5 -0
  97. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +41 -52
  98. package/front_end/panels/css_overview/CSSOverviewController.ts +2 -2
  99. package/front_end/panels/css_overview/CSSOverviewPanel.ts +18 -27
  100. package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
  101. package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +6 -6
  102. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +4 -4
  103. package/front_end/panels/elements/ComputedStyleModel.ts +2 -2
  104. package/front_end/panels/elements/ElementsPanel.ts +1 -5
  105. package/front_end/panels/elements/ElementsTreeElement.ts +2 -6
  106. package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
  107. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  108. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +17 -17
  109. package/front_end/panels/elements/components/AdornerManager.ts +21 -21
  110. package/front_end/panels/elements/components/AdornerSettingsPane.ts +14 -14
  111. package/front_end/panels/elements/components/CSSQuery.ts +16 -16
  112. package/front_end/panels/elements/components/ComputedStyleProperty.ts +14 -14
  113. package/front_end/panels/elements/components/ComputedStyleTrace.ts +15 -15
  114. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +78 -78
  115. package/front_end/panels/elements/components/ElementsPanelLink.ts +16 -16
  116. package/front_end/panels/elements/components/LayoutPane.ts +47 -47
  117. package/front_end/panels/elements/components/NodeText.ts +18 -18
  118. package/front_end/panels/elements/components/QueryContainer.ts +40 -40
  119. package/front_end/panels/elements/components/StylePropertyEditor.ts +18 -18
  120. package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +4 -4
  121. package/front_end/panels/event_listeners/EventListenersUtils.ts +2 -1
  122. package/front_end/panels/issues/AffectedBlockedByResponseView.ts +4 -4
  123. package/front_end/panels/issues/AffectedCookiesView.ts +4 -5
  124. package/front_end/panels/issues/AffectedDirectivesView.ts +19 -19
  125. package/front_end/panels/issues/AffectedDocumentsInQuirksModeView.ts +7 -8
  126. package/front_end/panels/issues/AffectedElementsView.ts +4 -4
  127. package/front_end/panels/issues/AffectedElementsWithLowContrastView.ts +7 -8
  128. package/front_end/panels/issues/AffectedHeavyAdView.ts +8 -8
  129. package/front_end/panels/issues/AffectedResourcesView.ts +25 -26
  130. package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +8 -8
  131. package/front_end/panels/issues/AffectedSourcesView.ts +4 -4
  132. package/front_end/panels/issues/AffectedTrustedWebActivityIssueDetailsView.ts +4 -4
  133. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +17 -17
  134. package/front_end/panels/issues/CSPViolationsListView.ts +22 -23
  135. package/front_end/panels/issues/CSPViolationsView.ts +17 -17
  136. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +13 -13
  137. package/front_end/panels/issues/CorsIssueDetailsView.ts +23 -23
  138. package/front_end/panels/issues/GenericIssueDetailsView.ts +4 -4
  139. package/front_end/panels/issues/HiddenIssuesRow.ts +7 -7
  140. package/front_end/panels/issues/IssueAggregator.ts +95 -95
  141. package/front_end/panels/issues/IssueKindView.ts +14 -14
  142. package/front_end/panels/issues/IssueView.ts +98 -98
  143. package/front_end/panels/issues/IssuesPane.ts +102 -102
  144. package/front_end/panels/issues/WasmCrossOriginModuleSharingAffectedResourcesView.ts +5 -5
  145. package/front_end/panels/issues/components/HideIssuesMenu.ts +10 -10
  146. package/front_end/panels/layer_viewer/Layers3DView.ts +3 -9
  147. package/front_end/panels/lighthouse/LighthouseController.ts +4 -5
  148. package/front_end/panels/media/PlayerListView.ts +160 -97
  149. package/front_end/panels/media/PlayerMessagesView.ts +1 -0
  150. package/front_end/panels/media/TickingFlameChart.ts +1 -2
  151. package/front_end/panels/media/playerListView.css +58 -0
  152. package/front_end/panels/network/NetworkLogView.ts +2 -6
  153. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  154. package/front_end/panels/network/NetworkWaterfallColumn.ts +2 -4
  155. package/front_end/panels/network/components/RequestTrustTokensView.ts +40 -40
  156. package/front_end/panels/network/components/WebBundleInfoView.ts +9 -9
  157. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +92 -37
  158. package/front_end/panels/performance_monitor/performanceMonitor.css +32 -0
  159. package/front_end/panels/profiler/HeapProfileView.ts +1 -1
  160. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +0 -1
  161. package/front_end/panels/profiler/HeapSnapshotView.ts +1 -2
  162. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +2 -2
  163. package/front_end/panels/search/SearchConfig.ts +0 -6
  164. package/front_end/panels/security/SecurityModel.ts +2 -4
  165. package/front_end/panels/security/SecurityPanel.ts +2 -2
  166. package/front_end/panels/settings/KeybindsSettingsTab.ts +4 -0
  167. package/front_end/panels/settings/components/SyncSection.ts +14 -14
  168. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +96 -96
  169. package/front_end/panels/sources/BreakpointEditDialog.ts +4 -3
  170. package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
  171. package/front_end/panels/sources/NavigatorView.ts +4 -10
  172. package/front_end/panels/sources/ScopeChainSidebarPane.ts +2 -3
  173. package/front_end/panels/sources/SourceMapNamesResolver.ts +3 -3
  174. package/front_end/panels/sources/SourcesPanel.ts +1 -3
  175. package/front_end/panels/sources/SourcesView.ts +0 -3
  176. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -4
  177. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -5
  178. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +0 -1
  179. package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -2
  180. package/front_end/panels/timeline/TimelineLoader.ts +0 -3
  181. package/front_end/panels/timeline/TimelinePanel.ts +2 -3
  182. package/front_end/panels/timeline/TimelineTreeView.ts +1 -1
  183. package/front_end/panels/timeline/TimelineUIUtils.ts +1 -1
  184. package/front_end/panels/timeline/components/WebVitalsLane.ts +77 -76
  185. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +133 -133
  186. package/front_end/panels/timeline/components/WebVitalsTooltip.ts +9 -9
  187. package/front_end/panels/webauthn/WebauthnPane.ts +203 -205
  188. package/front_end/third_party/codemirror.next/bundle.ts +3 -3
  189. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  190. package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -1
  191. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +10 -1
  192. package/front_end/third_party/codemirror.next/codemirror.next.js +2 -1
  193. package/front_end/third_party/codemirror.next/package.json +3 -3
  194. package/front_end/third_party/diff/DiffWrapper.ts +7 -0
  195. package/front_end/third_party/puppeteer/package/README.md +11 -11
  196. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts +4 -5
  197. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +2 -2
  198. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  199. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +4 -6
  200. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +1 -2
  201. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +1 -4
  202. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +1 -4
  203. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +9 -7
  204. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +21 -12
  206. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
  207. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +1 -3
  208. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -2
  209. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +3 -5
  210. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +1 -3
  211. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +8 -10
  212. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +3 -3
  213. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +50 -11
  215. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +70 -33
  217. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +12 -5
  219. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  220. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +25 -5
  221. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
  222. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -4
  223. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +39 -6
  224. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  225. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +36 -0
  226. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  227. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +3 -4
  228. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  229. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +2 -1
  230. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  231. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +46 -0
  232. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
  233. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +124 -0
  234. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -0
  235. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +27 -10
  236. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  237. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +144 -74
  238. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  239. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +5 -6
  240. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +1 -2
  241. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +4 -6
  242. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +3 -5
  243. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +4 -5
  244. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  245. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +43 -17
  246. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  247. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +1 -1
  248. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +1 -3
  249. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
  250. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +101 -34
  251. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  252. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
  253. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +1 -2
  254. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +5 -7
  255. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  256. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +4 -5
  257. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +2 -2
  258. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  259. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +4 -6
  260. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +2 -3
  261. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +1 -2
  262. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -5
  263. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +1 -4
  264. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +1 -4
  265. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +1 -2
  266. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +9 -7
  267. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
  268. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +24 -17
  269. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
  270. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +1 -3
  271. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -2
  272. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +3 -5
  273. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +1 -3
  274. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +8 -10
  275. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +7 -8
  276. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  277. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +50 -11
  278. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  279. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +70 -34
  280. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  281. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +12 -5
  282. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
  283. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +26 -7
  284. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
  285. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -4
  286. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +39 -6
  287. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  288. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +38 -4
  289. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  290. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +3 -4
  291. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  292. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +4 -4
  293. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
  294. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +46 -0
  295. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
  296. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +120 -0
  297. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -0
  298. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +27 -10
  299. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  300. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +144 -75
  301. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  302. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -14
  303. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +5 -6
  304. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +3 -4
  305. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +1 -2
  306. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +4 -6
  307. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +3 -5
  308. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +1 -2
  309. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +3 -5
  310. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +1 -3
  311. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +10 -12
  312. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +4 -5
  313. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  314. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +43 -20
  315. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  316. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +1 -1
  317. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +1 -3
  318. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
  319. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +104 -40
  320. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  321. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
  322. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +1 -2
  323. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -2
  324. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +5 -7
  325. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +1 -3
  326. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +3 -5
  327. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +1 -2
  328. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js +1 -2
  329. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  330. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js +1 -2
  331. package/front_end/third_party/puppeteer/package/lib/types.d.ts +173 -36
  332. package/front_end/third_party/puppeteer/package/package.json +3 -3
  333. package/front_end/ui/components/adorners/Adorner.ts +2 -2
  334. package/front_end/ui/components/buttons/Button.ts +9 -9
  335. package/front_end/ui/components/data_grid/DataGrid.ts +64 -64
  336. package/front_end/ui/components/data_grid/DataGridController.ts +22 -22
  337. package/front_end/ui/components/data_grid/DataGridUtils.ts +3 -0
  338. package/front_end/ui/components/diff_view/DiffView.ts +6 -6
  339. package/front_end/ui/components/expandable_list/ExpandableList.ts +5 -5
  340. package/front_end/ui/components/icon_button/Icon.ts +4 -4
  341. package/front_end/ui/components/icon_button/IconButton.ts +4 -4
  342. package/front_end/ui/components/issue_counter/IssueCounter.ts +3 -3
  343. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +11 -11
  344. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +50 -50
  345. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +6 -6
  346. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +4 -4
  347. package/front_end/ui/components/linear_memory_inspector/LinearMemoryNavigator.ts +12 -12
  348. package/front_end/ui/components/linear_memory_inspector/LinearMemoryValueInterpreter.ts +11 -11
  349. package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +40 -39
  350. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterDisplay.ts +18 -18
  351. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterSettings.ts +6 -6
  352. package/front_end/ui/components/linkifier/LinkifierImpl.ts +4 -4
  353. package/front_end/ui/components/markdown_view/MarkdownImage.ts +5 -5
  354. package/front_end/ui/components/markdown_view/MarkdownLink.ts +2 -2
  355. package/front_end/ui/components/markdown_view/MarkdownView.ts +4 -5
  356. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +2 -2
  357. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +2 -2
  358. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +4 -4
  359. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +22 -22
  360. package/front_end/ui/components/report_view/ReportView.ts +16 -16
  361. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +14 -14
  362. package/front_end/ui/components/settings/SettingCheckbox.ts +5 -5
  363. package/front_end/ui/components/survey_link/SurveyLink.ts +8 -8
  364. package/front_end/ui/components/text_editor/TextEditor.ts +9 -9
  365. package/front_end/ui/components/text_editor/cursor_tooltip.ts +7 -1
  366. package/front_end/ui/components/text_prompt/TextPrompt.ts +18 -18
  367. package/front_end/ui/components/tree_outline/TreeOutline.ts +69 -70
  368. package/front_end/ui/legacy/ContextFlavorListener.ts +0 -4
  369. package/front_end/ui/legacy/ContextMenu.ts +2 -3
  370. package/front_end/ui/legacy/InspectorView.ts +1 -1
  371. package/front_end/ui/legacy/ReportView.ts +3 -4
  372. package/front_end/ui/legacy/SearchableView.ts +14 -6
  373. package/front_end/ui/legacy/SplitWidget.ts +2 -3
  374. package/front_end/ui/legacy/SuggestBox.ts +0 -3
  375. package/front_end/ui/legacy/TextPrompt.ts +1 -1
  376. package/front_end/ui/legacy/UIUtils.ts +1 -1
  377. package/front_end/ui/legacy/XLink.ts +1 -1
  378. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
  379. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +9 -9
  380. package/front_end/ui/legacy/components/data_grid/dataGrid.css +7 -7
  381. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
  382. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +1 -5
  383. package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -1
  384. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +13 -13
  385. package/front_end/ui/legacy/components/source_frame/XMLView.ts +2 -2
  386. package/front_end/ui/legacy/components/utils/Linkifier.ts +2 -2
  387. package/front_end/ui/legacy/themeColors.css +2 -0
  388. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +42 -4
  389. package/package.json +1 -1
  390. package/scripts/eslint_rules/lib/use_private_class_members.js +41 -0
  391. package/scripts/eslint_rules/tests/use_private_class_members_test.js +62 -0
  392. package/scripts/migration/class-fields/migrate.js +2 -3
  393. package/scripts/migration/class-fields/migrate.sh +1 -3
  394. package/scripts/migration/class-fields/package.json +1 -1
  395. package/config/gni/all_devtools_files.gni +0 -255
  396. package/scripts/build/devtools_file_hashes.py +0 -82
  397. package/scripts/devtools_run/devtools_run_cli +0 -49
  398. package/scripts/devtools_run/package.json +0 -13
  399. package/scripts/unzip.py +0 -20
  400. package/scripts/visualize_deps/jquery_svg.html +0 -57
  401. package/scripts/visualize_deps/run_visualize.js +0 -119
@@ -38,8 +38,8 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
38
38
  let nodeConnectionsPanelInstance: NodeConnectionsPanel;
39
39
 
40
40
  export class NodeConnectionsPanel extends UI.Panel.Panel {
41
- private config!: Adb.Config;
42
- private readonly networkDiscoveryView: NodeConnectionsView;
41
+ #config!: Adb.Config;
42
+ readonly #networkDiscoveryView: NodeConnectionsView;
43
43
  private constructor() {
44
44
  super('node-connection');
45
45
 
@@ -51,7 +51,7 @@ export class NodeConnectionsPanel extends UI.Panel.Panel {
51
51
  image.src = 'https://nodejs.org/static/images/logos/nodejs-new-pantone-black.svg';
52
52
 
53
53
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(
54
- Host.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, this.devicesDiscoveryConfigChanged, this);
54
+ Host.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, this.#devicesDiscoveryConfigChanged, this);
55
55
 
56
56
  this.contentElement.tabIndex = 0;
57
57
  this.setDefaultFocusedElement(this.contentElement);
@@ -60,11 +60,11 @@ export class NodeConnectionsPanel extends UI.Panel.Panel {
60
60
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesUpdatesEnabled(false);
61
61
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesUpdatesEnabled(true);
62
62
 
63
- this.networkDiscoveryView = new NodeConnectionsView(config => {
64
- this.config.networkDiscoveryConfig = config;
65
- Host.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesDiscoveryConfig(this.config);
63
+ this.#networkDiscoveryView = new NodeConnectionsView(config => {
64
+ this.#config.networkDiscoveryConfig = config;
65
+ Host.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesDiscoveryConfig(this.#config);
66
66
  });
67
- this.networkDiscoveryView.show(container);
67
+ this.#networkDiscoveryView.show(container);
68
68
  }
69
69
 
70
70
  static instance(opts: {
@@ -78,9 +78,9 @@ export class NodeConnectionsPanel extends UI.Panel.Panel {
78
78
  return nodeConnectionsPanelInstance;
79
79
  }
80
80
 
81
- private devicesDiscoveryConfigChanged({data: config}: Common.EventTarget.EventTargetEvent<Adb.Config>): void {
82
- this.config = config;
83
- this.networkDiscoveryView.discoveryConfigChanged(this.config.networkDiscoveryConfig);
81
+ #devicesDiscoveryConfigChanged({data: config}: Common.EventTarget.EventTargetEvent<Adb.Config>): void {
82
+ this.#config = config;
83
+ this.#networkDiscoveryView.discoveryConfigChanged(this.#config.networkDiscoveryConfig);
84
84
  }
85
85
  wasShown(): void {
86
86
  super.wasShown();
@@ -89,15 +89,15 @@ export class NodeConnectionsPanel extends UI.Panel.Panel {
89
89
  }
90
90
 
91
91
  export class NodeConnectionsView extends UI.Widget.VBox implements UI.ListWidget.Delegate<Adb.PortForwardingRule> {
92
- private readonly callback: (arg0: Adb.NetworkDiscoveryConfig) => void;
93
- private readonly list: UI.ListWidget.ListWidget<Adb.PortForwardingRule>;
94
- private editor: UI.ListWidget.Editor<Adb.PortForwardingRule>|null;
95
- private networkDiscoveryConfig: {
92
+ readonly #callback: (arg0: Adb.NetworkDiscoveryConfig) => void;
93
+ readonly #list: UI.ListWidget.ListWidget<Adb.PortForwardingRule>;
94
+ #editor: UI.ListWidget.Editor<Adb.PortForwardingRule>|null;
95
+ #networkDiscoveryConfig: {
96
96
  address: string,
97
97
  }[];
98
98
  constructor(callback: (arg0: Adb.NetworkDiscoveryConfig) => void) {
99
99
  super();
100
- this.callback = callback;
100
+ this.#callback = callback;
101
101
  this.element.classList.add('network-discovery-view');
102
102
 
103
103
  const networkDiscoveryFooter = this.element.createChild('div', 'network-discovery-footer');
@@ -106,42 +106,42 @@ export class NodeConnectionsView extends UI.Widget.VBox implements UI.ListWidget
106
106
  networkDiscoveryFooter.appendChild(
107
107
  i18n.i18n.getFormatLocalizedString(str_, UIStrings.specifyNetworkEndpointAnd, {PH1: documentationLink}));
108
108
 
109
- this.list = new UI.ListWidget.ListWidget(this);
109
+ this.#list = new UI.ListWidget.ListWidget(this);
110
110
 
111
- this.list.element.classList.add('network-discovery-list');
111
+ this.#list.element.classList.add('network-discovery-list');
112
112
  const placeholder = document.createElement('div');
113
113
  placeholder.classList.add('network-discovery-list-empty');
114
114
  placeholder.textContent = i18nString(UIStrings.noConnectionsSpecified);
115
- this.list.setEmptyPlaceholder(placeholder);
116
- this.list.show(this.element);
117
- this.editor = null;
115
+ this.#list.setEmptyPlaceholder(placeholder);
116
+ this.#list.show(this.element);
117
+ this.#editor = null;
118
118
 
119
119
  const addButton = UI.UIUtils.createTextButton(
120
- i18nString(UIStrings.addConnection), this.addNetworkTargetButtonClicked.bind(this), 'add-network-target-button',
121
- true /* primary */);
120
+ i18nString(UIStrings.addConnection), this.#addNetworkTargetButtonClicked.bind(this),
121
+ 'add-network-target-button', true /* primary */);
122
122
  this.element.appendChild(addButton);
123
123
 
124
- this.networkDiscoveryConfig = [];
124
+ this.#networkDiscoveryConfig = [];
125
125
 
126
126
  this.element.classList.add('node-frontend');
127
127
  }
128
128
 
129
- private update(): void {
130
- const config = this.networkDiscoveryConfig.map(item => item.address);
131
- this.callback.call(null, config);
129
+ #update(): void {
130
+ const config = this.#networkDiscoveryConfig.map(item => item.address);
131
+ this.#callback.call(null, config);
132
132
  }
133
133
 
134
- private addNetworkTargetButtonClicked(): void {
135
- this.list.addNewItem(this.networkDiscoveryConfig.length, {address: '', port: ''});
134
+ #addNetworkTargetButtonClicked(): void {
135
+ this.#list.addNewItem(this.#networkDiscoveryConfig.length, {address: '', port: ''});
136
136
  }
137
137
 
138
138
  discoveryConfigChanged(networkDiscoveryConfig: Adb.NetworkDiscoveryConfig): void {
139
- this.networkDiscoveryConfig = [];
140
- this.list.clear();
139
+ this.#networkDiscoveryConfig = [];
140
+ this.#list.clear();
141
141
  for (const address of networkDiscoveryConfig) {
142
142
  const item = {address: address, port: ''};
143
- this.networkDiscoveryConfig.push(item);
144
- this.list.appendItem(item, true);
143
+ this.#networkDiscoveryConfig.push(item);
144
+ this.#list.appendItem(item, true);
145
145
  }
146
146
  }
147
147
 
@@ -153,32 +153,32 @@ export class NodeConnectionsView extends UI.Widget.VBox implements UI.ListWidget
153
153
  }
154
154
 
155
155
  removeItemRequested(rule: Adb.PortForwardingRule, index: number): void {
156
- this.networkDiscoveryConfig.splice(index, 1);
157
- this.list.removeItem(index);
158
- this.update();
156
+ this.#networkDiscoveryConfig.splice(index, 1);
157
+ this.#list.removeItem(index);
158
+ this.#update();
159
159
  }
160
160
 
161
161
  commitEdit(rule: Adb.PortForwardingRule, editor: UI.ListWidget.Editor<Adb.PortForwardingRule>, isNew: boolean): void {
162
162
  rule.address = editor.control('address').value.trim();
163
163
  if (isNew) {
164
- this.networkDiscoveryConfig.push(rule);
164
+ this.#networkDiscoveryConfig.push(rule);
165
165
  }
166
- this.update();
166
+ this.#update();
167
167
  }
168
168
 
169
169
  beginEdit(rule: Adb.PortForwardingRule): UI.ListWidget.Editor<Adb.PortForwardingRule> {
170
- const editor = this.createEditor();
170
+ const editor = this.#createEditor();
171
171
  editor.control('address').value = rule.address;
172
172
  return editor;
173
173
  }
174
174
 
175
- private createEditor(): UI.ListWidget.Editor<Adb.PortForwardingRule> {
176
- if (this.editor) {
177
- return this.editor;
175
+ #createEditor(): UI.ListWidget.Editor<Adb.PortForwardingRule> {
176
+ if (this.#editor) {
177
+ return this.#editor;
178
178
  }
179
179
 
180
180
  const editor = new UI.ListWidget.Editor<Adb.PortForwardingRule>();
181
- this.editor = editor;
181
+ this.#editor = editor;
182
182
  const content = editor.contentElement();
183
183
  const fields = content.createChild('div', 'network-discovery-edit-row');
184
184
  const input =
@@ -204,6 +204,6 @@ export class NodeConnectionsView extends UI.Widget.VBox implements UI.ListWidget
204
204
  }
205
205
  wasShown(): void {
206
206
  super.wasShown();
207
- this.list.registerCSSFiles([nodeConnectionsPanelStyles]);
207
+ this.#list.registerCSSFiles([nodeConnectionsPanelStyles]);
208
208
  }
209
209
  }
@@ -46,29 +46,29 @@ export class NodeMainImpl implements Common.Runnable.Runnable {
46
46
  }
47
47
 
48
48
  export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implements ProtocolProxyApi.TargetDispatcher {
49
- private readonly targetManager: SDK.TargetManager.TargetManager;
50
- private readonly parentTarget: SDK.Target.Target;
51
- private readonly targetAgent: ProtocolProxyApi.TargetApi;
52
- private readonly childTargets: Map<Protocol.Target.SessionID, SDK.Target.Target>;
53
- private readonly childConnections: Map<string, NodeConnection>;
49
+ readonly #targetManager: SDK.TargetManager.TargetManager;
50
+ readonly #parentTarget: SDK.Target.Target;
51
+ readonly #targetAgent: ProtocolProxyApi.TargetApi;
52
+ readonly #childTargets: Map<Protocol.Target.SessionID, SDK.Target.Target>;
53
+ readonly #childConnections: Map<string, NodeConnection>;
54
54
  constructor(parentTarget: SDK.Target.Target) {
55
55
  super(parentTarget);
56
- this.targetManager = parentTarget.targetManager();
57
- this.parentTarget = parentTarget;
58
- this.targetAgent = parentTarget.targetAgent();
59
- this.childTargets = new Map();
60
- this.childConnections = new Map();
56
+ this.#targetManager = parentTarget.targetManager();
57
+ this.#parentTarget = parentTarget;
58
+ this.#targetAgent = parentTarget.targetAgent();
59
+ this.#childTargets = new Map();
60
+ this.#childConnections = new Map();
61
61
 
62
62
  parentTarget.registerTargetDispatcher(this);
63
- this.targetAgent.invoke_setDiscoverTargets({discover: true});
63
+ this.#targetAgent.invoke_setDiscoverTargets({discover: true});
64
64
 
65
65
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(
66
- Host.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, this.devicesDiscoveryConfigChanged, this);
66
+ Host.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, this.#devicesDiscoveryConfigChanged, this);
67
67
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesUpdatesEnabled(false);
68
68
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesUpdatesEnabled(true);
69
69
  }
70
70
 
71
- private devicesDiscoveryConfigChanged({data: config}: Common.EventTarget.EventTargetEvent<Adb.Config>): void {
71
+ #devicesDiscoveryConfigChanged({data: config}: Common.EventTarget.EventTargetEvent<Adb.Config>): void {
72
72
  const locations = [];
73
73
  for (const address of config.networkDiscoveryConfig) {
74
74
  const parts = address.split(':');
@@ -77,21 +77,21 @@ export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implemen
77
77
  locations.push({host: parts[0], port: port});
78
78
  }
79
79
  }
80
- this.targetAgent.invoke_setRemoteLocations({locations});
80
+ this.#targetAgent.invoke_setRemoteLocations({locations});
81
81
  }
82
82
 
83
83
  dispose(): void {
84
84
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.events.removeEventListener(
85
- Host.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, this.devicesDiscoveryConfigChanged, this);
85
+ Host.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, this.#devicesDiscoveryConfigChanged, this);
86
86
 
87
- for (const sessionId of this.childTargets.keys()) {
87
+ for (const sessionId of this.#childTargets.keys()) {
88
88
  this.detachedFromTarget({sessionId});
89
89
  }
90
90
  }
91
91
 
92
92
  targetCreated({targetInfo}: Protocol.Target.TargetCreatedEvent): void {
93
93
  if (targetInfo.type === 'node' && !targetInfo.attached) {
94
- this.targetAgent.invoke_attachToTarget({targetId: targetInfo.targetId, flatten: false});
94
+ this.#targetAgent.invoke_attachToTarget({targetId: targetInfo.targetId, flatten: false});
95
95
  }
96
96
  }
97
97
 
@@ -103,25 +103,25 @@ export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implemen
103
103
 
104
104
  attachedToTarget({sessionId, targetInfo}: Protocol.Target.AttachedToTargetEvent): void {
105
105
  const name = i18nString(UIStrings.nodejsS, {PH1: targetInfo.url});
106
- const connection = new NodeConnection(this.targetAgent, sessionId);
107
- this.childConnections.set(sessionId, connection);
108
- const target = this.targetManager.createTarget(
109
- targetInfo.targetId, name, SDK.Target.Type.Node, this.parentTarget, undefined, undefined, connection);
110
- this.childTargets.set(sessionId, target);
106
+ const connection = new NodeConnection(this.#targetAgent, sessionId);
107
+ this.#childConnections.set(sessionId, connection);
108
+ const target = this.#targetManager.createTarget(
109
+ targetInfo.targetId, name, SDK.Target.Type.Node, this.#parentTarget, undefined, undefined, connection);
110
+ this.#childTargets.set(sessionId, target);
111
111
  target.runtimeAgent().invoke_runIfWaitingForDebugger();
112
112
  }
113
113
 
114
114
  detachedFromTarget({sessionId}: Protocol.Target.DetachedFromTargetEvent): void {
115
- const childTarget = this.childTargets.get(sessionId);
115
+ const childTarget = this.#childTargets.get(sessionId);
116
116
  if (childTarget) {
117
117
  childTarget.dispose('target terminated');
118
118
  }
119
- this.childTargets.delete(sessionId);
120
- this.childConnections.delete(sessionId);
119
+ this.#childTargets.delete(sessionId);
120
+ this.#childConnections.delete(sessionId);
121
121
  }
122
122
 
123
123
  receivedMessageFromTarget({sessionId, message}: Protocol.Target.ReceivedMessageFromTargetEvent): void {
124
- const connection = this.childConnections.get(sessionId);
124
+ const connection = this.#childConnections.get(sessionId);
125
125
  const onMessage = connection ? connection.onMessage : null;
126
126
  if (onMessage) {
127
127
  onMessage.call(null, message);
@@ -133,15 +133,15 @@ export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implemen
133
133
  }
134
134
 
135
135
  export class NodeConnection implements ProtocolClient.InspectorBackend.Connection {
136
- private readonly targetAgent: ProtocolProxyApi.TargetApi;
137
- private readonly sessionId: Protocol.Target.SessionID;
136
+ readonly #targetAgent: ProtocolProxyApi.TargetApi;
137
+ readonly #sessionId: Protocol.Target.SessionID;
138
138
  onMessage: ((arg0: (Object|string)) => void)|null;
139
- private onDisconnect: ((arg0: string) => void)|null;
139
+ #onDisconnect: ((arg0: string) => void)|null;
140
140
  constructor(targetAgent: ProtocolProxyApi.TargetApi, sessionId: Protocol.Target.SessionID) {
141
- this.targetAgent = targetAgent;
142
- this.sessionId = sessionId;
141
+ this.#targetAgent = targetAgent;
142
+ this.#sessionId = sessionId;
143
143
  this.onMessage = null;
144
- this.onDisconnect = null;
144
+ this.#onDisconnect = null;
145
145
  }
146
146
 
147
147
  setOnMessage(onMessage: (arg0: (Object|string)) => void): void {
@@ -149,20 +149,20 @@ export class NodeConnection implements ProtocolClient.InspectorBackend.Connectio
149
149
  }
150
150
 
151
151
  setOnDisconnect(onDisconnect: (arg0: string) => void): void {
152
- this.onDisconnect = onDisconnect;
152
+ this.#onDisconnect = onDisconnect;
153
153
  }
154
154
 
155
155
  sendRawMessage(message: string): void {
156
- this.targetAgent.invoke_sendMessageToTarget({message, sessionId: this.sessionId});
156
+ this.#targetAgent.invoke_sendMessageToTarget({message, sessionId: this.#sessionId});
157
157
  }
158
158
 
159
159
  async disconnect(): Promise<void> {
160
- if (this.onDisconnect) {
161
- this.onDisconnect.call(null, 'force disconnect');
160
+ if (this.#onDisconnect) {
161
+ this.#onDisconnect.call(null, 'force disconnect');
162
162
  }
163
- this.onDisconnect = null;
163
+ this.#onDisconnect = null;
164
164
  this.onMessage = null;
165
- await this.targetAgent.invoke_detachFromTarget({sessionId: this.sessionId});
165
+ await this.#targetAgent.invoke_detachFromTarget({sessionId: this.#sessionId});
166
166
  }
167
167
  }
168
168
 
@@ -279,6 +279,9 @@ export function registerCommands(inspectorBackend) {
279
279
  });
280
280
  inspectorBackend.registerEnum(
281
281
  'Audits.GenericIssueErrorType', {CrossOriginPortalPostMessageError: 'CrossOriginPortalPostMessageError'});
282
+ inspectorBackend.registerEnum(
283
+ 'Audits.ClientHintIssueReason',
284
+ {MetaTagAllowListInvalidOrigin: 'MetaTagAllowListInvalidOrigin', MetaTagModifiedHTML: 'MetaTagModifiedHTML'});
282
285
  inspectorBackend.registerEnum('Audits.InspectorIssueCode', {
283
286
  SameSiteCookieIssue: 'SameSiteCookieIssue',
284
287
  MixedContentIssue: 'MixedContentIssue',
@@ -294,7 +297,8 @@ export function registerCommands(inspectorBackend) {
294
297
  NavigatorUserAgentIssue: 'NavigatorUserAgentIssue',
295
298
  WasmCrossOriginModuleSharingIssue: 'WasmCrossOriginModuleSharingIssue',
296
299
  GenericIssue: 'GenericIssue',
297
- DeprecationIssue: 'DeprecationIssue'
300
+ DeprecationIssue: 'DeprecationIssue',
301
+ ClientHintIssue: 'ClientHintIssue'
298
302
  });
299
303
  inspectorBackend.registerEvent('Audits.issueAdded', ['issue']);
300
304
  inspectorBackend.registerEnum('Audits.GetEncodedResponseRequestEncoding', {Webp: 'webp', Jpeg: 'jpeg', Png: 'png'});
@@ -1049,6 +1049,20 @@ declare namespace Protocol {
1049
1049
  message?: string;
1050
1050
  }
1051
1051
 
1052
+ export const enum ClientHintIssueReason {
1053
+ MetaTagAllowListInvalidOrigin = 'MetaTagAllowListInvalidOrigin',
1054
+ MetaTagModifiedHTML = 'MetaTagModifiedHTML',
1055
+ }
1056
+
1057
+ /**
1058
+ * This issue tracks client hints related issues. It's used to deprecate old
1059
+ * features, encourage the use of new ones, and provide general guidance.
1060
+ */
1061
+ export interface ClientHintIssueDetails {
1062
+ sourceCodeLocation: SourceCodeLocation;
1063
+ clientHintIssueReason: ClientHintIssueReason;
1064
+ }
1065
+
1052
1066
  /**
1053
1067
  * A unique identifier for the type of issue. Each type may use one of the
1054
1068
  * optional fields in InspectorIssueDetails to convey more specific
@@ -1070,6 +1084,7 @@ declare namespace Protocol {
1070
1084
  WasmCrossOriginModuleSharingIssue = 'WasmCrossOriginModuleSharingIssue',
1071
1085
  GenericIssue = 'GenericIssue',
1072
1086
  DeprecationIssue = 'DeprecationIssue',
1087
+ ClientHintIssue = 'ClientHintIssue',
1073
1088
  }
1074
1089
 
1075
1090
  /**
@@ -1093,6 +1108,7 @@ declare namespace Protocol {
1093
1108
  wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;
1094
1109
  genericIssueDetails?: GenericIssueDetails;
1095
1110
  deprecationIssueDetails?: DeprecationIssueDetails;
1111
+ clientHintIssueDetails?: ClientHintIssueDetails;
1096
1112
  }
1097
1113
 
1098
1114
  /**
@@ -2,14 +2,6 @@
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
- interface Window {
6
- UI: {themeSupport: unknown}
7
- }
8
-
9
- interface RegExp {
10
- __fromRegExpQuery: boolean;
11
- }
12
-
13
5
  declare class AnchorBox {
14
6
  x: number;
15
7
  y: number;
@@ -123,19 +115,6 @@ declare function isEnterOrSpaceKey(event: Event): boolean;
123
115
  declare function isEscKey(event: Event): boolean;
124
116
  declare function onInvokeElement(element: Element, callback: (event: Event) => void): void;
125
117
 
126
- interface ServicePort {
127
- setHandlers(messageHandler: (arg: string) => void, closeHandler: () => void): void;
128
-
129
- send(message: string): Promise<boolean>;
130
-
131
- close(): Promise<boolean>;
132
- }
133
-
134
- declare class diff_match_patch {
135
- diff_main(text1: string, text2: string): Array<{0: number, 1: string}>;
136
- diff_cleanupSemantic(diff: Array<{0: number, 1: string}>): void;
137
- }
138
-
139
118
  // The following types exist in Chrome but were removed for various reasons
140
119
  // from the TypeScript DOM library.
141
120
  //
@@ -152,9 +152,6 @@ export class CSSWorkspaceBinding implements SDK.TargetManager.SDKModelObserver<S
152
152
  }
153
153
  }
154
154
 
155
- /**
156
- * @interface
157
- */
158
155
  export interface SourceMapping {
159
156
  rawLocationToUILocation(rawLocation: SDK.CSSModel.CSSLocation): Workspace.UISourceCode.UILocation|null;
160
157
 
@@ -677,8 +677,7 @@ class SourceScopeRemoteObject extends SDK.RemoteObject.RemoteObjectImpl {
677
677
  properties.push(makeProperty(namespace, (namespaces[namespace] as SDK.RemoteObject.RemoteObject)));
678
678
  }
679
679
 
680
- return /** @type {!SDK.RemoteObject.GetPropertiesResult} */ {properties: properties, internalProperties: []} as
681
- SDK.RemoteObject.GetPropertiesResult;
680
+ return {properties: properties, internalProperties: []};
682
681
  }
683
682
  }
684
683
 
@@ -421,7 +421,7 @@ class ModelData {
421
421
  uiLocation = uiLocation || this.resourceMapping.rawLocationToUILocation(rawLocation);
422
422
  uiLocation = uiLocation || ResourceMapping.instance().jsLocationToUILocation(rawLocation);
423
423
  uiLocation = uiLocation || this.#defaultMapping.rawLocationToUILocation(rawLocation);
424
- return /** @type {!Workspace.UISourceCode.UILocation} */ uiLocation as Workspace.UISourceCode.UILocation;
424
+ return uiLocation;
425
425
  }
426
426
 
427
427
  uiLocationToRawLocations(
@@ -561,9 +561,6 @@ export interface RawLocationRange {
561
561
  end: SDK.DebuggerModel.Location;
562
562
  }
563
563
 
564
- /**
565
- * @interface
566
- */
567
564
  export interface DebuggerSourceMapping {
568
565
  rawLocationToUILocation(rawLocation: SDK.DebuggerModel.Location): Workspace.UISourceCode.UILocation|null;
569
566
 
@@ -31,9 +31,6 @@
31
31
  import type * as Common from '../../core/common/common.js';
32
32
  import * as Workspace from '../workspace/workspace.js';
33
33
 
34
- /**
35
- * @interface
36
- */
37
34
  export interface ChunkedReader {
38
35
  fileSize(): number;
39
36
 
@@ -217,7 +214,6 @@ export class FileOutputStream implements Common.StringOutputStream.OutputStream
217
214
 
218
215
  async open(fileName: string): Promise<boolean> {
219
216
  this.#closed = false;
220
- /** @type {!Array<function():void>} */
221
217
  this.#writeCallbacks = [];
222
218
  this.#fileName = fileName;
223
219
  const saveResponse = await Workspace.FileManager.FileManager.instance().save(this.#fileName, '', true);
@@ -83,8 +83,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
83
83
  }
84
84
 
85
85
  private getSkipStackFramesPatternSetting(): Common.Settings.RegExpSetting {
86
- return /** @type {!Common.Settings.RegExpSetting} */ Common.Settings.Settings.instance().moduleSetting(
87
- 'skipStackFramesPattern') as Common.Settings.RegExpSetting;
86
+ return Common.Settings.Settings.instance().moduleSetting('skipStackFramesPattern') as Common.Settings.RegExpSetting;
88
87
  }
89
88
 
90
89
  private setIgnoreListPatterns(debuggerModel: SDK.DebuggerModel.DebuggerModel): Promise<boolean> {
@@ -180,7 +180,6 @@ export class NetworkProject {
180
180
  return [];
181
181
  }
182
182
  const frames = Array.from(attribution.keys()).map(frameId => resourceTreeModel.frameForId(frameId));
183
- return /** @type {!Array<!SDK.ResourceTreeModel.ResourceTreeFrame>} */ frames.filter(frame => Boolean(frame)) as
184
- SDK.ResourceTreeModel.ResourceTreeFrame[];
183
+ return frames.filter(frame => Boolean(frame)) as SDK.ResourceTreeModel.ResourceTreeFrame[];
185
184
  }
186
185
  }
@@ -304,8 +304,9 @@ namespace APIImpl {
304
304
  // We cannot use the stronger `unknown` type in place of `any` in the following type definition. The type is used as
305
305
  // the right-hand side of `extends` in a few places, which doesn't narrow `unknown`. Without narrowing, overload
306
306
  // resolution and meaningful type inference of arguments break, for example.
307
+ // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
307
308
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
308
- export type Callable = (...args: any) => any;
309
+ export type Callable = (...args: any) => void;
309
310
 
310
311
  export interface EventSink<ListenerT extends Callable> extends PublicAPI.Chrome.DevTools.EventSink<ListenerT> {
311
312
  _type: string;
@@ -640,7 +641,6 @@ self.injectedExtensionAPI = function(
640
641
  };
641
642
 
642
643
  function LanguageServicesAPIImpl(this: APIImpl.LanguageExtensions): void {
643
- /** @type {!Map<*, !MessagePort>} */
644
644
  this._plugins = new Map();
645
645
  }
646
646
 
@@ -42,9 +42,6 @@ export class ExtensionTraceProvider {
42
42
  // eslint-disable-next-line @typescript-eslint/naming-convention
43
43
  let _lastSessionId = 0;
44
44
 
45
- /**
46
- * @interface
47
- */
48
45
  export interface TracingSession {
49
46
  complete(url: string, timeOffsetMicroseconds: number): void;
50
47
  }
@@ -280,7 +280,7 @@ export class SearchConfig {
280
280
  this.jumpBackward = jumpBackward;
281
281
  }
282
282
 
283
- toSearchRegex(_global?: boolean): RegExp {
283
+ toSearchRegex(_global?: boolean): {regex: RegExp, fromQuery: boolean} {
284
284
  throw new Error('Unsupported operation on search config');
285
285
  }
286
286
  }
@@ -0,0 +1,95 @@
1
+ // Copyright 2021 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import * as i18n from '../../core/i18n/i18n.js';
6
+ import type * as SDK from '../../core/sdk/sdk.js';
7
+ import * as Protocol from '../../generated/protocol.js';
8
+
9
+ import {Issue, IssueCategory, IssueKind} from './Issue.js';
10
+ import type {MarkdownIssueDescription, LazyMarkdownIssueDescription} from './MarkdownIssueDescription.js';
11
+ import {resolveLazyDescription} from './MarkdownIssueDescription.js';
12
+
13
+ const UIStrings = {
14
+ /**
15
+ *@description Title for Client Hint specification url link
16
+ */
17
+ clientHintsInfrastructure: 'Client Hints Infrastructure',
18
+ };
19
+ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/ClientHintIssue.ts', UIStrings);
20
+ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
21
+
22
+ export class ClientHintIssue extends Issue {
23
+ private issueDetails: Protocol.Audits.ClientHintIssueDetails;
24
+
25
+ constructor(issueDetails: Protocol.Audits.ClientHintIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
26
+ super(
27
+ {
28
+ code: Protocol.Audits.InspectorIssueCode.ClientHintIssue,
29
+ umaCode: [Protocol.Audits.InspectorIssueCode.ClientHintIssue, issueDetails.clientHintIssueReason].join('::'),
30
+ },
31
+ issuesModel);
32
+ this.issueDetails = issueDetails;
33
+ }
34
+
35
+ getCategory(): IssueCategory {
36
+ return IssueCategory.Other;
37
+ }
38
+
39
+ details(): Protocol.Audits.ClientHintIssueDetails {
40
+ return this.issueDetails;
41
+ }
42
+
43
+ getDescription(): MarkdownIssueDescription|null {
44
+ const description = issueDescriptions.get(this.issueDetails.clientHintIssueReason);
45
+ if (!description) {
46
+ return null;
47
+ }
48
+ return resolveLazyDescription(description);
49
+ }
50
+
51
+ sources(): Iterable<Protocol.Audits.SourceCodeLocation> {
52
+ return [this.issueDetails.sourceCodeLocation];
53
+ }
54
+
55
+ primaryKey(): string {
56
+ return JSON.stringify(this.issueDetails);
57
+ }
58
+
59
+ getKind(): IssueKind {
60
+ return IssueKind.BreakingChange;
61
+ }
62
+
63
+ static fromInspectorIssue(issuesModel: SDK.IssuesModel.IssuesModel, inspectorIssue: Protocol.Audits.InspectorIssue):
64
+ ClientHintIssue[] {
65
+ const details = inspectorIssue.details.clientHintIssueDetails;
66
+ if (!details) {
67
+ console.warn('Client Hint issue without details received.');
68
+ return [];
69
+ }
70
+ return [new ClientHintIssue(details, issuesModel)];
71
+ }
72
+ }
73
+
74
+ const issueDescriptions: Map<Protocol.Audits.ClientHintIssueReason, LazyMarkdownIssueDescription> = new Map([
75
+ [
76
+ Protocol.Audits.ClientHintIssueReason.MetaTagAllowListInvalidOrigin,
77
+ {
78
+ file: 'clientHintMetaTagAllowListInvalidOrigin.md',
79
+ links: [{
80
+ link: 'https://wicg.github.io/client-hints-infrastructure/',
81
+ linkTitle: i18nLazyString(UIStrings.clientHintsInfrastructure),
82
+ }],
83
+ },
84
+ ],
85
+ [
86
+ Protocol.Audits.ClientHintIssueReason.MetaTagModifiedHTML,
87
+ {
88
+ file: 'clientHintMetaTagModifiedHTML.md',
89
+ links: [{
90
+ link: 'https://wicg.github.io/client-hints-infrastructure/',
91
+ linkTitle: i18nLazyString(UIStrings.clientHintsInfrastructure),
92
+ }],
93
+ },
94
+ ],
95
+ ]);