chrome-devtools-frontend 1.0.941208 → 1.0.943182

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 (289) hide show
  1. package/WATCHLISTS +1 -1
  2. package/config/gni/all_devtools_files.gni +0 -64
  3. package/config/gni/devtools_grd_files.gni +54 -19
  4. package/config/gni/devtools_image_files.gni +1 -3
  5. package/front_end/.eslintrc.js +11 -1
  6. package/front_end/Images/src/{feedback_thin_16x16_icon.svg → survey_feedback_icon.svg} +1 -1
  7. package/front_end/Tests.js +1 -32
  8. package/front_end/core/common/Color.ts +5 -0
  9. package/front_end/core/i18n/locales/en-US.json +17 -29
  10. package/front_end/core/i18n/locales/en-XL.json +17 -29
  11. package/front_end/core/sdk/CPUProfilerModel.ts +7 -9
  12. package/front_end/core/sdk/ConsoleModel.ts +27 -33
  13. package/front_end/core/sdk/DebuggerModel.ts +4 -14
  14. package/front_end/core/sdk/sdk-meta.ts +17 -3
  15. package/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.ts +1 -1
  16. package/front_end/entrypoints/devtools_app/devtools_app.js +1 -1
  17. package/front_end/entrypoints/devtools_app/devtools_app.json +1 -12
  18. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
  19. package/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.ts +1 -1
  20. package/front_end/entrypoints/inspector/inspector.js +1 -1
  21. package/front_end/entrypoints/inspector/inspector.json +1 -3
  22. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +2 -3
  23. package/front_end/entrypoints/js_app/js_app.js +1 -1
  24. package/front_end/entrypoints/js_app/js_app.json +1 -3
  25. package/front_end/entrypoints/main/MainImpl.ts +26 -0
  26. package/front_end/entrypoints/main/main-meta.ts +1 -2
  27. package/front_end/entrypoints/ndb_app/ndb_app.js +1 -1
  28. package/front_end/entrypoints/node_app/node_app-meta.ts +0 -2
  29. package/front_end/entrypoints/node_app/node_app.js +1 -1
  30. package/front_end/entrypoints/node_app/node_app.json +1 -3
  31. package/front_end/entrypoints/node_main/node_main-meta.ts +0 -1
  32. package/front_end/entrypoints/shell/shell.js +0 -11
  33. package/front_end/entrypoints/shell/shell.json +1 -5
  34. package/front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.ts +1 -1
  35. package/front_end/entrypoints/worker_app/worker_app.js +1 -1
  36. package/front_end/entrypoints/worker_app/worker_app.json +1 -7
  37. package/front_end/generated/InspectorBackendCommands.js +19 -0
  38. package/front_end/generated/protocol-mapping.d.ts +31 -1
  39. package/front_end/generated/protocol-proxy-api.d.ts +34 -2
  40. package/front_end/generated/protocol.d.ts +81 -6
  41. package/front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js +2 -2
  42. package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +5 -1
  43. package/front_end/legacy_test_runner/legacy_test_runner.ts +10 -1
  44. package/front_end/legacy_test_runner/test_runner/TestRunner.js +3 -1
  45. package/front_end/models/formatter/SourceFormatter.ts +0 -10
  46. package/front_end/models/persistence/persistence-meta.ts +0 -1
  47. package/front_end/models/workspace/UISourceCode.ts +9 -42
  48. package/front_end/panels/accessibility/accessibility-meta.ts +0 -1
  49. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  50. package/front_end/panels/animation/animation-meta.ts +0 -1
  51. package/front_end/panels/application/ApplicationPanelSidebar.ts +3 -3
  52. package/front_end/panels/application/BackForwardCacheStrings.ts +3 -1
  53. package/front_end/panels/application/application-meta.ts +0 -4
  54. package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
  55. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  56. package/front_end/panels/application/components/stackTraceRow.css +8 -0
  57. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +1 -2
  58. package/front_end/panels/changes/changes-meta.ts +0 -1
  59. package/front_end/panels/console/ConsolePinPane.ts +23 -32
  60. package/front_end/panels/console/ConsoleViewMessage.ts +8 -1
  61. package/front_end/panels/console/console-meta.ts +0 -1
  62. package/front_end/panels/console_counters/console_counters-meta.ts +0 -1
  63. package/front_end/panels/coverage/CoverageDecorationManager.ts +4 -5
  64. package/front_end/panels/coverage/CoverageView.ts +2 -105
  65. package/front_end/panels/coverage/coverage-meta.ts +0 -1
  66. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +11 -56
  67. package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -8
  68. package/front_end/panels/css_overview/css_overview-meta.ts +0 -1
  69. package/front_end/panels/developer_resources/developer_resources-meta.ts +0 -1
  70. package/front_end/panels/elements/ElementsTreeElement.ts +4 -9
  71. package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -0
  72. package/front_end/panels/elements/components/adornerSettingsPane.css +0 -4
  73. package/front_end/panels/elements/elements-meta.ts +0 -1
  74. package/front_end/panels/emulation/DeviceModeToolbar.ts +3 -1
  75. package/front_end/panels/emulation/DeviceModeView.ts +2 -1
  76. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +3 -1
  77. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -1
  78. package/front_end/panels/emulation/emulation-meta.ts +2 -5
  79. package/front_end/panels/help/help-meta.ts +0 -1
  80. package/front_end/panels/input/input-meta.ts +0 -1
  81. package/front_end/panels/issues/issues-meta.ts +0 -3
  82. package/front_end/panels/js_profiler/js_profiler-meta.ts +0 -4
  83. package/front_end/panels/layers/layers-meta.ts +0 -4
  84. package/front_end/panels/lighthouse/LighthousePanel.ts +2 -4
  85. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -4
  86. package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -1
  87. package/front_end/panels/lighthouse/lighthouseStartView.css +4 -0
  88. package/front_end/panels/lighthouse/module.json +0 -6
  89. package/front_end/panels/media/media-meta.ts +0 -4
  90. package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +0 -1
  91. package/front_end/panels/network/ResourceWebSocketFrameView.ts +2 -1
  92. package/front_end/panels/network/network-meta.ts +1 -5
  93. package/front_end/panels/performance_monitor/performance_monitor-meta.ts +0 -1
  94. package/front_end/panels/profiler/CPUProfileView.ts +10 -3
  95. package/front_end/panels/profiler/profiler-meta.ts +0 -3
  96. package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -1
  97. package/front_end/panels/screencast/screencast-meta.ts +0 -4
  98. package/front_end/panels/security/security-meta.ts +0 -4
  99. package/front_end/panels/sensors/sensors-meta.ts +0 -1
  100. package/front_end/panels/settings/emulation/emulation-meta.ts +0 -1
  101. package/front_end/panels/settings/settings-meta.ts +0 -1
  102. package/front_end/panels/sources/BreakpointEditDialog.ts +16 -30
  103. package/front_end/panels/sources/CSSPlugin.ts +310 -331
  104. package/front_end/panels/sources/CallStackSidebarPane.ts +28 -34
  105. package/front_end/panels/sources/CoveragePlugin.ts +121 -6
  106. package/front_end/panels/sources/DebuggerPlugin.ts +1166 -1243
  107. package/front_end/panels/sources/EditingLocationHistoryManager.ts +71 -101
  108. package/front_end/panels/sources/GoToLineQuickOpen.ts +4 -3
  109. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  110. package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +26 -23
  111. package/front_end/panels/sources/Plugin.ts +20 -4
  112. package/front_end/panels/sources/ProfilePlugin.ts +185 -0
  113. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  114. package/front_end/panels/sources/ScriptOriginPlugin.ts +0 -10
  115. package/front_end/panels/sources/SnippetsPlugin.ts +1 -10
  116. package/front_end/panels/sources/SourcesPanel.ts +6 -5
  117. package/front_end/panels/sources/SourcesView.ts +10 -8
  118. package/front_end/panels/sources/TabbedEditorContainer.ts +31 -27
  119. package/front_end/panels/sources/UISourceCodeFrame.ts +335 -470
  120. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
  121. package/front_end/panels/sources/sources-legacy.ts +0 -6
  122. package/front_end/panels/sources/sources-meta.ts +2 -6
  123. package/front_end/panels/sources/sources.ts +0 -2
  124. package/front_end/panels/timeline/timeline-meta.ts +2 -9
  125. package/front_end/panels/web_audio/web_audio-meta.ts +0 -1
  126. package/front_end/panels/webauthn/webauthn-meta.ts +0 -1
  127. package/front_end/third_party/codemirror.next/bundle.ts +9 -13
  128. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  129. package/front_end/third_party/codemirror.next/chunk/javascript.js +2 -2
  130. package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -6
  131. package/front_end/third_party/codemirror.next/chunk/php.js +2 -6
  132. package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
  133. package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
  134. package/front_end/third_party/codemirror.next/chunk/xml.js +2 -2
  135. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +279 -198
  136. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  137. package/front_end/third_party/codemirror.next/package.json +13 -11
  138. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1128 -1158
  139. package/front_end/third_party/lighthouse/locales/ar-XB.json +211 -79
  140. package/front_end/third_party/lighthouse/locales/ar.json +213 -81
  141. package/front_end/third_party/lighthouse/locales/bg.json +211 -79
  142. package/front_end/third_party/lighthouse/locales/ca.json +212 -80
  143. package/front_end/third_party/lighthouse/locales/cs.json +211 -79
  144. package/front_end/third_party/lighthouse/locales/da.json +211 -79
  145. package/front_end/third_party/lighthouse/locales/de.json +211 -79
  146. package/front_end/third_party/lighthouse/locales/el.json +213 -81
  147. package/front_end/third_party/lighthouse/locales/en-GB.json +211 -79
  148. package/front_end/third_party/lighthouse/locales/en-US.json +186 -75
  149. package/front_end/third_party/lighthouse/locales/en-XA.json +211 -79
  150. package/front_end/third_party/lighthouse/locales/en-XL.json +186 -75
  151. package/front_end/third_party/lighthouse/locales/es-419.json +211 -79
  152. package/front_end/third_party/lighthouse/locales/es.json +212 -80
  153. package/front_end/third_party/lighthouse/locales/fi.json +211 -79
  154. package/front_end/third_party/lighthouse/locales/fil.json +211 -79
  155. package/front_end/third_party/lighthouse/locales/fr.json +211 -79
  156. package/front_end/third_party/lighthouse/locales/he.json +212 -80
  157. package/front_end/third_party/lighthouse/locales/hi.json +214 -82
  158. package/front_end/third_party/lighthouse/locales/hr.json +211 -79
  159. package/front_end/third_party/lighthouse/locales/hu.json +211 -79
  160. package/front_end/third_party/lighthouse/locales/id.json +211 -79
  161. package/front_end/third_party/lighthouse/locales/it.json +211 -79
  162. package/front_end/third_party/lighthouse/locales/ja.json +211 -79
  163. package/front_end/third_party/lighthouse/locales/ko.json +211 -79
  164. package/front_end/third_party/lighthouse/locales/lt.json +211 -79
  165. package/front_end/third_party/lighthouse/locales/lv.json +214 -82
  166. package/front_end/third_party/lighthouse/locales/nl.json +211 -79
  167. package/front_end/third_party/lighthouse/locales/no.json +211 -79
  168. package/front_end/third_party/lighthouse/locales/pl.json +211 -79
  169. package/front_end/third_party/lighthouse/locales/pt-PT.json +211 -79
  170. package/front_end/third_party/lighthouse/locales/pt.json +211 -79
  171. package/front_end/third_party/lighthouse/locales/ro.json +212 -80
  172. package/front_end/third_party/lighthouse/locales/ru.json +211 -79
  173. package/front_end/third_party/lighthouse/locales/sk.json +211 -79
  174. package/front_end/third_party/lighthouse/locales/sl.json +211 -79
  175. package/front_end/third_party/lighthouse/locales/sr-Latn.json +211 -79
  176. package/front_end/third_party/lighthouse/locales/sr.json +211 -79
  177. package/front_end/third_party/lighthouse/locales/sv.json +211 -79
  178. package/front_end/third_party/lighthouse/locales/ta.json +218 -86
  179. package/front_end/third_party/lighthouse/locales/te.json +251 -119
  180. package/front_end/third_party/lighthouse/locales/th.json +211 -79
  181. package/front_end/third_party/lighthouse/locales/tr.json +211 -79
  182. package/front_end/third_party/lighthouse/locales/uk.json +212 -80
  183. package/front_end/third_party/lighthouse/locales/vi.json +211 -79
  184. package/front_end/third_party/lighthouse/locales/zh-HK.json +211 -79
  185. package/front_end/third_party/lighthouse/locales/zh-TW.json +211 -79
  186. package/front_end/third_party/lighthouse/locales/zh.json +211 -79
  187. package/front_end/third_party/lighthouse/report/bundle.d.ts +72 -34
  188. package/front_end/third_party/lighthouse/report/bundle.js +698 -492
  189. package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -2
  190. package/front_end/third_party/lighthouse/report-assets/report.js +40 -35
  191. package/front_end/third_party/lighthouse/report-assets/standalone-template.html +2 -4
  192. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +60 -68
  193. package/front_end/ui/components/data_grid/dataGrid.css +12 -10
  194. package/front_end/ui/components/docs/component_docs.ts +14 -0
  195. package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
  196. package/front_end/ui/components/docs/css_overview/start_view.html +25 -0
  197. package/front_end/ui/components/docs/css_overview/start_view.ts +14 -0
  198. package/front_end/ui/components/docs/icon_button/basic.ts +3 -3
  199. package/front_end/ui/components/docs/toggle_dark_mode.ts +1 -0
  200. package/front_end/ui/components/docs/toggle_fonts.ts +2 -0
  201. package/front_end/ui/components/helpers/get-stylesheet.ts +0 -15
  202. package/front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.ts +1 -2
  203. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
  204. package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
  205. package/front_end/ui/components/text_editor/TextEditor.ts +79 -36
  206. package/front_end/ui/components/text_editor/config.ts +42 -26
  207. package/front_end/ui/components/text_editor/javascript.ts +2 -3
  208. package/front_end/ui/components/text_editor/position.ts +17 -0
  209. package/front_end/ui/components/text_editor/text_editor.ts +1 -0
  210. package/front_end/ui/components/text_editor/theme.ts +5 -1
  211. package/front_end/ui/components/tree_outline/TreeOutline.ts +63 -8
  212. package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +8 -6
  213. package/front_end/ui/legacy/Dialog.ts +3 -1
  214. package/front_end/ui/legacy/DropTarget.ts +2 -1
  215. package/front_end/ui/legacy/EmptyWidget.ts +2 -1
  216. package/front_end/ui/legacy/FilterBar.ts +2 -1
  217. package/front_end/ui/legacy/GlassPane.ts +4 -2
  218. package/front_end/ui/legacy/Infobar.ts +5 -8
  219. package/front_end/ui/legacy/InspectorView.ts +6 -1
  220. package/front_end/ui/legacy/ListWidget.ts +2 -1
  221. package/front_end/ui/legacy/PopoverHelper.ts +2 -1
  222. package/front_end/ui/legacy/ProgressIndicator.ts +2 -1
  223. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -1
  224. package/front_end/ui/legacy/ReportView.ts +2 -1
  225. package/front_end/ui/legacy/RootView.ts +2 -1
  226. package/front_end/ui/legacy/SearchableView.ts +2 -1
  227. package/front_end/ui/legacy/ShortcutRegistry.ts +11 -7
  228. package/front_end/ui/legacy/SoftContextMenu.ts +3 -2
  229. package/front_end/ui/legacy/SoftDropDown.ts +4 -2
  230. package/front_end/ui/legacy/SplitWidget.ts +2 -1
  231. package/front_end/ui/legacy/SuggestBox.ts +2 -1
  232. package/front_end/ui/legacy/TabbedPane.ts +2 -1
  233. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -1
  234. package/front_end/ui/legacy/TextPrompt.ts +2 -1
  235. package/front_end/ui/legacy/Toolbar.ts +3 -2
  236. package/front_end/ui/legacy/Treeoutline.ts +4 -3
  237. package/front_end/ui/legacy/UIUtils.ts +17 -14
  238. package/front_end/ui/legacy/ViewManager.ts +2 -1
  239. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -2
  240. package/front_end/ui/legacy/components/inline_editor/cssAngle.css +4 -0
  241. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +2 -2
  242. package/front_end/ui/legacy/components/object_ui/object_ui-meta.ts +0 -4
  243. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +35 -131
  244. package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +0 -3
  245. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
  246. package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -3
  247. package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +3 -6
  248. package/front_end/ui/legacy/components/source_frame/FontView.ts +4 -1
  249. package/front_end/ui/legacy/components/source_frame/ImageView.ts +4 -1
  250. package/front_end/ui/legacy/components/source_frame/JSONView.ts +4 -1
  251. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +21 -15
  252. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +501 -252
  253. package/front_end/ui/legacy/components/source_frame/XMLView.ts +7 -2
  254. package/front_end/ui/legacy/components/source_frame/source_frame-legacy.ts +0 -11
  255. package/front_end/ui/legacy/components/source_frame/source_frame.ts +0 -2
  256. package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +2 -0
  257. package/front_end/ui/legacy/components/text_editor/cmdevtools.css +3 -1
  258. package/front_end/ui/legacy/components/text_editor/module.json +0 -3
  259. package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -15
  260. package/front_end/ui/legacy/radioButton.css +1 -13
  261. package/front_end/ui/legacy/textButton.css +5 -4
  262. package/front_end/ui/legacy/themeColors.css +36 -0
  263. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +7 -9
  264. package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +2 -2
  265. package/front_end/ui/legacy/utils/inject-core-styles.ts +7 -4
  266. package/package.json +1 -1
  267. package/scripts/check_gn.js +0 -35
  268. package/scripts/eslint_rules/lib/es_modules_import.js +15 -8
  269. package/scripts/eslint_rules/tests/es_modules_import_test.js +8 -0
  270. package/front_end/Images/radioDot-dark-theme.png +0 -0
  271. package/front_end/Images/radioDot.png +0 -0
  272. package/front_end/emulated_devices/module.json +0 -6
  273. package/front_end/panels/application/module.json +0 -6
  274. package/front_end/panels/emulation/module.json +0 -11
  275. package/front_end/panels/issues/module.json +0 -6
  276. package/front_end/panels/js_profiler/module.json +0 -5
  277. package/front_end/panels/layer_viewer/module.json +0 -5
  278. package/front_end/panels/layers/module.json +0 -5
  279. package/front_end/panels/media/module.json +0 -5
  280. package/front_end/panels/network/module.json +0 -5
  281. package/front_end/panels/profiler/module.json +0 -5
  282. package/front_end/panels/screencast/module.json +0 -6
  283. package/front_end/panels/security/module.json +0 -5
  284. package/front_end/panels/timeline/module.json +0 -7
  285. package/front_end/third_party/lighthouse/report-assets/report.css +0 -1774
  286. package/front_end/ui/legacy/components/source_frame/SourcesTextEditor.ts +0 -1030
  287. package/front_end/ui/legacy/components/source_frame/messagesPopover.css +0 -32
  288. package/front_end/ui/legacy/components/source_frame/module.json +0 -14
  289. package/front_end/ui/legacy/module.json +0 -41
@@ -12,6 +12,15 @@
12
12
  */
13
13
  export namespace ProtocolMapping {
14
14
  export interface Events {
15
+ /**
16
+ * The loadComplete event mirrors the load complete event sent by the browser to assistive
17
+ * technology when the web page has finished loading.
18
+ */
19
+ 'Accessibility.loadComplete': [Protocol.Accessibility.LoadCompleteEvent];
20
+ /**
21
+ * The nodesUpdated event is sent every time a previously requested node has changed the in tree.
22
+ */
23
+ 'Accessibility.nodesUpdated': [Protocol.Accessibility.NodesUpdatedEvent];
15
24
  /**
16
25
  * Event for when an animation has been cancelled.
17
26
  */
@@ -438,7 +447,7 @@ export namespace ProtocolMapping {
438
447
  */
439
448
  'Security.visibleSecurityStateChanged': [Protocol.Security.VisibleSecurityStateChangedEvent];
440
449
  /**
441
- * The security state of the page changed.
450
+ * The security state of the page changed. No longer being sent.
442
451
  */
443
452
  'Security.securityStateChanged': [Protocol.Security.SecurityStateChangedEvent];
444
453
  'ServiceWorker.workerErrorReported': [Protocol.ServiceWorker.WorkerErrorReportedEvent];
@@ -701,6 +710,22 @@ export namespace ProtocolMapping {
701
710
  paramsType: [Protocol.Accessibility.GetFullAXTreeRequest?];
702
711
  returnType: Protocol.Accessibility.GetFullAXTreeResponse;
703
712
  };
713
+ /**
714
+ * Fetches the root node.
715
+ * Requires `enable()` to have been called previously.
716
+ */
717
+ 'Accessibility.getRootAXNode': {
718
+ paramsType: [Protocol.Accessibility.GetRootAXNodeRequest?];
719
+ returnType: Protocol.Accessibility.GetRootAXNodeResponse;
720
+ };
721
+ /**
722
+ * Fetches a node and all ancestors up to and including the root.
723
+ * Requires `enable()` to have been called previously.
724
+ */
725
+ 'Accessibility.getAXNodeAndAncestors': {
726
+ paramsType: [Protocol.Accessibility.GetAXNodeAndAncestorsRequest?];
727
+ returnType: Protocol.Accessibility.GetAXNodeAndAncestorsResponse;
728
+ };
704
729
  /**
705
730
  * Fetches a particular accessibility node by AXNodeId.
706
731
  * Requires `enable()` to have been called previously.
@@ -2327,6 +2352,11 @@ export namespace ProtocolMapping {
2327
2352
  * Clears seeded compilation cache.
2328
2353
  */
2329
2354
  'Page.clearCompilationCache': {paramsType: []; returnType: void;};
2355
+ /**
2356
+ * Sets the Secure Payment Confirmation transaction mode.
2357
+ * https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
2358
+ */
2359
+ 'Page.setSPCTransactionMode': {paramsType: [Protocol.Page.SetSPCTransactionModeRequest]; returnType: void;};
2330
2360
  /**
2331
2361
  * Generates a report for testing.
2332
2362
  */
@@ -225,6 +225,20 @@ declare namespace ProtocolProxyApi {
225
225
  invoke_getFullAXTree(params: Protocol.Accessibility.GetFullAXTreeRequest):
226
226
  Promise<Protocol.Accessibility.GetFullAXTreeResponse>;
227
227
 
228
+ /**
229
+ * Fetches the root node.
230
+ * Requires `enable()` to have been called previously.
231
+ */
232
+ invoke_getRootAXNode(params: Protocol.Accessibility.GetRootAXNodeRequest):
233
+ Promise<Protocol.Accessibility.GetRootAXNodeResponse>;
234
+
235
+ /**
236
+ * Fetches a node and all ancestors up to and including the root.
237
+ * Requires `enable()` to have been called previously.
238
+ */
239
+ invoke_getAXNodeAndAncestors(params: Protocol.Accessibility.GetAXNodeAndAncestorsRequest):
240
+ Promise<Protocol.Accessibility.GetAXNodeAndAncestorsResponse>;
241
+
228
242
  /**
229
243
  * Fetches a particular accessibility node by AXNodeId.
230
244
  * Requires `enable()` to have been called previously.
@@ -242,7 +256,18 @@ declare namespace ProtocolProxyApi {
242
256
  invoke_queryAXTree(params: Protocol.Accessibility.QueryAXTreeRequest):
243
257
  Promise<Protocol.Accessibility.QueryAXTreeResponse>;
244
258
  }
245
- export interface AccessibilityDispatcher {}
259
+ export interface AccessibilityDispatcher {
260
+ /**
261
+ * The loadComplete event mirrors the load complete event sent by the browser to assistive
262
+ * technology when the web page has finished loading.
263
+ */
264
+ loadComplete(params: Protocol.Accessibility.LoadCompleteEvent): void;
265
+
266
+ /**
267
+ * The nodesUpdated event is sent every time a previously requested node has changed the in tree.
268
+ */
269
+ nodesUpdated(params: Protocol.Accessibility.NodesUpdatedEvent): void;
270
+ }
246
271
 
247
272
  export interface AnimationApi {
248
273
  /**
@@ -2637,6 +2662,13 @@ declare namespace ProtocolProxyApi {
2637
2662
  */
2638
2663
  invoke_clearCompilationCache(): Promise<Protocol.ProtocolResponseWithError>;
2639
2664
 
2665
+ /**
2666
+ * Sets the Secure Payment Confirmation transaction mode.
2667
+ * https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
2668
+ */
2669
+ invoke_setSPCTransactionMode(params: Protocol.Page.SetSPCTransactionModeRequest):
2670
+ Promise<Protocol.ProtocolResponseWithError>;
2671
+
2640
2672
  /**
2641
2673
  * Generates a report for testing.
2642
2674
  */
@@ -2879,7 +2911,7 @@ declare namespace ProtocolProxyApi {
2879
2911
  visibleSecurityStateChanged(params: Protocol.Security.VisibleSecurityStateChangedEvent): void;
2880
2912
 
2881
2913
  /**
2882
- * The security state of the page changed.
2914
+ * The security state of the page changed. No longer being sent.
2883
2915
  */
2884
2916
  securityStateChanged(params: Protocol.Security.SecurityStateChangedEvent): void;
2885
2917
  }
@@ -252,6 +252,10 @@ declare namespace Protocol {
252
252
  * All other properties
253
253
  */
254
254
  properties?: AXProperty[];
255
+ /**
256
+ * ID for this node's parent.
257
+ */
258
+ parentId?: AXNodeId;
255
259
  /**
256
260
  * IDs for each of this node's child nodes.
257
261
  */
@@ -260,6 +264,10 @@ declare namespace Protocol {
260
264
  * The backend ID for the associated DOM node, if any.
261
265
  */
262
266
  backendDOMNodeId?: DOM.BackendNodeId;
267
+ /**
268
+ * The frame ID for the frame associated with this nodes document.
269
+ */
270
+ frameId?: Page.FrameId;
263
271
  }
264
272
 
265
273
  export interface GetPartialAXTreeRequest {
@@ -310,6 +318,37 @@ declare namespace Protocol {
310
318
  nodes: AXNode[];
311
319
  }
312
320
 
321
+ export interface GetRootAXNodeRequest {
322
+ /**
323
+ * The frame in whose document the node resides.
324
+ * If omitted, the root frame is used.
325
+ */
326
+ frameId?: Page.FrameId;
327
+ }
328
+
329
+ export interface GetRootAXNodeResponse extends ProtocolResponseWithError {
330
+ node: AXNode;
331
+ }
332
+
333
+ export interface GetAXNodeAndAncestorsRequest {
334
+ /**
335
+ * Identifier of the node to get.
336
+ */
337
+ nodeId?: DOM.NodeId;
338
+ /**
339
+ * Identifier of the backend node to get.
340
+ */
341
+ backendNodeId?: DOM.BackendNodeId;
342
+ /**
343
+ * JavaScript object id of the node wrapper to get.
344
+ */
345
+ objectId?: Runtime.RemoteObjectId;
346
+ }
347
+
348
+ export interface GetAXNodeAndAncestorsResponse extends ProtocolResponseWithError {
349
+ nodes: AXNode[];
350
+ }
351
+
313
352
  export interface GetChildAXNodesRequest {
314
353
  id: AXNodeId;
315
354
  /**
@@ -353,6 +392,27 @@ declare namespace Protocol {
353
392
  */
354
393
  nodes: AXNode[];
355
394
  }
395
+
396
+ /**
397
+ * The loadComplete event mirrors the load complete event sent by the browser to assistive
398
+ * technology when the web page has finished loading.
399
+ */
400
+ export interface LoadCompleteEvent {
401
+ /**
402
+ * New document root node.
403
+ */
404
+ root: AXNode;
405
+ }
406
+
407
+ /**
408
+ * The nodesUpdated event is sent every time a previously requested node has changed the in tree.
409
+ */
410
+ export interface NodesUpdatedEvent {
411
+ /**
412
+ * Updated node data.
413
+ */
414
+ nodes: AXNode[];
415
+ }
356
416
  }
357
417
 
358
418
  export namespace Animation {
@@ -4878,6 +4938,7 @@ declare namespace Protocol {
4878
4938
  */
4879
4939
  export interface UserAgentMetadata {
4880
4940
  brands?: UserAgentBrandVersion[];
4941
+ fullVersionList?: UserAgentBrandVersion[];
4881
4942
  fullVersion?: string;
4882
4943
  platform: string;
4883
4944
  platformVersion: string;
@@ -6987,9 +7048,10 @@ declare namespace Protocol {
6987
7048
  */
6988
7049
  logId: string;
6989
7050
  /**
6990
- * Issuance date.
7051
+ * Issuance date. Unlike TimeSinceEpoch, this contains the number of
7052
+ * milliseconds since January 1, 1970, UTC, not the number of seconds.
6991
7053
  */
6992
- timestamp: TimeSinceEpoch;
7054
+ timestamp: number;
6993
7055
  /**
6994
7056
  * Hash algorithm.
6995
7057
  */
@@ -9844,6 +9906,7 @@ declare namespace Protocol {
9844
9906
  ChUaModel = 'ch-ua-model',
9845
9907
  ChUaMobile = 'ch-ua-mobile',
9846
9908
  ChUaFullVersion = 'ch-ua-full-version',
9909
+ ChUaFullVersionList = 'ch-ua-full-version-list',
9847
9910
  ChUaPlatformVersion = 'ch-ua-platform-version',
9848
9911
  ChUaReduced = 'ch-ua-reduced',
9849
9912
  ChViewportHeight = 'ch-viewport-height',
@@ -9867,6 +9930,7 @@ declare namespace Protocol {
9867
9930
  Hid = 'hid',
9868
9931
  IdleDetection = 'idle-detection',
9869
9932
  InterestCohort = 'interest-cohort',
9933
+ JoinAdInterestGroup = 'join-ad-interest-group',
9870
9934
  KeyboardMap = 'keyboard-map',
9871
9935
  Magnetometer = 'magnetometer',
9872
9936
  Microphone = 'microphone',
@@ -9875,6 +9939,7 @@ declare namespace Protocol {
9875
9939
  Payment = 'payment',
9876
9940
  PictureInPicture = 'picture-in-picture',
9877
9941
  PublickeyCredentialsGet = 'publickey-credentials-get',
9942
+ RunAdAuction = 'run-ad-auction',
9878
9943
  ScreenWakeLock = 'screen-wake-lock',
9879
9944
  Serial = 'serial',
9880
9945
  SharedAutofill = 'shared-autofill',
@@ -11261,6 +11326,16 @@ declare namespace Protocol {
11261
11326
  data: binary;
11262
11327
  }
11263
11328
 
11329
+ export const enum SetSPCTransactionModeRequestMode {
11330
+ None = 'none',
11331
+ Autoaccept = 'autoaccept',
11332
+ Autoreject = 'autoreject',
11333
+ }
11334
+
11335
+ export interface SetSPCTransactionModeRequest {
11336
+ mode: SetSPCTransactionModeRequestMode;
11337
+ }
11338
+
11264
11339
  export interface GenerateTestReportRequest {
11265
11340
  /**
11266
11341
  * Message to be displayed in the report.
@@ -12084,7 +12159,7 @@ declare namespace Protocol {
12084
12159
  }
12085
12160
 
12086
12161
  /**
12087
- * The security state of the page changed.
12162
+ * The security state of the page changed. No longer being sent.
12088
12163
  */
12089
12164
  export interface SecurityStateChangedEvent {
12090
12165
  /**
@@ -12096,8 +12171,8 @@ declare namespace Protocol {
12096
12171
  */
12097
12172
  schemeIsCryptographic: boolean;
12098
12173
  /**
12099
- * List of explanations for the security state. If the overall security state is `insecure` or
12100
- * `warning`, at least one corresponding explanation should be included.
12174
+ * Previously a list of explanations for the security state. Now always
12175
+ * empty.
12101
12176
  */
12102
12177
  explanations: SecurityStateExplanation[];
12103
12178
  /**
@@ -12105,7 +12180,7 @@ declare namespace Protocol {
12105
12180
  */
12106
12181
  insecureContentStatus: InsecureContentStatus;
12107
12182
  /**
12108
- * Overrides user-visible description of the state.
12183
+ * Overrides user-visible description of the state. Always omitted.
12109
12184
  */
12110
12185
  summary?: string;
12111
12186
  }
@@ -1,6 +1,7 @@
1
1
  // Copyright 2017 The Chromium Authors. All rights reserved.
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
+ import * as Common from '../../core/common/common.js';
4
5
 
5
6
  /**
6
7
  * @fileoverview using private properties isn't a Closure violation in tests.
@@ -52,8 +53,7 @@ BindingsTestRunner.TestFileSystem.prototype = {
52
53
 
53
54
  function created(event) {
54
55
  const fileSystem = event.data;
55
-
56
- if (fileSystem.path() !== fileSystemPath) {
56
+ if (fileSystem.path() !== Common.ParsedURL.ParsedURL.rawPathToUrlString(fileSystemPath)) {
57
57
  return;
58
58
  }
59
59
 
@@ -131,7 +131,11 @@ ConsoleTestRunner.dumpConsoleTableMessage = function(viewMessage, forceInvalidat
131
131
  if (forceInvalidate) {
132
132
  Console.ConsoleView.instance().viewport.invalidate();
133
133
  }
134
- const table = viewMessage.element();
134
+ const formattedTable = viewMessage.element().querySelector('.console-message-formatted-table');
135
+ if (!formattedTable) {
136
+ return false;
137
+ }
138
+ const table = formattedTable.querySelector('span').shadowRoot;
135
139
  const headers = table.querySelectorAll('th > div:first-child');
136
140
  if (!headers.length) {
137
141
  return false;
@@ -2,6 +2,16 @@
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 '../core/common/common-legacy.js';
6
+ import '../models/text_utils/text_utils-legacy.js';
7
+ import '../core/host/host-legacy.js';
8
+ import '../core/protocol_client/protocol_client-legacy.js';
9
+ import '../ui/legacy/legacy-legacy.js';
10
+ import '../models/workspace/workspace-legacy.js';
11
+ import '../models/bindings/bindings-legacy.js';
12
+ import '../ui/legacy/components/utils/utils-legacy.js';
13
+ import '../models/persistence/persistence-legacy.js';
14
+ import '../models/extensions/extensions-legacy.js';
5
15
  import '../entrypoints/devtools_app/devtools_app.js';
6
16
  import '../panels/accessibility/accessibility-legacy.js';
7
17
  import '../panels/animation/animation-legacy.js';
@@ -12,7 +22,6 @@ import '../ui/legacy/components/data_grid/data_grid-legacy.js';
12
22
  import '../third_party/diff/diff-legacy.js';
13
23
  import '../models/extensions/extensions-legacy.js';
14
24
  import '../models/formatter/formatter-legacy.js';
15
- import '../core/host/host-legacy.js';
16
25
  import '../ui/legacy/components/inline_editor/inline_editor-legacy.js';
17
26
  import '../core/root/root-legacy.js';
18
27
  import '../core/sdk/sdk-legacy.js';
@@ -398,7 +398,9 @@ export function textContentWithLineBreaks(node) {
398
398
  * @return {string}
399
399
  */
400
400
  export function textContentWithLineBreaksTrimmed(node) {
401
- return textContentWithLineBreaks(node).replace(/[ ]+/g, ' ');
401
+ // We want to allow single empty lines (2 white space characters), but
402
+ // compress occurences of 3 or more whitespaces.
403
+ return textContentWithLineBreaks(node).replace(/\s{3,}/g, ' ');
402
404
  }
403
405
 
404
406
  /**
@@ -142,16 +142,6 @@ export class SourceFormatter {
142
142
  await this.scriptMapping.setSourceMappingEnabled(formatData, true);
143
143
  await this.styleMapping.setSourceMappingEnabled(formatData, true);
144
144
  cacheEntry.formatData = formatData;
145
-
146
- for (const decoration of uiSourceCode.allDecorations()) {
147
- const range = decoration.range();
148
- const startLocation = formattedMapping.originalToFormatted(range.startLine, range.startColumn);
149
- const endLocation = formattedMapping.originalToFormatted(range.endLine, range.endColumn);
150
- formattedUISourceCode.addDecoration(
151
- new TextUtils.TextRange.TextRange(startLocation[0], startLocation[1], endLocation[0], endLocation[1]),
152
- (decoration.type() as string), decoration.data());
153
- }
154
-
155
145
  resolve(formatData);
156
146
  } catch (e) {
157
147
  reject(e);
@@ -8,7 +8,6 @@ import * as SDK from '../../core/sdk/sdk.js';
8
8
  import * as UI from '../../ui/legacy/legacy.js';
9
9
  import * as Workspace from '../workspace/workspace.js';
10
10
 
11
- // eslint-disable-next-line rulesdir/es_modules_import
12
11
  import type * as Persistence from './persistence.js';
13
12
 
14
13
  const UIStrings = {
@@ -60,7 +60,7 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
60
60
  private nameInternal: string;
61
61
  private contentTypeInternal: Common.ResourceType.ResourceType;
62
62
  private requestContentPromise: Promise<TextUtils.ContentProvider.DeferredContent>|null;
63
- private decorations: Platform.MapUtilities.Multimap<string, LineMarker>|null;
63
+ private decorations: Map<string, any> = new Map();
64
64
  private hasCommitsInternal: boolean;
65
65
  private messagesInternal: Set<Message>|null;
66
66
  private contentLoadedInternal: boolean;
@@ -94,7 +94,6 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
94
94
 
95
95
  this.contentTypeInternal = contentType;
96
96
  this.requestContentPromise = null;
97
- this.decorations = null;
98
97
  this.hasCommitsInternal = false;
99
98
  this.messagesInternal = null;
100
99
  this.contentLoadedInternal = false;
@@ -455,45 +454,15 @@ export class UISourceCode extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
455
454
  this.messagesInternal = null;
456
455
  }
457
456
 
458
- addLineDecoration(lineNumber: number, type: string, data: any): void {
459
- this.addDecoration(TextUtils.TextRange.TextRange.createFromLocation(lineNumber, 0), type, data);
460
- }
461
-
462
- addDecoration(range: TextUtils.TextRange.TextRange, type: string, data: any): void {
463
- const marker = new LineMarker(range, type, data);
464
- if (!this.decorations) {
465
- this.decorations = new Platform.MapUtilities.Multimap();
466
- }
467
- this.decorations.set(type, marker);
468
- this.dispatchEventToListeners(Events.LineDecorationAdded, marker);
469
- }
470
-
471
- removeDecorationsForType(type: string): void {
472
- if (!this.decorations) {
473
- return;
474
- }
475
- const markers = this.decorations.get(type);
476
- this.decorations.deleteAll(type);
477
- markers.forEach(marker => {
478
- this.dispatchEventToListeners(Events.LineDecorationRemoved, marker);
479
- });
480
- }
481
-
482
- allDecorations(): LineMarker[] {
483
- return this.decorations ? this.decorations.valuesArray() : [];
484
- }
485
-
486
- removeAllDecorations(): void {
487
- if (!this.decorations) {
488
- return;
457
+ setDecorationData(type: string, data: any): void {
458
+ if (data !== this.decorations.get(type)) {
459
+ this.decorations.set(type, data);
460
+ this.dispatchEventToListeners(Events.DecorationChanged, type);
489
461
  }
490
- const decorationList = this.decorations.valuesArray();
491
- this.decorations.clear();
492
- decorationList.forEach(marker => this.dispatchEventToListeners(Events.LineDecorationRemoved, marker));
493
462
  }
494
463
 
495
- decorationsForType(type: string): Set<LineMarker>|null {
496
- return this.decorations ? this.decorations.get(type) : null;
464
+ getDecorationData(type: string): any {
465
+ return this.decorations.get(type);
497
466
  }
498
467
 
499
468
  disableEdit(): void {
@@ -513,8 +482,7 @@ export enum Events {
513
482
  TitleChanged = 'TitleChanged',
514
483
  MessageAdded = 'MessageAdded',
515
484
  MessageRemoved = 'MessageRemoved',
516
- LineDecorationAdded = 'LineDecorationAdded',
517
- LineDecorationRemoved = 'LineDecorationRemoved',
485
+ DecorationChanged = 'DecorationChanged',
518
486
  }
519
487
 
520
488
  export interface WorkingCopyCommitedEvent {
@@ -529,8 +497,7 @@ export type EventTypes = {
529
497
  [Events.TitleChanged]: UISourceCode,
530
498
  [Events.MessageAdded]: Message,
531
499
  [Events.MessageRemoved]: Message,
532
- [Events.LineDecorationAdded]: LineMarker,
533
- [Events.LineDecorationRemoved]: LineMarker,
500
+ [Events.DecorationChanged]: string,
534
501
  };
535
502
 
536
503
  export class UILocation {
@@ -5,7 +5,6 @@
5
5
  import * as i18n from '../../core/i18n/i18n.js';
6
6
  import * as UI from '../../ui/legacy/legacy.js';
7
7
 
8
- // eslint-disable-next-line rulesdir/es_modules_import
9
8
  import type * as Accessibility from './accessibility.js';
10
9
 
11
10
  let loadedAccessibilityModule: (typeof Accessibility|undefined);
@@ -438,9 +438,6 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
438
438
  }
439
439
 
440
440
  private togglePause(pause: boolean): void {
441
- if (this.#scrubberPlayer) {
442
- this.#scrubberPlayer.playbackRate = this.effectivePlaybackRate();
443
- }
444
441
  if (this.#selectedGroup) {
445
442
  this.#selectedGroup.togglePause(pause);
446
443
  const preview = this.#previewMap.get(this.#selectedGroup);
@@ -448,6 +445,9 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
448
445
  preview.element.classList.toggle('paused', pause);
449
446
  }
450
447
  }
448
+ if (this.#scrubberPlayer) {
449
+ this.#scrubberPlayer.playbackRate = this.effectivePlaybackRate();
450
+ }
451
451
  this.updateControlButton();
452
452
  }
453
453
 
@@ -5,7 +5,6 @@
5
5
  import * as i18n from '../../core/i18n/i18n.js';
6
6
  import * as UI from '../../ui/legacy/legacy.js';
7
7
 
8
- // eslint-disable-next-line rulesdir/es_modules_import
9
8
  import type * as Animation from './animation.js';
10
9
 
11
10
  let loadedAnimationModule: (typeof Animation|undefined);
@@ -1970,13 +1970,13 @@ export class FrameResourceTreeElement extends ApplicationPanelTreeElement {
1970
1970
  contextMenu.show();
1971
1971
  }
1972
1972
 
1973
- async revealResource(line?: number, column?: number): Promise<void> {
1973
+ async revealResource(lineNumber?: number, columnNumber?: number): Promise<void> {
1974
1974
  this.revealAndSelect(true);
1975
1975
  const view = await this.panel.scheduleShowView(this.preparePreview());
1976
- if (!(view instanceof SourceFrame.ResourceSourceFrame.ResourceSourceFrame) || typeof line !== 'number') {
1976
+ if (!(view instanceof SourceFrame.ResourceSourceFrame.ResourceSourceFrame) || typeof lineNumber !== 'number') {
1977
1977
  return;
1978
1978
  }
1979
- view.revealPosition(line, column, true);
1979
+ view.revealPosition({lineNumber, columnNumber}, true);
1980
1980
  }
1981
1981
  }
1982
1982
 
@@ -16,9 +16,10 @@ const UIStrings = {
16
16
  'Back/forward cache is disabled by flags. Visit chrome://flags/#back-forward-cache to enable it locally on this device.',
17
17
  /**
18
18
  * @description Description text for not restored reason RelatedActiveContentsExist.
19
+ * Note: "window.open()" is the name of a JavaScript method and should not be translated.
19
20
  */
20
21
  relatedActiveContentsExist:
21
- 'The page was opened using `window.open()` and another tab has a reference to it, or the page opened a window.',
22
+ 'The page was opened using \'`window.open()`\' and another tab has a reference to it, or the page opened a window.',
22
23
  /**
23
24
  * @description Description text for not restored reason HTTPStatusNotOK.
24
25
  */
@@ -83,6 +84,7 @@ const UIStrings = {
83
84
  sessionRestored: 'Chrome restarted and cleared the back/forward cache entries.',
84
85
  /**
85
86
  * @description Description text for not restored reason ServiceWorkerPostMessage.
87
+ * Note: "MessageEvent" should not be translated.
86
88
  */
87
89
  serviceWorkerPostMessage: 'A service worker attempted to send the page in back/forward cache a `MessageEvent`.',
88
90
  /**
@@ -3,11 +3,9 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
- import * as Root from '../../core/root/root.js';
7
6
  import * as SDK from '../../core/sdk/sdk.js';
8
7
  import * as UI from '../../ui/legacy/legacy.js';
9
8
 
10
- // eslint-disable-next-line rulesdir/es_modules_import
11
9
  import type * as Resources from './application.js';
12
10
 
13
11
  import * as i18n from '../../core/i18n/i18n.js';
@@ -47,8 +45,6 @@ let loadedResourcesModule: (typeof Resources|undefined);
47
45
 
48
46
  async function loadResourcesModule(): Promise<typeof Resources> {
49
47
  if (!loadedResourcesModule) {
50
- // Side-effect import resources in module.json
51
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/application');
52
48
  loadedResourcesModule = await import('./application.js');
53
49
  }
54
50
  return loadedResourcesModule;
@@ -36,7 +36,7 @@ export class EndpointsGrid extends HTMLElement {
36
36
  // clang-format off
37
37
  render(html`
38
38
  <div class="reporting-container">
39
- <div class="reporting-header">Endpoints</div>
39
+ <div class="reporting-header">${i18n.i18n.lockedString('Endpoints')}</div>
40
40
  <div class="reporting-placeholder">
41
41
  <div>${i18nString(UIStrings.noEndpointsToDisplay)}</div>
42
42
  </div>
@@ -136,7 +136,7 @@ export class ReportsGrid extends HTMLElement {
136
136
  // clang-format off
137
137
  render(html`
138
138
  <div class="reporting-container">
139
- <div class="reporting-header">Reports</div>
139
+ <div class="reporting-header">${i18n.i18n.lockedString('Reports')}</div>
140
140
  ${this.reports.length > 0 ? html`
141
141
  <${DataGrid.DataGridController.DataGridController.litTagName} .data=${
142
142
  reportsGridData as DataGrid.DataGridController.DataGridControllerData}>
@@ -26,3 +26,11 @@
26
26
  .ignore-list-link {
27
27
  opacity: 60%;
28
28
  }
29
+
30
+ .link,
31
+ .devtools-link {
32
+ color: var(--color-link);
33
+ text-decoration: underline;
34
+ cursor: pointer;
35
+ padding: 2px 0; /* adjust focus ring size */
36
+ }
@@ -4,10 +4,9 @@
4
4
 
5
5
  import * as SDK from '../../core/sdk/sdk.js';
6
6
  import * as UI from '../../ui/legacy/legacy.js';
7
+ import type * as Sources from '../sources/sources.js';
7
8
 
8
- // eslint-disable-next-line rulesdir/es_modules_import
9
9
  import type * as BrowserDebugger from './browser_debugger.js';
10
- import type * as Sources from '../sources/sources.js';
11
10
 
12
11
  import * as i18n from '../../core/i18n/i18n.js';
13
12
  const UIStrings = {
@@ -7,7 +7,6 @@ import * as i18n from '../../core/i18n/i18n.js';
7
7
  import * as WorkspaceDiff from '../../models/workspace_diff/workspace_diff.js';
8
8
  import * as UI from '../../ui/legacy/legacy.js';
9
9
 
10
- // eslint-disable-next-line rulesdir/es_modules_import
11
10
  import type * as Changes from './changes.js';
12
11
 
13
12
  let loadedChangesModule: (typeof Changes|undefined);