chrome-devtools-frontend 1.0.943017 → 1.0.944427

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 (224) hide show
  1. package/config/gni/all_devtools_files.gni +0 -9
  2. package/config/gni/devtools_grd_files.gni +6 -1
  3. package/front_end/core/host/UserMetrics.ts +0 -1
  4. package/front_end/core/i18n/locales/af.json +455 -44
  5. package/front_end/core/i18n/locales/am.json +455 -44
  6. package/front_end/core/i18n/locales/ar.json +455 -44
  7. package/front_end/core/i18n/locales/as.json +455 -44
  8. package/front_end/core/i18n/locales/az.json +455 -44
  9. package/front_end/core/i18n/locales/be.json +456 -45
  10. package/front_end/core/i18n/locales/bg.json +455 -44
  11. package/front_end/core/i18n/locales/bn.json +455 -44
  12. package/front_end/core/i18n/locales/bs.json +455 -44
  13. package/front_end/core/i18n/locales/ca.json +457 -46
  14. package/front_end/core/i18n/locales/cs.json +458 -47
  15. package/front_end/core/i18n/locales/cy.json +455 -44
  16. package/front_end/core/i18n/locales/da.json +455 -44
  17. package/front_end/core/i18n/locales/de.json +455 -44
  18. package/front_end/core/i18n/locales/el.json +455 -44
  19. package/front_end/core/i18n/locales/en-GB.json +449 -38
  20. package/front_end/core/i18n/locales/en-US.json +7 -19
  21. package/front_end/core/i18n/locales/en-XL.json +7 -19
  22. package/front_end/core/i18n/locales/es-419.json +455 -44
  23. package/front_end/core/i18n/locales/es.json +455 -44
  24. package/front_end/core/i18n/locales/et.json +455 -44
  25. package/front_end/core/i18n/locales/eu.json +462 -51
  26. package/front_end/core/i18n/locales/fa.json +455 -44
  27. package/front_end/core/i18n/locales/fi.json +455 -44
  28. package/front_end/core/i18n/locales/fil.json +454 -43
  29. package/front_end/core/i18n/locales/fr-CA.json +455 -44
  30. package/front_end/core/i18n/locales/fr.json +456 -45
  31. package/front_end/core/i18n/locales/gl.json +455 -44
  32. package/front_end/core/i18n/locales/gu.json +456 -45
  33. package/front_end/core/i18n/locales/he.json +455 -44
  34. package/front_end/core/i18n/locales/hi.json +455 -44
  35. package/front_end/core/i18n/locales/hr.json +455 -44
  36. package/front_end/core/i18n/locales/hu.json +455 -44
  37. package/front_end/core/i18n/locales/hy.json +455 -44
  38. package/front_end/core/i18n/locales/id.json +455 -44
  39. package/front_end/core/i18n/locales/is.json +455 -44
  40. package/front_end/core/i18n/locales/it.json +502 -91
  41. package/front_end/core/i18n/locales/ja.json +456 -45
  42. package/front_end/core/i18n/locales/ka.json +455 -44
  43. package/front_end/core/i18n/locales/kk.json +456 -45
  44. package/front_end/core/i18n/locales/km.json +455 -44
  45. package/front_end/core/i18n/locales/kn.json +455 -44
  46. package/front_end/core/i18n/locales/ko.json +455 -44
  47. package/front_end/core/i18n/locales/ky.json +456 -45
  48. package/front_end/core/i18n/locales/lo.json +454 -43
  49. package/front_end/core/i18n/locales/lt.json +455 -44
  50. package/front_end/core/i18n/locales/lv.json +458 -47
  51. package/front_end/core/i18n/locales/mk.json +455 -44
  52. package/front_end/core/i18n/locales/ml.json +461 -50
  53. package/front_end/core/i18n/locales/mn.json +455 -44
  54. package/front_end/core/i18n/locales/mr.json +455 -44
  55. package/front_end/core/i18n/locales/ms.json +455 -44
  56. package/front_end/core/i18n/locales/my.json +456 -45
  57. package/front_end/core/i18n/locales/ne.json +456 -45
  58. package/front_end/core/i18n/locales/nl.json +532 -121
  59. package/front_end/core/i18n/locales/no.json +455 -44
  60. package/front_end/core/i18n/locales/or.json +455 -44
  61. package/front_end/core/i18n/locales/pa.json +455 -44
  62. package/front_end/core/i18n/locales/pl.json +455 -44
  63. package/front_end/core/i18n/locales/pt-PT.json +504 -93
  64. package/front_end/core/i18n/locales/pt.json +454 -43
  65. package/front_end/core/i18n/locales/ro.json +455 -44
  66. package/front_end/core/i18n/locales/ru.json +455 -44
  67. package/front_end/core/i18n/locales/si.json +455 -44
  68. package/front_end/core/i18n/locales/sk.json +456 -45
  69. package/front_end/core/i18n/locales/sl.json +455 -44
  70. package/front_end/core/i18n/locales/sq.json +455 -44
  71. package/front_end/core/i18n/locales/sr-Latn.json +455 -44
  72. package/front_end/core/i18n/locales/sr.json +455 -44
  73. package/front_end/core/i18n/locales/sv.json +456 -45
  74. package/front_end/core/i18n/locales/sw.json +455 -44
  75. package/front_end/core/i18n/locales/ta.json +456 -45
  76. package/front_end/core/i18n/locales/te.json +454 -43
  77. package/front_end/core/i18n/locales/th.json +455 -44
  78. package/front_end/core/i18n/locales/tr.json +455 -44
  79. package/front_end/core/i18n/locales/uk.json +455 -44
  80. package/front_end/core/i18n/locales/ur.json +455 -44
  81. package/front_end/core/i18n/locales/uz.json +455 -44
  82. package/front_end/core/i18n/locales/vi.json +455 -44
  83. package/front_end/core/i18n/locales/zh-HK.json +459 -48
  84. package/front_end/core/i18n/locales/zh-TW.json +457 -46
  85. package/front_end/core/i18n/locales/zh.json +460 -49
  86. package/front_end/core/i18n/locales/zu.json +455 -44
  87. package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
  88. package/front_end/core/sdk/AccessibilityModel.ts +99 -78
  89. package/front_end/core/sdk/CSSStyleDeclaration.ts +4 -0
  90. package/front_end/core/sdk/ConsoleModel.ts +1 -5
  91. package/front_end/core/sdk/NetworkManager.ts +3 -0
  92. package/front_end/core/sdk/OverlayModel.ts +0 -9
  93. package/front_end/core/sdk/Script.ts +0 -4
  94. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
  95. package/front_end/core/sdk/sdk-meta.ts +0 -26
  96. package/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.ts +1 -1
  97. package/front_end/entrypoints/devtools_app/devtools_app.js +1 -1
  98. package/front_end/entrypoints/devtools_app/devtools_app.json +1 -2
  99. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
  100. package/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.ts +1 -1
  101. package/front_end/entrypoints/inspector/inspector.js +1 -1
  102. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +0 -13
  103. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +2 -3
  104. package/front_end/entrypoints/js_app/js_app.js +1 -1
  105. package/front_end/entrypoints/main/MainImpl.ts +2 -4
  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_main/node_main-meta.ts +0 -1
  111. package/front_end/entrypoints/shell/shell.json +1 -2
  112. package/front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.ts +1 -1
  113. package/front_end/entrypoints/worker_app/worker_app.js +1 -1
  114. package/front_end/generated/InspectorBackendCommands.js +3 -1
  115. package/front_end/generated/protocol-mapping.d.ts +1 -0
  116. package/front_end/generated/protocol-proxy-api.d.ts +2 -0
  117. package/front_end/generated/protocol.d.ts +40 -0
  118. package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +5 -1
  119. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -9
  120. package/front_end/models/bindings/ResourceScriptMapping.ts +3 -11
  121. package/front_end/models/formatter/SourceFormatter.ts +0 -15
  122. package/front_end/models/persistence/persistence-meta.ts +0 -1
  123. package/front_end/models/timeline_model/TimelineJSProfile.ts +3 -16
  124. package/front_end/models/timeline_model/TimelineModel.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/BackForwardCacheView.ts +26 -26
  129. package/front_end/panels/application/application-meta.ts +0 -1
  130. package/front_end/panels/application/components/stackTraceRow.css +8 -0
  131. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +1 -2
  132. package/front_end/panels/changes/changes-meta.ts +0 -1
  133. package/front_end/panels/console/ConsolePinPane.ts +3 -6
  134. package/front_end/panels/console/ConsolePrompt.ts +121 -171
  135. package/front_end/panels/console/ConsoleView.ts +1 -1
  136. package/front_end/panels/console/ConsoleViewMessage.ts +8 -1
  137. package/front_end/panels/console/console-meta.ts +0 -1
  138. package/front_end/panels/console/consoleView.css +1 -1
  139. package/front_end/panels/console_counters/console_counters-meta.ts +0 -1
  140. package/front_end/panels/coverage/coverage-meta.ts +0 -1
  141. package/front_end/panels/css_overview/cssOverviewCompletedView.css +2 -2
  142. package/front_end/panels/css_overview/css_overview-meta.ts +0 -1
  143. package/front_end/panels/developer_resources/developer_resources-meta.ts +0 -1
  144. package/front_end/panels/elements/AccessibilityTreeUtils.ts +98 -67
  145. package/front_end/panels/elements/AccessibilityTreeView.ts +76 -125
  146. package/front_end/panels/elements/ElementsPanel.ts +6 -7
  147. package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
  148. package/front_end/panels/elements/StyleEditorWidget.ts +13 -2
  149. package/front_end/panels/elements/StylePropertyHighlighter.ts +29 -19
  150. package/front_end/panels/elements/StylePropertyTreeElement.ts +7 -4
  151. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  152. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +27 -3
  153. package/front_end/panels/elements/elements-meta.ts +0 -1
  154. package/front_end/panels/emulation/emulation-meta.ts +0 -1
  155. package/front_end/panels/help/help-meta.ts +0 -1
  156. package/front_end/panels/input/input-meta.ts +0 -1
  157. package/front_end/panels/issues/issues-meta.ts +0 -1
  158. package/front_end/panels/js_profiler/js_profiler-meta.ts +0 -1
  159. package/front_end/panels/layers/layers-meta.ts +0 -4
  160. package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -1
  161. package/front_end/panels/media/media-meta.ts +0 -1
  162. package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +0 -1
  163. package/front_end/panels/network/NetworkDataGridNode.ts +5 -1
  164. package/front_end/panels/network/network-meta.ts +1 -2
  165. package/front_end/panels/performance_monitor/performance_monitor-meta.ts +0 -1
  166. package/front_end/panels/profiler/profiler-meta.ts +0 -1
  167. package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -1
  168. package/front_end/panels/screencast/screencast-meta.ts +0 -1
  169. package/front_end/panels/security/security-meta.ts +0 -1
  170. package/front_end/panels/sensors/sensors-meta.ts +0 -1
  171. package/front_end/panels/settings/emulation/emulation-meta.ts +0 -1
  172. package/front_end/panels/settings/settings-meta.ts +0 -1
  173. package/front_end/panels/sources/BreakpointEditDialog.ts +1 -0
  174. package/front_end/panels/sources/Plugin.ts +0 -3
  175. package/front_end/panels/sources/UISourceCodeFrame.ts +23 -49
  176. package/front_end/panels/sources/sources-meta.ts +1 -2
  177. package/front_end/panels/timeline/TimelineController.ts +0 -3
  178. package/front_end/panels/timeline/timeline-meta.ts +2 -4
  179. package/front_end/panels/web_audio/web_audio-meta.ts +0 -1
  180. package/front_end/panels/webauthn/webauthn-meta.ts +0 -1
  181. package/front_end/third_party/codemirror.next/bundle.ts +3 -2
  182. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  183. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +32 -1
  184. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  185. package/front_end/third_party/codemirror.next/package.json +3 -3
  186. package/front_end/ui/components/docs/component_docs.ts +14 -0
  187. package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
  188. package/front_end/ui/components/docs/toggle_dark_mode.ts +1 -0
  189. package/front_end/ui/components/docs/toggle_fonts.ts +2 -0
  190. package/front_end/ui/components/helpers/get-stylesheet.ts +0 -1
  191. package/front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.ts +1 -2
  192. package/front_end/ui/components/text_editor/config.ts +34 -14
  193. package/front_end/ui/components/text_editor/javascript.ts +14 -9
  194. package/front_end/ui/components/text_editor/theme.ts +29 -4
  195. package/front_end/ui/components/tree_outline/TreeOutline.ts +71 -8
  196. package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +8 -6
  197. package/front_end/ui/legacy/Dialog.ts +8 -3
  198. package/front_end/ui/legacy/SoftContextMenu.ts +1 -1
  199. package/front_end/ui/legacy/Treeoutline.ts +1 -1
  200. package/front_end/ui/legacy/UIUtils.ts +1 -1
  201. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -2
  202. package/front_end/ui/legacy/components/inline_editor/cssAngle.css +4 -0
  203. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +2 -2
  204. package/front_end/ui/legacy/components/object_ui/object_ui-meta.ts +0 -1
  205. package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +0 -1
  206. package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -3
  207. package/front_end/ui/legacy/components/source_frame/FontView.ts +3 -1
  208. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -1
  209. package/front_end/ui/legacy/components/source_frame/JSONView.ts +3 -1
  210. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +2 -1
  211. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +6 -4
  212. package/front_end/ui/legacy/components/source_frame/XMLView.ts +5 -2
  213. package/front_end/ui/legacy/components/utils/Linkifier.ts +49 -79
  214. package/front_end/ui/legacy/themeColors.css +2 -0
  215. package/inspector_overlay/css_grid_label_helpers.ts +1 -1
  216. package/inspector_overlay/highlight_common.ts +1 -1
  217. package/inspector_overlay/tool_highlight.ts +1 -1
  218. package/package.json +1 -1
  219. package/scripts/check_gn.js +0 -35
  220. package/scripts/eslint_rules/lib/es_modules_import.js +15 -24
  221. package/scripts/eslint_rules/tests/es_modules_import_test.js +8 -16
  222. package/front_end/panels/layers/module.json +0 -4
  223. package/front_end/ui/legacy/components/source_frame/messagesPopover.css +0 -32
  224. 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
@@ -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,6 +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" }
3
+ { "name": "ui/legacy/components/text_editor", "type": "autostart" }
5
4
  ]
6
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');
@@ -1700,6 +1700,7 @@ export function registerCommands(inspectorBackend) {
1700
1700
  ['innerRequestId', 'innerRequestURL', 'errorMessage', 'bundleRequestId']);
1701
1701
  inspectorBackend.registerEvent('Network.reportingApiReportAdded', ['report']);
1702
1702
  inspectorBackend.registerEvent('Network.reportingApiReportUpdated', ['report']);
1703
+ inspectorBackend.registerEvent('Network.reportingApiEndpointsChangedForOrigin', ['origin', 'endpoints']);
1703
1704
  inspectorBackend.registerCommand(
1704
1705
  'Network.setAcceptedEncodings', [{'name': 'encodings', 'type': 'object', 'optional': false}], []);
1705
1706
  inspectorBackend.registerCommand('Network.clearAcceptedEncodingsOverride', [], []);
@@ -1791,7 +1792,8 @@ export function registerCommands(inspectorBackend) {
1791
1792
  {'name': 'priority', 'type': 'string', 'optional': true},
1792
1793
  {'name': 'sameParty', 'type': 'boolean', 'optional': true},
1793
1794
  {'name': 'sourceScheme', 'type': 'string', 'optional': true},
1794
- {'name': 'sourcePort', 'type': 'number', 'optional': true}
1795
+ {'name': 'sourcePort', 'type': 'number', 'optional': true},
1796
+ {'name': 'partitionKey', 'type': 'string', 'optional': true}
1795
1797
  ],
1796
1798
  ['success']);
1797
1799
  inspectorBackend.registerCommand(
@@ -305,6 +305,7 @@ export namespace ProtocolMapping {
305
305
  */
306
306
  'Network.reportingApiReportAdded': [Protocol.Network.ReportingApiReportAddedEvent];
307
307
  'Network.reportingApiReportUpdated': [Protocol.Network.ReportingApiReportUpdatedEvent];
308
+ 'Network.reportingApiEndpointsChangedForOrigin': [Protocol.Network.ReportingApiEndpointsChangedForOriginEvent];
308
309
  /**
309
310
  * Fired when the node should be inspected. This happens after call to `setInspectMode` or when
310
311
  * user manually inspects an element.
@@ -2182,6 +2182,8 @@ declare namespace ProtocolProxyApi {
2182
2182
  reportingApiReportAdded(params: Protocol.Network.ReportingApiReportAddedEvent): void;
2183
2183
 
2184
2184
  reportingApiReportUpdated(params: Protocol.Network.ReportingApiReportUpdatedEvent): void;
2185
+
2186
+ reportingApiEndpointsChangedForOrigin(params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent): void;
2185
2187
  }
2186
2188
 
2187
2189
  export interface OverlayApi {
@@ -7513,6 +7513,15 @@ declare namespace Protocol {
7513
7513
  * This is a temporary ability and it will be removed in the future.
7514
7514
  */
7515
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;
7516
7525
  }
7517
7526
 
7518
7527
  /**
@@ -7653,6 +7662,12 @@ declare namespace Protocol {
7653
7662
  * This is a temporary ability and it will be removed in the future.
7654
7663
  */
7655
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;
7656
7671
  }
7657
7672
 
7658
7673
  export const enum AuthChallengeSource {
@@ -7976,6 +7991,17 @@ declare namespace Protocol {
7976
7991
  status: ReportStatus;
7977
7992
  }
7978
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
+
7979
8005
  /**
7980
8006
  * An object providing the result of a network resource load.
7981
8007
  */
@@ -8332,6 +8358,12 @@ declare namespace Protocol {
8332
8358
  * This is a temporary ability and it will be removed in the future.
8333
8359
  */
8334
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;
8335
8367
  }
8336
8368
 
8337
8369
  export interface SetCookieResponse extends ProtocolResponseWithError {
@@ -9098,6 +9130,14 @@ declare namespace Protocol {
9098
9130
  export interface ReportingApiReportUpdatedEvent {
9099
9131
  report: ReportingApiReport;
9100
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
+ }
9101
9141
  }
9102
9142
 
9103
9143
  /**
@@ -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 = {
@@ -59,7 +59,6 @@ export class TimelineJSProfileProcessor {
59
59
 
60
60
  static generateJSFrameEvents(events: SDK.TracingModel.Event[], config: {
61
61
  showAllEvents: boolean,
62
- showRuntimeCallStats: boolean,
63
62
  showNativeFunctions: boolean,
64
63
  }): SDK.TracingModel.Event[] {
65
64
  function equalFrames(frame1: Protocol.Runtime.CallFrame, frame2: Protocol.Runtime.CallFrame): boolean {
@@ -85,7 +84,7 @@ export class TimelineJSProfileProcessor {
85
84
  const lockedJsStackDepth: number[] = [];
86
85
  let ordinal = 0;
87
86
  let fakeJSInvocation = false;
88
- const {showAllEvents, showRuntimeCallStats, showNativeFunctions} = config;
87
+ const {showAllEvents, showNativeFunctions} = config;
89
88
 
90
89
  function onStartEvent(e: SDK.TracingModel.Event): void {
91
90
  if (fakeJSInvocation) {
@@ -135,15 +134,10 @@ export class TimelineJSProfileProcessor {
135
134
  jsFramesStack.length = depth;
136
135
  }
137
136
 
138
- function showNativeName(name: string): boolean {
139
- return showRuntimeCallStats && Boolean(TimelineJSProfileProcessor.nativeGroup(name));
140
- }
141
-
142
137
  function filterStackFrames(stack: Protocol.Runtime.CallFrame[]): void {
143
138
  if (showAllEvents) {
144
139
  return;
145
140
  }
146
- let previousNativeFrameName: (string|null)|null = null;
147
141
  let j = 0;
148
142
  for (let i = 0; i < stack.length; ++i) {
149
143
  const frame = stack[i];
@@ -153,16 +147,9 @@ export class TimelineJSProfileProcessor {
153
147
  continue;
154
148
  }
155
149
  const isNativeRuntimeFrame = TimelineJSProfileProcessor.isNativeRuntimeFrame(frame);
156
- if (isNativeRuntimeFrame && !showNativeName(frame.functionName)) {
157
- continue;
158
- }
159
- const nativeFrameName =
160
- isNativeRuntimeFrame ? TimelineJSProfileProcessor.nativeGroup(frame.functionName) : null;
161
- if (previousNativeFrameName && previousNativeFrameName === nativeFrameName) {
162
- continue;
150
+ if (!isNativeRuntimeFrame) {
151
+ stack[j++] = frame;
163
152
  }
164
- previousNativeFrameName = nativeFrameName;
165
- stack[j++] = frame;
166
153
  }
167
154
  stack.length = j;
168
155
  }
@@ -678,7 +678,6 @@ export class TimelineModelImpl {
678
678
  if (jsSamples || events.some(e => e.name === RecordType.JSSample)) {
679
679
  const jsFrameEvents = TimelineJSProfileProcessor.generateJSFrameEvents(events, {
680
680
  showAllEvents: Root.Runtime.experiments.isEnabled('timelineShowAllEvents'),
681
- showRuntimeCallStats: Root.Runtime.experiments.isEnabled('timelineV8RuntimeCallStats'),
682
681
  showNativeFunctions: Common.Settings.Settings.instance().moduleSetting('showNativeFunctionsInJSProfile').get(),
683
682
  });
684
683
  if (jsFrameEvents && jsFrameEvents.length) {
@@ -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
  */
@@ -17,67 +17,67 @@ import backForwardCacheViewStyles from './backForwardCacheView.css.js';
17
17
 
18
18
  const UIStrings = {
19
19
  /**
20
- * @description Title text in Back-Forward Cache view of the Application panel
20
+ * @description Title text in back/forward cache view of the Application panel
21
21
  */
22
22
  mainFrame: 'Main Frame',
23
23
  /**
24
- * @description Title text in Back-Forward Cache view of the Application panel
24
+ * @description Title text in back/forward cache view of the Application panel
25
25
  */
26
- backForwardCacheTitle: 'Back-Forward Cache',
26
+ backForwardCacheTitle: 'Back/forward cache',
27
27
  /**
28
28
  * @description Status text for the status of the main frame
29
29
  */
30
30
  unavailable: 'unavailable',
31
31
  /**
32
- * @description Entry name text in the Back-Forward Cache view of the Application panel
32
+ * @description Entry name text in the back/forward cache view of the Application panel
33
33
  */
34
34
  url: 'URL',
35
35
  /**
36
- * @description Entry name text in the Back-Forward Cache view of the Application panel
36
+ * @description Entry name text in the back/forward cache view of the Application panel
37
37
  */
38
- bfcacheStatus: 'Back-Forward Cache Status',
38
+ bfcacheStatus: 'Back/forward cache Status',
39
39
  /**
40
- * @description Status text for the status of the Back-Forward Cache status
40
+ * @description Status text for the status of the back/forward cache status
41
41
  */
42
42
  unknown: 'unknown',
43
43
  /**
44
- * @description Status text for the status of the Back-Forward Cache status indicating that
45
- * the Back-Forward Cache was not used and a normal navigation occured instead.
44
+ * @description Status text for the status of the back/forward cache status indicating that
45
+ * the back/forward cache was not used and a normal navigation occured instead.
46
46
  */
47
- normalNavigation: 'Normal navigation (Not restored from Back-Forward Cache)',
47
+ normalNavigation: 'Normal navigation (Not restored from back/forward cache)',
48
48
  /**
49
- * @description Status text for the status of the Back-Forward Cache status indicating that
50
- * the Back-Forward Cache was used to restore the page instead of reloading it.
49
+ * @description Status text for the status of the back/forward cache status indicating that
50
+ * the back/forward cache was used to restore the page instead of reloading it.
51
51
  */
52
- restoredFromBFCache: 'Restored from Back-Forward Cache',
52
+ restoredFromBFCache: 'Restored from back/forward cache',
53
53
  /**
54
54
  * @description Label for a list of reasons which prevent the page from being eligible for
55
- * Back-Forward Cache. These reasons are actionable i.e. they can be cleaned up to make the
56
- * page eligible for Back-Forward Cache.
55
+ * back/forward cache. These reasons are actionable i.e. they can be cleaned up to make the
56
+ * page eligible for back/forward cache.
57
57
  */
58
58
  pageSupportNeeded: 'Actionable',
59
59
  /**
60
60
  * @description Explanation for actionable items which prevent the page from being eligible
61
- * for Back-Forward Cache.
61
+ * for back/forward cache.
62
62
  */
63
63
  pageSupportNeededExplanation:
64
- 'These reasons are actionable i.e. they can be cleaned up to make the page eligible for Back-Forward Cache.',
64
+ 'These reasons are actionable i.e. they can be cleaned up to make the page eligible for back/forward cache.',
65
65
  /**
66
66
  * @description Label for a list of reasons which prevent the page from being eligible for
67
- * Back-Forward Cache. These reasons are circumstantial / not actionable i.e. they cannot be
68
- * cleaned up by developers to make the page eligible for Back-Forward Cache.
67
+ * back/forward cache. These reasons are circumstantial / not actionable i.e. they cannot be
68
+ * cleaned up by developers to make the page eligible for back/forward cache.
69
69
  */
70
70
  circumstantial: 'Not Actionable',
71
71
  /**
72
72
  * @description Explanation for circumstantial/non-actionable items which prevent the page from being eligible
73
- * for Back-Forward Cache.
73
+ * for back/forward cache.
74
74
  */
75
75
  circumstantialExplanation:
76
76
  'These reasons are not actionable i.e. caching was prevented by something outside of the direct control of the page.',
77
77
  /**
78
78
  * @description Label for a list of reasons which prevent the page from being eligible for
79
- * Back-Forward Cache. These reasons are pending support by chrome i.e. in a future version
80
- * of chrome they will not prevent Back-Forward Cache usage anymore.
79
+ * back/forward cache. These reasons are pending support by chrome i.e. in a future version
80
+ * of chrome they will not prevent back/forward cache usage anymore.
81
81
  */
82
82
  supportPending: 'Pending Support',
83
83
  /**
@@ -86,10 +86,10 @@ const UIStrings = {
86
86
  runTest: 'Run Test',
87
87
  /**
88
88
  * @description Explanation for 'pending support' items which prevent the page from being eligible
89
- * for Back-Forward Cache.
89
+ * for back/forward cache.
90
90
  */
91
91
  supportPendingExplanation:
92
- 'Chrome support for these reasons is pending i.e. they will not prevent the page from being eligible for Back-Forward Cache in a future version of Chrome.',
92
+ 'Chrome support for these reasons is pending i.e. they will not prevent the page from being eligible for back/forward cache in a future version of Chrome.',
93
93
  };
94
94
  const str_ = i18n.i18n.registerUIStrings('panels/application/BackForwardCacheView.ts', UIStrings);
95
95
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -168,9 +168,9 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
168
168
 
169
169
  // We can know whether the current page can use BFCache
170
170
  // as the browser navigates to another unrelated page and goes back to the current page.
171
- // We chose "chrome://version" because it must be cross-site.
171
+ // We chose "chrome://terms" because it must be cross-site.
172
172
  // Ideally, We want to have our own testing page like "chrome: //bfcache-test".
173
- resourceTreeModel.navigate('chrome://version/');
173
+ resourceTreeModel.navigate('chrome://terms');
174
174
  }
175
175
  }
176
176
 
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
6
6
  import * as SDK from '../../core/sdk/sdk.js';
7
7
  import * as UI from '../../ui/legacy/legacy.js';
8
8
 
9
- // eslint-disable-next-line rulesdir/es_modules_import
10
9
  import type * as Resources from './application.js';
11
10
 
12
11
  import * as i18n from '../../core/i18n/i18n.js';
@@ -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);
@@ -164,8 +164,6 @@ export class ConsolePinPane extends UI.ThrottledWidget.ThrottledWidget {
164
164
  }
165
165
  }
166
166
 
167
- let consolePinNumber = 0;
168
-
169
167
  export class ConsolePin {
170
168
  private readonly pinElement: Element;
171
169
  private readonly pinPreview: HTMLElement;
@@ -175,11 +173,9 @@ export class ConsolePin {
175
173
  private committedExpression: string;
176
174
  private hovered: boolean;
177
175
  private lastNode: SDK.RemoteObject.RemoteObject|null;
178
- private consolePinNumber: number;
179
176
  private deletePinIcon: UI.UIUtils.DevToolsCloseButton;
180
177
 
181
178
  constructor(expression: string, private readonly pinPane: ConsolePinPane, private readonly focusOut: () => void) {
182
- this.consolePinNumber = ++consolePinNumber;
183
179
  this.deletePinIcon = document.createElement('div', {is: 'dt-close-button'}) as UI.UIUtils.DevToolsCloseButton;
184
180
  this.deletePinIcon.gray = true;
185
181
  this.deletePinIcon.classList.add('close-button');
@@ -259,6 +255,7 @@ export class ConsolePin {
259
255
  ]),
260
256
  CodeMirror.EditorView.domEventHandlers({blur: (_e, view) => this.onBlur(view)}),
261
257
  TextEditor.Config.baseConfiguration(expression),
258
+ TextEditor.Config.closeBrackets,
262
259
  TextEditor.Config.autocompletion,
263
260
  ],
264
261
  }));
@@ -325,8 +322,8 @@ export class ConsolePin {
325
322
  const executionContext = UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext);
326
323
  const preprocessedExpression = ObjectUI.JavaScriptREPL.JavaScriptREPL.preprocessExpression(text);
327
324
  const {preview, result} = await ObjectUI.JavaScriptREPL.JavaScriptREPL.evaluateAndBuildPreview(
328
- `${preprocessedExpression}\n//# sourceURL=watch-expression-${this.consolePinNumber}.devtools`,
329
- throwOnSideEffect, false /* replMode */, timeout, !isEditing /* allowErrors */, 'console');
325
+ preprocessedExpression, throwOnSideEffect, false /* replMode */, timeout, !isEditing /* allowErrors */,
326
+ 'console', true /* awaitPromise */);
330
327
  if (this.lastResult && this.lastExecutionContext) {
331
328
  this.lastExecutionContext.runtimeModel.releaseEvaluationResult(this.lastResult);
332
329
  }