chrome-devtools-frontend 1.0.942529 → 1.0.943986

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 (212) hide show
  1. package/WATCHLISTS +1 -1
  2. package/config/gni/all_devtools_files.gni +0 -14
  3. package/config/gni/devtools_grd_files.gni +6 -5
  4. package/front_end/Tests.js +0 -32
  5. package/front_end/core/i18n/locales/af.json +455 -44
  6. package/front_end/core/i18n/locales/am.json +455 -44
  7. package/front_end/core/i18n/locales/ar.json +455 -44
  8. package/front_end/core/i18n/locales/as.json +455 -44
  9. package/front_end/core/i18n/locales/az.json +455 -44
  10. package/front_end/core/i18n/locales/be.json +456 -45
  11. package/front_end/core/i18n/locales/bg.json +455 -44
  12. package/front_end/core/i18n/locales/bn.json +455 -44
  13. package/front_end/core/i18n/locales/bs.json +455 -44
  14. package/front_end/core/i18n/locales/ca.json +457 -46
  15. package/front_end/core/i18n/locales/cs.json +458 -47
  16. package/front_end/core/i18n/locales/cy.json +455 -44
  17. package/front_end/core/i18n/locales/da.json +455 -44
  18. package/front_end/core/i18n/locales/de.json +455 -44
  19. package/front_end/core/i18n/locales/el.json +455 -44
  20. package/front_end/core/i18n/locales/en-GB.json +449 -38
  21. package/front_end/core/i18n/locales/en-US.json +8 -8
  22. package/front_end/core/i18n/locales/en-XL.json +8 -8
  23. package/front_end/core/i18n/locales/es-419.json +455 -44
  24. package/front_end/core/i18n/locales/es.json +455 -44
  25. package/front_end/core/i18n/locales/et.json +455 -44
  26. package/front_end/core/i18n/locales/eu.json +462 -51
  27. package/front_end/core/i18n/locales/fa.json +455 -44
  28. package/front_end/core/i18n/locales/fi.json +455 -44
  29. package/front_end/core/i18n/locales/fil.json +454 -43
  30. package/front_end/core/i18n/locales/fr-CA.json +455 -44
  31. package/front_end/core/i18n/locales/fr.json +456 -45
  32. package/front_end/core/i18n/locales/gl.json +455 -44
  33. package/front_end/core/i18n/locales/gu.json +456 -45
  34. package/front_end/core/i18n/locales/he.json +455 -44
  35. package/front_end/core/i18n/locales/hi.json +455 -44
  36. package/front_end/core/i18n/locales/hr.json +455 -44
  37. package/front_end/core/i18n/locales/hu.json +455 -44
  38. package/front_end/core/i18n/locales/hy.json +455 -44
  39. package/front_end/core/i18n/locales/id.json +455 -44
  40. package/front_end/core/i18n/locales/is.json +455 -44
  41. package/front_end/core/i18n/locales/it.json +502 -91
  42. package/front_end/core/i18n/locales/ja.json +456 -45
  43. package/front_end/core/i18n/locales/ka.json +455 -44
  44. package/front_end/core/i18n/locales/kk.json +456 -45
  45. package/front_end/core/i18n/locales/km.json +455 -44
  46. package/front_end/core/i18n/locales/kn.json +455 -44
  47. package/front_end/core/i18n/locales/ko.json +455 -44
  48. package/front_end/core/i18n/locales/ky.json +456 -45
  49. package/front_end/core/i18n/locales/lo.json +454 -43
  50. package/front_end/core/i18n/locales/lt.json +455 -44
  51. package/front_end/core/i18n/locales/lv.json +458 -47
  52. package/front_end/core/i18n/locales/mk.json +455 -44
  53. package/front_end/core/i18n/locales/ml.json +461 -50
  54. package/front_end/core/i18n/locales/mn.json +455 -44
  55. package/front_end/core/i18n/locales/mr.json +455 -44
  56. package/front_end/core/i18n/locales/ms.json +455 -44
  57. package/front_end/core/i18n/locales/my.json +456 -45
  58. package/front_end/core/i18n/locales/ne.json +456 -45
  59. package/front_end/core/i18n/locales/nl.json +532 -121
  60. package/front_end/core/i18n/locales/no.json +455 -44
  61. package/front_end/core/i18n/locales/or.json +455 -44
  62. package/front_end/core/i18n/locales/pa.json +455 -44
  63. package/front_end/core/i18n/locales/pl.json +455 -44
  64. package/front_end/core/i18n/locales/pt-PT.json +504 -93
  65. package/front_end/core/i18n/locales/pt.json +454 -43
  66. package/front_end/core/i18n/locales/ro.json +455 -44
  67. package/front_end/core/i18n/locales/ru.json +455 -44
  68. package/front_end/core/i18n/locales/si.json +455 -44
  69. package/front_end/core/i18n/locales/sk.json +456 -45
  70. package/front_end/core/i18n/locales/sl.json +455 -44
  71. package/front_end/core/i18n/locales/sq.json +455 -44
  72. package/front_end/core/i18n/locales/sr-Latn.json +455 -44
  73. package/front_end/core/i18n/locales/sr.json +455 -44
  74. package/front_end/core/i18n/locales/sv.json +456 -45
  75. package/front_end/core/i18n/locales/sw.json +455 -44
  76. package/front_end/core/i18n/locales/ta.json +456 -45
  77. package/front_end/core/i18n/locales/te.json +454 -43
  78. package/front_end/core/i18n/locales/th.json +455 -44
  79. package/front_end/core/i18n/locales/tr.json +455 -44
  80. package/front_end/core/i18n/locales/uk.json +455 -44
  81. package/front_end/core/i18n/locales/ur.json +455 -44
  82. package/front_end/core/i18n/locales/uz.json +455 -44
  83. package/front_end/core/i18n/locales/vi.json +455 -44
  84. package/front_end/core/i18n/locales/zh-HK.json +459 -48
  85. package/front_end/core/i18n/locales/zh-TW.json +457 -46
  86. package/front_end/core/i18n/locales/zh.json +460 -49
  87. package/front_end/core/i18n/locales/zu.json +455 -44
  88. package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
  89. package/front_end/core/sdk/AccessibilityModel.ts +99 -78
  90. package/front_end/core/sdk/CPUProfilerModel.ts +7 -9
  91. package/front_end/core/sdk/ConsoleModel.ts +27 -33
  92. package/front_end/core/sdk/NetworkManager.ts +3 -0
  93. package/front_end/core/sdk/Script.ts +0 -4
  94. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
  95. package/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.ts +1 -1
  96. package/front_end/entrypoints/devtools_app/devtools_app.js +1 -1
  97. package/front_end/entrypoints/devtools_app/devtools_app.json +1 -4
  98. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
  99. package/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.ts +1 -1
  100. package/front_end/entrypoints/inspector/inspector.js +1 -1
  101. package/front_end/entrypoints/inspector/inspector.json +1 -3
  102. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +2 -3
  103. package/front_end/entrypoints/js_app/js_app.js +1 -1
  104. package/front_end/entrypoints/js_app/js_app.json +1 -3
  105. package/front_end/entrypoints/main/MainImpl.ts +2 -2
  106. package/front_end/entrypoints/main/main-meta.ts +1 -2
  107. package/front_end/entrypoints/ndb_app/ndb_app.js +1 -1
  108. package/front_end/entrypoints/node_app/node_app-meta.ts +0 -2
  109. package/front_end/entrypoints/node_app/node_app.js +1 -1
  110. package/front_end/entrypoints/node_app/node_app.json +1 -3
  111. package/front_end/entrypoints/node_main/node_main-meta.ts +0 -1
  112. package/front_end/entrypoints/shell/shell.json +1 -4
  113. package/front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.ts +1 -1
  114. package/front_end/entrypoints/worker_app/worker_app.js +1 -1
  115. package/front_end/entrypoints/worker_app/worker_app.json +1 -3
  116. package/front_end/generated/InspectorBackendCommands.js +21 -1
  117. package/front_end/generated/protocol-mapping.d.ts +32 -1
  118. package/front_end/generated/protocol-proxy-api.d.ts +36 -2
  119. package/front_end/generated/protocol.d.ts +120 -7
  120. package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +5 -1
  121. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -9
  122. package/front_end/models/bindings/ResourceScriptMapping.ts +3 -11
  123. package/front_end/models/formatter/SourceFormatter.ts +0 -15
  124. package/front_end/models/persistence/persistence-meta.ts +0 -1
  125. package/front_end/panels/accessibility/accessibility-meta.ts +0 -1
  126. package/front_end/panels/animation/animation-meta.ts +0 -1
  127. package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -1
  128. package/front_end/panels/application/BackForwardCacheStrings.ts +3 -1
  129. package/front_end/panels/application/BackForwardCacheView.ts +26 -26
  130. package/front_end/panels/application/application-meta.ts +0 -1
  131. package/front_end/panels/application/components/stackTraceRow.css +8 -0
  132. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +1 -2
  133. package/front_end/panels/changes/changes-meta.ts +0 -1
  134. package/front_end/panels/console/ConsolePinPane.ts +2 -6
  135. package/front_end/panels/console/ConsoleViewMessage.ts +8 -1
  136. package/front_end/panels/console/console-meta.ts +0 -1
  137. package/front_end/panels/console_counters/console_counters-meta.ts +0 -1
  138. package/front_end/panels/coverage/coverage-meta.ts +0 -1
  139. package/front_end/panels/css_overview/css_overview-meta.ts +0 -1
  140. package/front_end/panels/developer_resources/developer_resources-meta.ts +0 -1
  141. package/front_end/panels/elements/AccessibilityTreeUtils.ts +96 -66
  142. package/front_end/panels/elements/AccessibilityTreeView.ts +76 -125
  143. package/front_end/panels/elements/ElementsPanel.ts +6 -7
  144. package/front_end/panels/elements/elements-meta.ts +0 -1
  145. package/front_end/panels/emulation/emulation-meta.ts +0 -1
  146. package/front_end/panels/help/help-meta.ts +0 -1
  147. package/front_end/panels/input/input-meta.ts +0 -1
  148. package/front_end/panels/issues/issues-meta.ts +0 -1
  149. package/front_end/panels/js_profiler/js_profiler-meta.ts +0 -4
  150. package/front_end/panels/layers/layers-meta.ts +0 -4
  151. package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -1
  152. package/front_end/panels/lighthouse/module.json +0 -3
  153. package/front_end/panels/media/media-meta.ts +0 -1
  154. package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +0 -1
  155. package/front_end/panels/network/network-meta.ts +1 -2
  156. package/front_end/panels/performance_monitor/performance_monitor-meta.ts +0 -1
  157. package/front_end/panels/profiler/CPUProfileView.ts +10 -3
  158. package/front_end/panels/profiler/profiler-meta.ts +0 -3
  159. package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -1
  160. package/front_end/panels/screencast/screencast-meta.ts +0 -4
  161. package/front_end/panels/security/security-meta.ts +0 -1
  162. package/front_end/panels/sensors/sensors-meta.ts +0 -1
  163. package/front_end/panels/settings/emulation/emulation-meta.ts +0 -1
  164. package/front_end/panels/settings/settings-meta.ts +0 -1
  165. package/front_end/panels/sources/Plugin.ts +0 -3
  166. package/front_end/panels/sources/UISourceCodeFrame.ts +23 -49
  167. package/front_end/panels/sources/sources-meta.ts +2 -6
  168. package/front_end/panels/timeline/timeline-meta.ts +2 -9
  169. package/front_end/panels/web_audio/web_audio-meta.ts +0 -1
  170. package/front_end/panels/webauthn/webauthn-meta.ts +0 -1
  171. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  172. package/front_end/third_party/codemirror.next/package.json +1 -1
  173. package/front_end/ui/components/docs/component_docs.ts +14 -0
  174. package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
  175. package/front_end/ui/components/docs/toggle_dark_mode.ts +1 -0
  176. package/front_end/ui/components/docs/toggle_fonts.ts +2 -0
  177. package/front_end/ui/components/helpers/get-stylesheet.ts +0 -1
  178. package/front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.ts +1 -2
  179. package/front_end/ui/components/tree_outline/TreeOutline.ts +71 -8
  180. package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +8 -6
  181. package/front_end/ui/legacy/Dialog.ts +8 -3
  182. package/front_end/ui/legacy/SoftContextMenu.ts +1 -1
  183. package/front_end/ui/legacy/Treeoutline.ts +1 -1
  184. package/front_end/ui/legacy/UIUtils.ts +1 -1
  185. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -2
  186. package/front_end/ui/legacy/components/inline_editor/cssAngle.css +4 -0
  187. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +2 -2
  188. package/front_end/ui/legacy/components/object_ui/object_ui-meta.ts +0 -4
  189. package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +0 -3
  190. package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -3
  191. package/front_end/ui/legacy/components/source_frame/FontView.ts +3 -1
  192. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -1
  193. package/front_end/ui/legacy/components/source_frame/JSONView.ts +3 -1
  194. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +2 -1
  195. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +6 -6
  196. package/front_end/ui/legacy/components/source_frame/XMLView.ts +5 -2
  197. package/front_end/ui/legacy/textButton.css +5 -4
  198. package/inspector_overlay/css_grid_label_helpers.ts +1 -1
  199. package/inspector_overlay/highlight_common.ts +1 -1
  200. package/inspector_overlay/tool_highlight.ts +1 -1
  201. package/package.json +1 -1
  202. package/scripts/check_gn.js +0 -35
  203. package/scripts/eslint_rules/lib/es_modules_import.js +15 -24
  204. package/scripts/eslint_rules/tests/es_modules_import_test.js +8 -16
  205. package/front_end/emulated_devices/module.json +0 -4
  206. package/front_end/panels/js_profiler/module.json +0 -5
  207. package/front_end/panels/layers/module.json +0 -4
  208. package/front_end/panels/profiler/module.json +0 -3
  209. package/front_end/panels/screencast/module.json +0 -3
  210. package/front_end/panels/timeline/module.json +0 -5
  211. package/front_end/ui/legacy/components/source_frame/messagesPopover.css +0 -32
  212. package/front_end/ui/legacy/components/source_frame/module.json +0 -11
@@ -5,7 +5,7 @@ import '../shell/shell.js';
5
5
  import '../../panels/js_profiler/js_profiler-meta.js';
6
6
  import '../node_main/node_main-meta.js';
7
7
  import './node_app-meta.js';
8
- import * as Startup from '../startup/startup.js'; // eslint-disable-line rulesdir/es_modules_import
8
+ import * as Startup from '../startup/startup.js';
9
9
 
10
10
  // Side-effect start the `node_main` module, which implements runnables in
11
11
  // the NodeMain class
@@ -1,6 +1,4 @@
1
1
  {
2
- "modules" : [
3
- { "name": "panels/js_profiler" }
4
- ],
2
+ "modules" : [ ],
5
3
  "extends": "shell"
6
4
  }
@@ -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 NodeMain from './node_main.js';
10
9
 
11
10
  const UIStrings = {
@@ -1,8 +1,5 @@
1
1
  {
2
2
  "modules": [
3
- { "name": "ui/legacy/components/text_editor", "type": "autostart" },
4
- { "name": "ui/legacy/components/source_frame", "type": "autostart" },
5
-
6
- { "name": "panels/profiler" }
3
+ { "name": "ui/legacy/components/text_editor", "type": "autostart" }
7
4
  ]
8
5
  }
@@ -2,7 +2,7 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- import * as WasmParserWorker from './wasmparser_worker.js'; // eslint-disable-line rulesdir/es_modules_import
5
+ import * as WasmParserWorker from './wasmparser_worker.js';
6
6
 
7
7
  self.onmessage = (event: {data: {method: string, params: {content: string}}}): void => {
8
8
  const method = event.data.method;
@@ -13,6 +13,6 @@ import '../../panels/network/network-meta.js';
13
13
  import '../../panels/application/application-meta.js';
14
14
  import '../../panels/timeline/timeline-meta.js';
15
15
  import './WorkerMain.js';
16
- import * as Startup from '../startup/startup.js'; // eslint-disable-line rulesdir/es_modules_import
16
+ import * as Startup from '../startup/startup.js';
17
17
 
18
18
  Startup.RuntimeInstantiator.startApplication('worker_app');
@@ -1,6 +1,4 @@
1
1
  {
2
- "modules" : [
3
- { "name": "panels/timeline" }
4
- ],
2
+ "modules" : [],
5
3
  "extends": "shell"
6
4
  }
@@ -98,6 +98,8 @@ export function registerCommands(inspectorBackend) {
98
98
  Labelledby: 'labelledby',
99
99
  Owns: 'owns'
100
100
  });
101
+ inspectorBackend.registerEvent('Accessibility.loadComplete', ['root']);
102
+ inspectorBackend.registerEvent('Accessibility.nodesUpdated', ['nodes']);
101
103
  inspectorBackend.registerCommand('Accessibility.disable', [], []);
102
104
  inspectorBackend.registerCommand('Accessibility.enable', [], []);
103
105
  inspectorBackend.registerCommand(
@@ -117,6 +119,16 @@ export function registerCommands(inspectorBackend) {
117
119
  {'name': 'frameId', 'type': 'string', 'optional': true}
118
120
  ],
119
121
  ['nodes']);
122
+ inspectorBackend.registerCommand(
123
+ 'Accessibility.getRootAXNode', [{'name': 'frameId', 'type': 'string', 'optional': true}], ['node']);
124
+ inspectorBackend.registerCommand(
125
+ 'Accessibility.getAXNodeAndAncestors',
126
+ [
127
+ {'name': 'nodeId', 'type': 'number', 'optional': true},
128
+ {'name': 'backendNodeId', 'type': 'number', 'optional': true},
129
+ {'name': 'objectId', 'type': 'string', 'optional': true}
130
+ ],
131
+ ['nodes']);
120
132
  inspectorBackend.registerCommand(
121
133
  'Accessibility.getChildAXNodes',
122
134
  [{'name': 'id', 'type': 'string', 'optional': false}, {'name': 'frameId', 'type': 'string', 'optional': true}],
@@ -1688,6 +1700,7 @@ export function registerCommands(inspectorBackend) {
1688
1700
  ['innerRequestId', 'innerRequestURL', 'errorMessage', 'bundleRequestId']);
1689
1701
  inspectorBackend.registerEvent('Network.reportingApiReportAdded', ['report']);
1690
1702
  inspectorBackend.registerEvent('Network.reportingApiReportUpdated', ['report']);
1703
+ inspectorBackend.registerEvent('Network.reportingApiEndpointsChangedForOrigin', ['origin', 'endpoints']);
1691
1704
  inspectorBackend.registerCommand(
1692
1705
  'Network.setAcceptedEncodings', [{'name': 'encodings', 'type': 'object', 'optional': false}], []);
1693
1706
  inspectorBackend.registerCommand('Network.clearAcceptedEncodingsOverride', [], []);
@@ -1779,7 +1792,8 @@ export function registerCommands(inspectorBackend) {
1779
1792
  {'name': 'priority', 'type': 'string', 'optional': true},
1780
1793
  {'name': 'sameParty', 'type': 'boolean', 'optional': true},
1781
1794
  {'name': 'sourceScheme', 'type': 'string', 'optional': true},
1782
- {'name': 'sourcePort', 'type': 'number', 'optional': true}
1795
+ {'name': 'sourcePort', 'type': 'number', 'optional': true},
1796
+ {'name': 'partitionKey', 'type': 'string', 'optional': true}
1783
1797
  ],
1784
1798
  ['success']);
1785
1799
  inspectorBackend.registerCommand(
@@ -1994,6 +2008,7 @@ export function registerCommands(inspectorBackend) {
1994
2008
  Hid: 'hid',
1995
2009
  IdleDetection: 'idle-detection',
1996
2010
  InterestCohort: 'interest-cohort',
2011
+ JoinAdInterestGroup: 'join-ad-interest-group',
1997
2012
  KeyboardMap: 'keyboard-map',
1998
2013
  Magnetometer: 'magnetometer',
1999
2014
  Microphone: 'microphone',
@@ -2002,6 +2017,7 @@ export function registerCommands(inspectorBackend) {
2002
2017
  Payment: 'payment',
2003
2018
  PictureInPicture: 'picture-in-picture',
2004
2019
  PublickeyCredentialsGet: 'publickey-credentials-get',
2020
+ RunAdAuction: 'run-ad-auction',
2005
2021
  ScreenWakeLock: 'screen-wake-lock',
2006
2022
  Serial: 'serial',
2007
2023
  SharedAutofill: 'shared-autofill',
@@ -2453,6 +2469,10 @@ export function registerCommands(inspectorBackend) {
2453
2469
  [{'name': 'url', 'type': 'string', 'optional': false}, {'name': 'data', 'type': 'string', 'optional': false}],
2454
2470
  []);
2455
2471
  inspectorBackend.registerCommand('Page.clearCompilationCache', [], []);
2472
+ inspectorBackend.registerEnum(
2473
+ 'Page.SetSPCTransactionModeRequestMode', {None: 'none', Autoaccept: 'autoaccept', Autoreject: 'autoreject'});
2474
+ inspectorBackend.registerCommand(
2475
+ 'Page.setSPCTransactionMode', [{'name': 'mode', 'type': 'string', 'optional': false}], []);
2456
2476
  inspectorBackend.registerCommand(
2457
2477
  'Page.generateTestReport',
2458
2478
  [{'name': 'message', 'type': 'string', 'optional': false}, {'name': 'group', 'type': 'string', 'optional': true}],
@@ -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
  */
@@ -296,6 +305,7 @@ export namespace ProtocolMapping {
296
305
  */
297
306
  'Network.reportingApiReportAdded': [Protocol.Network.ReportingApiReportAddedEvent];
298
307
  'Network.reportingApiReportUpdated': [Protocol.Network.ReportingApiReportUpdatedEvent];
308
+ 'Network.reportingApiEndpointsChangedForOrigin': [Protocol.Network.ReportingApiEndpointsChangedForOriginEvent];
299
309
  /**
300
310
  * Fired when the node should be inspected. This happens after call to `setInspectMode` or when
301
311
  * user manually inspects an element.
@@ -438,7 +448,7 @@ export namespace ProtocolMapping {
438
448
  */
439
449
  'Security.visibleSecurityStateChanged': [Protocol.Security.VisibleSecurityStateChangedEvent];
440
450
  /**
441
- * The security state of the page changed.
451
+ * The security state of the page changed. No longer being sent.
442
452
  */
443
453
  'Security.securityStateChanged': [Protocol.Security.SecurityStateChangedEvent];
444
454
  'ServiceWorker.workerErrorReported': [Protocol.ServiceWorker.WorkerErrorReportedEvent];
@@ -701,6 +711,22 @@ export namespace ProtocolMapping {
701
711
  paramsType: [Protocol.Accessibility.GetFullAXTreeRequest?];
702
712
  returnType: Protocol.Accessibility.GetFullAXTreeResponse;
703
713
  };
714
+ /**
715
+ * Fetches the root node.
716
+ * Requires `enable()` to have been called previously.
717
+ */
718
+ 'Accessibility.getRootAXNode': {
719
+ paramsType: [Protocol.Accessibility.GetRootAXNodeRequest?];
720
+ returnType: Protocol.Accessibility.GetRootAXNodeResponse;
721
+ };
722
+ /**
723
+ * Fetches a node and all ancestors up to and including the root.
724
+ * Requires `enable()` to have been called previously.
725
+ */
726
+ 'Accessibility.getAXNodeAndAncestors': {
727
+ paramsType: [Protocol.Accessibility.GetAXNodeAndAncestorsRequest?];
728
+ returnType: Protocol.Accessibility.GetAXNodeAndAncestorsResponse;
729
+ };
704
730
  /**
705
731
  * Fetches a particular accessibility node by AXNodeId.
706
732
  * Requires `enable()` to have been called previously.
@@ -2327,6 +2353,11 @@ export namespace ProtocolMapping {
2327
2353
  * Clears seeded compilation cache.
2328
2354
  */
2329
2355
  'Page.clearCompilationCache': {paramsType: []; returnType: void;};
2356
+ /**
2357
+ * Sets the Secure Payment Confirmation transaction mode.
2358
+ * https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
2359
+ */
2360
+ 'Page.setSPCTransactionMode': {paramsType: [Protocol.Page.SetSPCTransactionModeRequest]; returnType: void;};
2330
2361
  /**
2331
2362
  * Generates a report for testing.
2332
2363
  */
@@ -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
  /**
@@ -2157,6 +2182,8 @@ declare namespace ProtocolProxyApi {
2157
2182
  reportingApiReportAdded(params: Protocol.Network.ReportingApiReportAddedEvent): void;
2158
2183
 
2159
2184
  reportingApiReportUpdated(params: Protocol.Network.ReportingApiReportUpdatedEvent): void;
2185
+
2186
+ reportingApiEndpointsChangedForOrigin(params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent): void;
2160
2187
  }
2161
2188
 
2162
2189
  export interface OverlayApi {
@@ -2637,6 +2664,13 @@ declare namespace ProtocolProxyApi {
2637
2664
  */
2638
2665
  invoke_clearCompilationCache(): Promise<Protocol.ProtocolResponseWithError>;
2639
2666
 
2667
+ /**
2668
+ * Sets the Secure Payment Confirmation transaction mode.
2669
+ * https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
2670
+ */
2671
+ invoke_setSPCTransactionMode(params: Protocol.Page.SetSPCTransactionModeRequest):
2672
+ Promise<Protocol.ProtocolResponseWithError>;
2673
+
2640
2674
  /**
2641
2675
  * Generates a report for testing.
2642
2676
  */
@@ -2879,7 +2913,7 @@ declare namespace ProtocolProxyApi {
2879
2913
  visibleSecurityStateChanged(params: Protocol.Security.VisibleSecurityStateChangedEvent): void;
2880
2914
 
2881
2915
  /**
2882
- * The security state of the page changed.
2916
+ * The security state of the page changed. No longer being sent.
2883
2917
  */
2884
2918
  securityStateChanged(params: Protocol.Security.SecurityStateChangedEvent): void;
2885
2919
  }
@@ -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,8 +4938,8 @@ declare namespace Protocol {
4878
4938
  */
4879
4939
  export interface UserAgentMetadata {
4880
4940
  brands?: UserAgentBrandVersion[];
4881
- fullVersion?: string;
4882
4941
  fullVersionList?: UserAgentBrandVersion[];
4942
+ fullVersion?: string;
4883
4943
  platform: string;
4884
4944
  platformVersion: string;
4885
4945
  architecture: string;
@@ -6988,9 +7048,10 @@ declare namespace Protocol {
6988
7048
  */
6989
7049
  logId: string;
6990
7050
  /**
6991
- * Issuance date.
7051
+ * Issuance date. Unlike TimeSinceEpoch, this contains the number of
7052
+ * milliseconds since January 1, 1970, UTC, not the number of seconds.
6992
7053
  */
6993
- timestamp: TimeSinceEpoch;
7054
+ timestamp: number;
6994
7055
  /**
6995
7056
  * Hash algorithm.
6996
7057
  */
@@ -7452,6 +7513,15 @@ declare namespace Protocol {
7452
7513
  * This is a temporary ability and it will be removed in the future.
7453
7514
  */
7454
7515
  sourcePort: integer;
7516
+ /**
7517
+ * Cookie partition key. The site of the top-level URL the browser was visiting at the start
7518
+ * of the request to the endpoint that set the cookie.
7519
+ */
7520
+ partitionKey?: string;
7521
+ /**
7522
+ * True if cookie partition key is opaque.
7523
+ */
7524
+ partitionKeyOpaque?: boolean;
7455
7525
  }
7456
7526
 
7457
7527
  /**
@@ -7592,6 +7662,12 @@ declare namespace Protocol {
7592
7662
  * This is a temporary ability and it will be removed in the future.
7593
7663
  */
7594
7664
  sourcePort?: integer;
7665
+ /**
7666
+ * Cookie partition key. The site of the top-level URL the browser was visiting at the start
7667
+ * of the request to the endpoint that set the cookie.
7668
+ * If not set, the cookie will be set as not partitioned.
7669
+ */
7670
+ partitionKey?: string;
7595
7671
  }
7596
7672
 
7597
7673
  export const enum AuthChallengeSource {
@@ -7915,6 +7991,17 @@ declare namespace Protocol {
7915
7991
  status: ReportStatus;
7916
7992
  }
7917
7993
 
7994
+ export interface ReportingApiEndpoint {
7995
+ /**
7996
+ * The URL of the endpoint to which reports may be delivered.
7997
+ */
7998
+ url: string;
7999
+ /**
8000
+ * Name of the endpoint group.
8001
+ */
8002
+ groupName: string;
8003
+ }
8004
+
7918
8005
  /**
7919
8006
  * An object providing the result of a network resource load.
7920
8007
  */
@@ -8271,6 +8358,12 @@ declare namespace Protocol {
8271
8358
  * This is a temporary ability and it will be removed in the future.
8272
8359
  */
8273
8360
  sourcePort?: integer;
8361
+ /**
8362
+ * Cookie partition key. The site of the top-level URL the browser was visiting at the start
8363
+ * of the request to the endpoint that set the cookie.
8364
+ * If not set, the cookie will be set as not partitioned.
8365
+ */
8366
+ partitionKey?: string;
8274
8367
  }
8275
8368
 
8276
8369
  export interface SetCookieResponse extends ProtocolResponseWithError {
@@ -9037,6 +9130,14 @@ declare namespace Protocol {
9037
9130
  export interface ReportingApiReportUpdatedEvent {
9038
9131
  report: ReportingApiReport;
9039
9132
  }
9133
+
9134
+ export interface ReportingApiEndpointsChangedForOriginEvent {
9135
+ /**
9136
+ * Origin of the document(s) which configured the endpoints.
9137
+ */
9138
+ origin: string;
9139
+ endpoints: ReportingApiEndpoint[];
9140
+ }
9040
9141
  }
9041
9142
 
9042
9143
  /**
@@ -9869,6 +9970,7 @@ declare namespace Protocol {
9869
9970
  Hid = 'hid',
9870
9971
  IdleDetection = 'idle-detection',
9871
9972
  InterestCohort = 'interest-cohort',
9973
+ JoinAdInterestGroup = 'join-ad-interest-group',
9872
9974
  KeyboardMap = 'keyboard-map',
9873
9975
  Magnetometer = 'magnetometer',
9874
9976
  Microphone = 'microphone',
@@ -9877,6 +9979,7 @@ declare namespace Protocol {
9877
9979
  Payment = 'payment',
9878
9980
  PictureInPicture = 'picture-in-picture',
9879
9981
  PublickeyCredentialsGet = 'publickey-credentials-get',
9982
+ RunAdAuction = 'run-ad-auction',
9880
9983
  ScreenWakeLock = 'screen-wake-lock',
9881
9984
  Serial = 'serial',
9882
9985
  SharedAutofill = 'shared-autofill',
@@ -11263,6 +11366,16 @@ declare namespace Protocol {
11263
11366
  data: binary;
11264
11367
  }
11265
11368
 
11369
+ export const enum SetSPCTransactionModeRequestMode {
11370
+ None = 'none',
11371
+ Autoaccept = 'autoaccept',
11372
+ Autoreject = 'autoreject',
11373
+ }
11374
+
11375
+ export interface SetSPCTransactionModeRequest {
11376
+ mode: SetSPCTransactionModeRequestMode;
11377
+ }
11378
+
11266
11379
  export interface GenerateTestReportRequest {
11267
11380
  /**
11268
11381
  * Message to be displayed in the report.
@@ -12086,7 +12199,7 @@ declare namespace Protocol {
12086
12199
  }
12087
12200
 
12088
12201
  /**
12089
- * The security state of the page changed.
12202
+ * The security state of the page changed. No longer being sent.
12090
12203
  */
12091
12204
  export interface SecurityStateChangedEvent {
12092
12205
  /**
@@ -12098,8 +12211,8 @@ declare namespace Protocol {
12098
12211
  */
12099
12212
  schemeIsCryptographic: boolean;
12100
12213
  /**
12101
- * List of explanations for the security state. If the overall security state is `insecure` or
12102
- * `warning`, at least one corresponding explanation should be included.
12214
+ * Previously a list of explanations for the security state. Now always
12215
+ * empty.
12103
12216
  */
12104
12217
  explanations: SecurityStateExplanation[];
12105
12218
  /**
@@ -12107,7 +12220,7 @@ declare namespace Protocol {
12107
12220
  */
12108
12221
  insecureContentStatus: InsecureContentStatus;
12109
12222
  /**
12110
- * Overrides user-visible description of the state.
12223
+ * Overrides user-visible description of the state. Always omitted.
12111
12224
  */
12112
12225
  summary?: string;
12113
12226
  }
@@ -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;
@@ -75,11 +75,7 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
75
75
  if (!uiSourceCode) {
76
76
  return null;
77
77
  }
78
- const lineNumber = rawLocation.lineNumber - (script.isInlineScriptWithSourceURL() ? script.lineOffset : 0);
79
- let columnNumber = rawLocation.columnNumber || 0;
80
- if (script.isInlineScriptWithSourceURL() && !lineNumber && columnNumber) {
81
- columnNumber -= script.columnOffset;
82
- }
78
+ const {lineNumber, columnNumber = 0} = rawLocation;
83
79
  return uiSourceCode.uiLocation(lineNumber, columnNumber);
84
80
  }
85
81
 
@@ -89,10 +85,6 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
89
85
  if (!script) {
90
86
  return [];
91
87
  }
92
- if (script.isInlineScriptWithSourceURL()) {
93
- return [this.#debuggerModel.createRawLocation(
94
- script, lineNumber + script.lineOffset, lineNumber ? columnNumber : columnNumber + script.columnOffset)];
95
- }
96
88
  return [this.#debuggerModel.createRawLocation(script, lineNumber, columnNumber)];
97
89
  }
98
90
 
@@ -127,30 +127,22 @@ export class ResourceScriptMapping implements DebuggerSourceMapping {
127
127
  if (!scriptFile.hasScripts([script])) {
128
128
  return null;
129
129
  }
130
- const lineNumber = rawLocation.lineNumber - (script.isInlineScriptWithSourceURL() ? script.lineOffset : 0);
131
- let columnNumber = rawLocation.columnNumber || 0;
132
- if (script.isInlineScriptWithSourceURL() && !lineNumber && columnNumber) {
133
- columnNumber -= script.columnOffset;
134
- }
130
+ const {lineNumber, columnNumber = 0} = rawLocation;
135
131
  return uiSourceCode.uiLocation(lineNumber, columnNumber);
136
132
  }
137
133
 
138
134
  uiLocationToRawLocations(uiSourceCode: Workspace.UISourceCode.UISourceCode, lineNumber: number, columnNumber: number):
139
135
  SDK.DebuggerModel.Location[] {
140
136
  const scriptFile = this.#uiSourceCodeToScriptFile.get(uiSourceCode);
141
- if (!scriptFile || typeof scriptFile.script === 'undefined') {
137
+ if (!scriptFile) {
142
138
  return [];
143
139
  }
144
140
 
145
- const script = scriptFile.script;
141
+ const {script} = scriptFile;
146
142
  if (!script) {
147
143
  return [];
148
144
  }
149
145
 
150
- if (script.isInlineScriptWithSourceURL()) {
151
- return [this.debuggerModel.createRawLocation(
152
- script, lineNumber + script.lineOffset, lineNumber ? columnNumber : columnNumber + script.columnOffset)];
153
- }
154
146
  return [this.debuggerModel.createRawLocation(script, lineNumber, columnNumber)];
155
147
  }
156
148
 
@@ -165,21 +165,6 @@ class ScriptMapping implements Bindings.DebuggerWorkspaceBinding.DebuggerSourceM
165
165
  if (!formatData || !script) {
166
166
  return null;
167
167
  }
168
- if (script.isInlineScriptWithSourceURL()) {
169
- // Inline scripts with #sourceURL= have lineEndings wrt. the inline script (and not wrt. the containing document),
170
- // but `rawLocation` will always use locations wrt. the containing document, because that is what the back-end is
171
- // sending. This is a hack, because what we are really doing here is deciding the location based on /how/ the
172
- // script is displayed, which is really something this layer cannot and should not have to decide: The
173
- // SourceFormatter should not have to know whether a script is displayed inline (in its containing document) or
174
- // stand-alone.
175
- const [relativeLineNumber, relativeColumnNumber] = script.toRelativeLocation(rawLocation);
176
- const [formattedLineNumber, formattedColumnNumber] =
177
- formatData.mapping.originalToFormatted(relativeLineNumber, relativeColumnNumber);
178
- return formatData.formattedSourceCode.uiLocation(formattedLineNumber, formattedColumnNumber);
179
- }
180
- // Here we either have an inline script without a #sourceURL= or a stand-alone script. For stand-alone scripts, no
181
- // translation must be applied. For inline scripts, also no translation must be applied, because the line-endings
182
- // tables in the mapping are the same as in the containing document.
183
168
  const [lineNumber, columnNumber] =
184
169
  formatData.mapping.originalToFormatted(rawLocation.lineNumber, rawLocation.columnNumber || 0);
185
170
  return formatData.formattedSourceCode.uiLocation(lineNumber, columnNumber);
@@ -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 = {
@@ -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);
@@ -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);
@@ -20,7 +20,7 @@ const UIStrings = {
20
20
  /**
21
21
  *@description Text in Application Panel Sidebar of the Application panel
22
22
  */
23
- backForwardCache: 'Back-Forward Cache',
23
+ backForwardCache: 'Back/forward cache',
24
24
  /**
25
25
  *@description A context menu item in the Application Panel Sidebar of the Application panel
26
26
  */