chrome-devtools-frontend 1.0.934857 → 1.0.936663

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 (101) hide show
  1. package/config/gni/all_devtools_files.gni +0 -27
  2. package/config/gni/devtools_grd_files.gni +10 -15
  3. package/front_end/.eslintrc.js +1 -0
  4. package/front_end/Tests.js +13 -0
  5. package/front_end/core/host/UserMetrics.ts +2 -1
  6. package/front_end/core/i18n/locales/en-US.json +15 -6
  7. package/front_end/core/i18n/locales/en-XL.json +15 -6
  8. package/front_end/core/sdk/ConsoleModel.ts +0 -20
  9. package/front_end/entrypoints/devtools_app/devtools_app.json +0 -7
  10. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  11. package/front_end/entrypoints/inspector_main/module.json +1 -2
  12. package/front_end/entrypoints/main/MainImpl.ts +10 -3
  13. package/front_end/entrypoints/node_app/node_app.json +0 -1
  14. package/front_end/entrypoints/node_main/node_main-meta.ts +0 -3
  15. package/front_end/entrypoints/shell/shell.json +0 -9
  16. package/front_end/entrypoints/worker_app/worker_app.json +0 -5
  17. package/front_end/models/issues_manager/IssuesManager.ts +2 -2
  18. package/front_end/models/issues_manager/{DeprecationIssue.ts → NavigatorUserAgentIssue.ts} +4 -4
  19. package/front_end/models/issues_manager/issues_manager.ts +2 -2
  20. package/front_end/panels/application/BackForwardCacheView.ts +54 -6
  21. package/front_end/panels/application/module.json +0 -5
  22. package/front_end/panels/console/ConsoleFilter.ts +1 -1
  23. package/front_end/panels/console/ConsolePinPane.ts +1 -0
  24. package/front_end/panels/console/ConsoleViewMessage.ts +2 -19
  25. package/front_end/panels/console/module.json +0 -2
  26. package/front_end/panels/console_counters/console_counters-meta.ts +0 -3
  27. package/front_end/panels/coverage/CoverageListView.ts +13 -4
  28. package/front_end/panels/coverage/module.json +0 -1
  29. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +1 -0
  30. package/front_end/panels/css_overview/module.json +1 -2
  31. package/front_end/panels/developer_resources/developer_resources-meta.ts +0 -2
  32. package/front_end/panels/elements/ElementsTreeElement.ts +2 -1
  33. package/front_end/panels/elements/StylesSidebarPane.ts +16 -1
  34. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -0
  35. package/front_end/panels/elements/components/QueryContainer.ts +1 -0
  36. package/front_end/panels/elements/module.json +0 -3
  37. package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -0
  38. package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +18 -2
  39. package/front_end/panels/emulation/module.json +1 -2
  40. package/front_end/panels/help/help-meta.ts +0 -3
  41. package/front_end/panels/input/input-meta.ts +0 -2
  42. package/front_end/panels/media/module.json +0 -1
  43. package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +0 -3
  44. package/front_end/panels/network/module.json +0 -5
  45. package/front_end/panels/performance_monitor/performance_monitor-meta.ts +0 -3
  46. package/front_end/panels/profiler/module.json +1 -3
  47. package/front_end/panels/profiler/profilesPanel.css +1 -1
  48. package/front_end/panels/settings/emulation/devicesSettingsTab.css +1 -1
  49. package/front_end/panels/settings/settings-meta.ts +0 -2
  50. package/front_end/panels/sources/BreakpointEditDialog.ts +1 -0
  51. package/front_end/panels/sources/NavigatorView.ts +8 -8
  52. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +15 -0
  53. package/front_end/panels/sources/module.json +0 -5
  54. package/front_end/panels/sources/watchExpressionsSidebarPane.css +10 -3
  55. package/front_end/panels/timeline/module.json +1 -3
  56. package/front_end/panels/web_audio/web_audio-meta.ts +0 -3
  57. package/front_end/panels/webauthn/webauthn-meta.ts +0 -2
  58. package/front_end/ui/components/buttons/button.css +1 -0
  59. package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -0
  60. package/front_end/ui/components/helpers/get-stylesheet.ts +0 -1
  61. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -0
  62. package/front_end/ui/components/text_editor/config.ts +3 -1
  63. package/front_end/ui/components/text_editor/theme.ts +5 -0
  64. package/front_end/ui/legacy/TabbedPane.ts +4 -0
  65. package/front_end/ui/legacy/UIUtils.ts +1 -1
  66. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -1
  67. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +6 -1
  68. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +3 -1
  69. package/front_end/ui/legacy/components/data_grid/dataGrid.css +5 -0
  70. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +2 -1
  71. package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +10 -3
  72. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +3 -2
  73. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +5 -1
  74. package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +2 -1
  75. package/front_end/ui/legacy/components/inline_editor/Swatches.ts +4 -2
  76. package/front_end/ui/legacy/components/inline_editor/cssLength.css +30 -9
  77. package/front_end/ui/legacy/components/source_frame/module.json +1 -2
  78. package/front_end/ui/legacy/inspectorCommon.css +2 -12
  79. package/front_end/ui/legacy/softDropDownButton.css +0 -11
  80. package/front_end/ui/legacy/themeColors.css +2 -2
  81. package/package.json +1 -1
  82. package/scripts/build/rollup.config.js +3 -0
  83. package/scripts/eslint_rules/lib/ban_a_tags_in_lit_html.js +47 -0
  84. package/scripts/eslint_rules/tests/ban_a_tags_in_lit_html_test.js +60 -0
  85. package/front_end/entrypoints/node_main/module.json +0 -8
  86. package/front_end/panels/console_counters/module.json +0 -5
  87. package/front_end/panels/developer_resources/module.json +0 -6
  88. package/front_end/panels/event_listeners/module.json +0 -6
  89. package/front_end/panels/help/module.json +0 -5
  90. package/front_end/panels/input/module.json +0 -5
  91. package/front_end/panels/mobile_throttling/module.json +0 -5
  92. package/front_end/panels/performance_monitor/module.json +0 -5
  93. package/front_end/panels/search/module.json +0 -5
  94. package/front_end/panels/settings/module.json +0 -5
  95. package/front_end/panels/web_audio/module.json +0 -5
  96. package/front_end/panels/webauthn/module.json +0 -6
  97. package/front_end/ui/legacy/components/color_picker/module.json +0 -8
  98. package/front_end/ui/legacy/components/cookie_table/module.json +0 -9
  99. package/front_end/ui/legacy/components/data_grid/module.json +0 -8
  100. package/front_end/ui/legacy/components/inline_editor/module.json +0 -14
  101. package/front_end/ui/legacy/components/object_ui/module.json +0 -5
@@ -36,9 +36,6 @@ all_devtools_files = [
36
36
  "front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js",
37
37
  "front_end/panels/browser_debugger/module.json",
38
38
  "front_end/third_party/codemirror/codemirror.css",
39
- "front_end/ui/legacy/components/color_picker/module.json",
40
- "front_end/ui/legacy/components/color_picker/spectrum.css",
41
- "front_end/panels/console_counters/module.json",
42
39
  "front_end/legacy_test_runner/console_test_runner/console_test_runner.js",
43
40
  "front_end/panels/console/consoleContextSelector.css",
44
41
  "front_end/panels/console/consolePinPane.css",
@@ -46,15 +43,11 @@ all_devtools_files = [
46
43
  "front_end/panels/console/consoleSidebar.css",
47
44
  "front_end/panels/console/consoleView.css",
48
45
  "front_end/panels/console/module.json",
49
- "front_end/ui/legacy/components/cookie_table/cookiesTable.css",
50
- "front_end/ui/legacy/components/cookie_table/module.json",
51
46
  "front_end/legacy_test_runner/coverage_test_runner/coverage_test_runner.js",
52
47
  "front_end/panels/coverage/module.json",
53
48
  "front_end/legacy_test_runner/cpu_profiler_test_runner/cpu_profiler_test_runner.js",
54
49
  "front_end/panels/css_overview/module.json",
55
50
  "front_end/legacy_test_runner/data_grid_test_runner/data_grid_test_runner.js",
56
- "front_end/ui/legacy/components/data_grid/dataGrid.css",
57
- "front_end/ui/legacy/components/data_grid/module.json",
58
51
  "front_end/legacy_test_runner/device_mode_test_runner/device_mode_test_runner.js",
59
52
  "front_end/legacy_test_runner/elements_test_runner/elements_test_runner.js",
60
53
  "front_end/legacy_test_runner/elements_test_runner/EditDOMTestRunner.js",
@@ -69,21 +62,10 @@ all_devtools_files = [
69
62
  "front_end/panels/emulation/inspectedPagePlaceholder.css",
70
63
  "front_end/panels/emulation/mediaQueryInspector.css",
71
64
  "front_end/panels/emulation/module.json",
72
- "front_end/panels/event_listeners/module.json",
73
65
  "front_end/legacy_test_runner/extensions_test_runner/extensions_test_runner.js",
74
66
  "front_end/legacy_test_runner/extensions_test_runner/ExtensionsNetworkTestRunner.js",
75
67
  "front_end/legacy_test_runner/extensions_test_runner/ExtensionsTestRunner.js",
76
68
  "front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js",
77
- "front_end/panels/help/module.json",
78
- "front_end/ui/legacy/components/inline_editor/bezierEditor.css",
79
- "front_end/ui/legacy/components/inline_editor/bezierSwatch.css",
80
- "front_end/ui/legacy/components/inline_editor/colorSwatch.css",
81
- "front_end/ui/legacy/components/inline_editor/cssShadowEditor.css",
82
- "front_end/ui/legacy/components/inline_editor/cssShadowSwatch.css",
83
- "front_end/ui/legacy/components/inline_editor/fontEditor.css",
84
- "front_end/ui/legacy/components/inline_editor/module.json",
85
- "front_end/ui/legacy/components/inline_editor/swatchPopover.css",
86
- "front_end/panels/input/module.json",
87
69
  "front_end/entrypoints/inspector_main/module.json",
88
70
  "front_end/entrypoints/inspector_main/nodeIcon.css",
89
71
  "front_end/entrypoints/inspector_main/renderingOptions.css",
@@ -95,13 +77,10 @@ all_devtools_files = [
95
77
  "front_end/panels/layers/module.json",
96
78
  "front_end/entrypoints/main/module.json",
97
79
  "front_end/panels/media/module.json",
98
- "front_end/panels/mobile_throttling/module.json",
99
80
  "front_end/entrypoints/ndb_app/ndb_app.json",
100
81
  "front_end/legacy_test_runner/network_test_runner/network_test_runner.js",
101
82
  "front_end/panels/network/module.json",
102
- "front_end/entrypoints/node_main/module.json",
103
83
  "front_end/entrypoints/node_main/nodeConnectionsPanel.css",
104
- "front_end/ui/legacy/components/object_ui/module.json",
105
84
  "front_end/ui/legacy/components/perf_ui/chartViewport.css",
106
85
  "front_end/ui/legacy/components/perf_ui/filmStripView.css",
107
86
  "front_end/ui/legacy/components/perf_ui/flameChart.css",
@@ -109,7 +88,6 @@ all_devtools_files = [
109
88
  "front_end/ui/legacy/components/perf_ui/overviewGrid.css",
110
89
  "front_end/ui/legacy/components/perf_ui/timelineGrid.css",
111
90
  "front_end/ui/legacy/components/perf_ui/timelineOverviewInfo.css",
112
- "front_end/panels/performance_monitor/module.json",
113
91
  "front_end/panels/protocol_monitor/module.json",
114
92
  "front_end/legacy_test_runner/performance_test_runner/performance_test_runner.js",
115
93
  "front_end/legacy_test_runner/performance_test_runner/TimelineDataTestRunner.js",
@@ -173,15 +151,12 @@ all_devtools_files = [
173
151
  "front_end/models/issues_manager/descriptions/TwaDigitalAssetLinksFailed.md",
174
152
  "front_end/models/issues_manager/descriptions/TwaHttpError.md",
175
153
  "front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
176
- "front_end/panels/developer_resources/module.json",
177
154
  "front_end/panels/protocol_monitor/module.json",
178
155
  "front_end/panels/application/module.json",
179
156
  "front_end/panels/screencast/module.json",
180
157
  "front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js",
181
- "front_end/panels/search/module.json",
182
158
  "front_end/legacy_test_runner/security_test_runner/security_test_runner.js",
183
159
  "front_end/panels/security/module.json",
184
- "front_end/panels/settings/module.json",
185
160
  "front_end/entrypoints/shell/shell.json",
186
161
  "front_end/ui/legacy/components/source_frame/fontView.css",
187
162
  "front_end/ui/legacy/components/source_frame/imageView.css",
@@ -244,8 +219,6 @@ all_devtools_files = [
244
219
  "front_end/ui/legacy/toolbar.css",
245
220
  "front_end/ui/legacy/treeoutline.css",
246
221
  "front_end/ui/legacy/viewContainers.css",
247
- "front_end/panels/web_audio/module.json",
248
- "front_end/panels/webauthn/module.json",
249
222
  ]
250
223
 
251
224
  lighthouse_locale_files = [
@@ -360,7 +360,6 @@ grd_files_release_sources = [
360
360
  "front_end/panels/css_overview/css_overview_module.js",
361
361
  "front_end/panels/developer_resources/developer_resources-meta.js",
362
362
  "front_end/panels/developer_resources/developer_resources.js",
363
- "front_end/panels/developer_resources/developer_resources_module.js",
364
363
  "front_end/panels/elements/components/components.js",
365
364
  "front_end/panels/elements/elements-legacy.js",
366
365
  "front_end/panels/elements/elements-meta.js",
@@ -371,13 +370,10 @@ grd_files_release_sources = [
371
370
  "front_end/panels/emulation/emulation-meta.js",
372
371
  "front_end/panels/emulation/emulation.js",
373
372
  "front_end/panels/event_listeners/event_listeners.js",
374
- "front_end/panels/event_listeners/event_listeners_module.js",
375
373
  "front_end/panels/help/help-meta.js",
376
374
  "front_end/panels/help/help.js",
377
- "front_end/panels/help/help_module.js",
378
375
  "front_end/panels/input/input-meta.js",
379
376
  "front_end/panels/input/input.js",
380
- "front_end/panels/input/input_module.js",
381
377
  "front_end/panels/issues/components/components.js",
382
378
  "front_end/panels/issues/issues-meta.js",
383
379
  "front_end/panels/issues/issues.js",
@@ -410,7 +406,6 @@ grd_files_release_sources = [
410
406
  "front_end/panels/network/network_module.js",
411
407
  "front_end/panels/performance_monitor/performance_monitor-meta.js",
412
408
  "front_end/panels/performance_monitor/performance_monitor.js",
413
- "front_end/panels/performance_monitor/performance_monitor_module.js",
414
409
  "front_end/panels/profiler/profiler-legacy.js",
415
410
  "front_end/panels/profiler/profiler-meta.js",
416
411
  "front_end/panels/profiler/profiler.js",
@@ -422,7 +417,6 @@ grd_files_release_sources = [
422
417
  "front_end/panels/screencast/screencast.js",
423
418
  "front_end/panels/search/search-legacy.js",
424
419
  "front_end/panels/search/search.js",
425
- "front_end/panels/search/search_module.js",
426
420
  "front_end/panels/security/security-legacy.js",
427
421
  "front_end/panels/security/security-meta.js",
428
422
  "front_end/panels/security/security.js",
@@ -437,7 +431,6 @@ grd_files_release_sources = [
437
431
  "front_end/panels/settings/settings-legacy.js",
438
432
  "front_end/panels/settings/settings-meta.js",
439
433
  "front_end/panels/settings/settings.js",
440
- "front_end/panels/settings/settings_module.js",
441
434
  "front_end/panels/snippets/snippets-legacy.js",
442
435
  "front_end/panels/snippets/snippets.js",
443
436
  "front_end/panels/sources/sources-legacy.js",
@@ -454,10 +447,8 @@ grd_files_release_sources = [
454
447
  "front_end/panels/web_audio/web_audio-legacy.js",
455
448
  "front_end/panels/web_audio/web_audio-meta.js",
456
449
  "front_end/panels/web_audio/web_audio.js",
457
- "front_end/panels/web_audio/web_audio_module.js",
458
450
  "front_end/panels/webauthn/webauthn-meta.js",
459
451
  "front_end/panels/webauthn/webauthn.js",
460
- "front_end/panels/webauthn/webauthn_module.js",
461
452
  "front_end/third_party/acorn-loose/acorn-loose.js",
462
453
  "front_end/third_party/acorn/acorn.js",
463
454
  "front_end/third_party/chromium/client-variations/client-variations.js",
@@ -508,20 +499,15 @@ grd_files_release_sources = [
508
499
  "front_end/ui/components/tree_outline/tree_outline.js",
509
500
  "front_end/ui/legacy/components/color_picker/color_picker-legacy.js",
510
501
  "front_end/ui/legacy/components/color_picker/color_picker.js",
511
- "front_end/ui/legacy/components/color_picker/color_picker_module.js",
512
502
  "front_end/ui/legacy/components/cookie_table/cookie_table-legacy.js",
513
503
  "front_end/ui/legacy/components/cookie_table/cookie_table.js",
514
- "front_end/ui/legacy/components/cookie_table/cookie_table_module.js",
515
504
  "front_end/ui/legacy/components/data_grid/data_grid-legacy.js",
516
505
  "front_end/ui/legacy/components/data_grid/data_grid.js",
517
- "front_end/ui/legacy/components/data_grid/data_grid_module.js",
518
506
  "front_end/ui/legacy/components/inline_editor/inline_editor-legacy.js",
519
507
  "front_end/ui/legacy/components/inline_editor/inline_editor.js",
520
- "front_end/ui/legacy/components/inline_editor/inline_editor_module.js",
521
508
  "front_end/ui/legacy/components/object_ui/object_ui-legacy.js",
522
509
  "front_end/ui/legacy/components/object_ui/object_ui-meta.js",
523
510
  "front_end/ui/legacy/components/object_ui/object_ui.js",
524
- "front_end/ui/legacy/components/object_ui/object_ui_module.js",
525
511
  "front_end/ui/legacy/components/perf_ui/perf_ui-legacy.js",
526
512
  "front_end/ui/legacy/components/perf_ui/perf_ui-meta.js",
527
513
  "front_end/ui/legacy/components/perf_ui/perf_ui.js",
@@ -739,7 +725,6 @@ grd_files_debug_sources = [
739
725
  "front_end/models/issues_manager/ContrastCheckTrigger.js",
740
726
  "front_end/models/issues_manager/CorsIssue.js",
741
727
  "front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.js",
742
- "front_end/models/issues_manager/DeprecationIssue.js",
743
728
  "front_end/models/issues_manager/GenericIssue.js",
744
729
  "front_end/models/issues_manager/HeavyAdIssue.js",
745
730
  "front_end/models/issues_manager/Issue.js",
@@ -749,6 +734,7 @@ grd_files_debug_sources = [
749
734
  "front_end/models/issues_manager/LowTextContrastIssue.js",
750
735
  "front_end/models/issues_manager/MarkdownIssueDescription.js",
751
736
  "front_end/models/issues_manager/MixedContentIssue.js",
737
+ "front_end/models/issues_manager/NavigatorUserAgentIssue.js",
752
738
  "front_end/models/issues_manager/QuirksModeIssue.js",
753
739
  "front_end/models/issues_manager/RelatedIssue.js",
754
740
  "front_end/models/issues_manager/SameSiteCookieIssue.js",
@@ -1498,11 +1484,14 @@ grd_files_debug_sources = [
1498
1484
  "front_end/ui/legacy/components/color_picker/ContrastInfo.js",
1499
1485
  "front_end/ui/legacy/components/color_picker/ContrastOverlay.js",
1500
1486
  "front_end/ui/legacy/components/color_picker/Spectrum.js",
1487
+ "front_end/ui/legacy/components/color_picker/spectrum.css.js",
1501
1488
  "front_end/ui/legacy/components/cookie_table/CookiesTable.js",
1489
+ "front_end/ui/legacy/components/cookie_table/cookiesTable.css.js",
1502
1490
  "front_end/ui/legacy/components/data_grid/DataGrid.js",
1503
1491
  "front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.js",
1504
1492
  "front_end/ui/legacy/components/data_grid/SortableDataGrid.js",
1505
1493
  "front_end/ui/legacy/components/data_grid/ViewportDataGrid.js",
1494
+ "front_end/ui/legacy/components/data_grid/dataGrid.css.js",
1506
1495
  "front_end/ui/legacy/components/inline_editor/BezierEditor.js",
1507
1496
  "front_end/ui/legacy/components/inline_editor/BezierUI.js",
1508
1497
  "front_end/ui/legacy/components/inline_editor/CSSAngle.js",
@@ -1521,12 +1510,18 @@ grd_files_debug_sources = [
1521
1510
  "front_end/ui/legacy/components/inline_editor/InlineEditorUtils.js",
1522
1511
  "front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.js",
1523
1512
  "front_end/ui/legacy/components/inline_editor/Swatches.js",
1513
+ "front_end/ui/legacy/components/inline_editor/bezierEditor.css.js",
1514
+ "front_end/ui/legacy/components/inline_editor/bezierSwatch.css.js",
1524
1515
  "front_end/ui/legacy/components/inline_editor/colorSwatch.css.js",
1525
1516
  "front_end/ui/legacy/components/inline_editor/cssAngle.css.js",
1526
1517
  "front_end/ui/legacy/components/inline_editor/cssAngleEditor.css.js",
1527
1518
  "front_end/ui/legacy/components/inline_editor/cssAngleSwatch.css.js",
1528
1519
  "front_end/ui/legacy/components/inline_editor/cssLength.css.js",
1520
+ "front_end/ui/legacy/components/inline_editor/cssShadowEditor.css.js",
1521
+ "front_end/ui/legacy/components/inline_editor/cssShadowSwatch.css.js",
1529
1522
  "front_end/ui/legacy/components/inline_editor/cssVarSwatch.css.js",
1523
+ "front_end/ui/legacy/components/inline_editor/fontEditor.css.js",
1524
+ "front_end/ui/legacy/components/inline_editor/swatchPopover.css.js",
1530
1525
  "front_end/ui/legacy/components/object_ui/CustomPreviewComponent.js",
1531
1526
  "front_end/ui/legacy/components/object_ui/JavaScriptAutocomplete.js",
1532
1527
  "front_end/ui/legacy/components/object_ui/JavaScriptREPL.js",
@@ -30,6 +30,7 @@ module.exports = {
30
30
  'rulesdir/ban_literal_devtools_component_tag_names': 2,
31
31
  'rulesdir/ban_self_closing_custom_element_tagnames': 2,
32
32
  'rulesdir/ban_style_tags_in_lit_html': 2,
33
+ 'rulesdir/ban_a_tags_in_lit_html': 2,
33
34
  'rulesdir/check_component_naming': 2,
34
35
  'rulesdir/check_was_shown_methods': 2,
35
36
  'rulesdir/static_custom_event_names': 2,
@@ -1520,6 +1520,19 @@
1520
1520
  this.evaluateInConsole_(`new WebSocket('ws://127.0.0.1:${websocketPort}')`, () => {});
1521
1521
  };
1522
1522
 
1523
+ TestSuite.prototype.testExtensionWebSocketOfflineNetworkConditions = async function(websocketPort) {
1524
+ self.SDK.multitargetNetworkManager.setNetworkConditions(SDK.NetworkManager.OfflineConditions);
1525
+
1526
+ // TODO(crbug.com/1263900): Currently we don't send loadingFailed for web sockets.
1527
+ // Update this once we do.
1528
+ this.addSniffer(SDK.NetworkDispatcher.prototype, 'webSocketClosed', () => {
1529
+ this.releaseControl();
1530
+ });
1531
+
1532
+ this.takeControl();
1533
+ this.evaluateInConsole_(`new WebSocket('ws://127.0.0.1:${websocketPort}/echo-with-no-extension')`, () => {});
1534
+ };
1535
+
1523
1536
  /**
1524
1537
  * Serializes array of uiSourceCodes to string.
1525
1538
  * @param {!Array.<!Workspace.UISourceCode>} uiSourceCodes
@@ -574,7 +574,8 @@ export const DevtoolsExperiments: {
574
574
  'reportingApiDebugging': 49,
575
575
  'syncSettings': 50,
576
576
  'groupAndHideIssuesByKind': 51,
577
- '__lastValidEnumPosition': 51,
577
+ 'cssTypeComponentLength': 52,
578
+ '__lastValidEnumPosition': 52,
578
579
  };
579
580
 
580
581
  export const IssueExpanded: {
@@ -1331,9 +1331,6 @@
1331
1331
  "models/issues_manager/CrossOriginEmbedderPolicyIssue.ts | samesiteAndSameorigin": {
1332
1332
  "message": "Same-Site and Same-Origin"
1333
1333
  },
1334
- "models/issues_manager/DeprecationIssue.ts | userAgentReduction": {
1335
- "message": "User-Agent String Reduction"
1336
- },
1337
1334
  "models/issues_manager/GenericIssue.ts | crossOriginPortalPostMessage": {
1338
1335
  "message": "Portals - Same-origin communication channels"
1339
1336
  },
@@ -1364,6 +1361,9 @@
1364
1361
  "models/issues_manager/MixedContentIssue.ts | preventingMixedContent": {
1365
1362
  "message": "Preventing mixed content"
1366
1363
  },
1364
+ "models/issues_manager/NavigatorUserAgentIssue.ts | userAgentReduction": {
1365
+ "message": "User-Agent String Reduction"
1366
+ },
1367
1367
  "models/issues_manager/QuirksModeIssue.ts | documentCompatibilityMode": {
1368
1368
  "message": "Document compatibility mode"
1369
1369
  },
@@ -2681,9 +2681,6 @@
2681
2681
  "panels/application/BackForwardCacheView.ts | circumstantialExplanation": {
2682
2682
  "message": "These reasons are not actionable i.e. caching was prevented by something outside of the direct control of the page."
2683
2683
  },
2684
- "panels/application/BackForwardCacheView.ts | lastMainFrameNavigation": {
2685
- "message": "Last Main Frame Navigation"
2686
- },
2687
2684
  "panels/application/BackForwardCacheView.ts | mainFrame": {
2688
2685
  "message": "Main Frame"
2689
2686
  },
@@ -2699,6 +2696,9 @@
2699
2696
  "panels/application/BackForwardCacheView.ts | restoredFromBFCache": {
2700
2697
  "message": "Restored from back-forward cache"
2701
2698
  },
2699
+ "panels/application/BackForwardCacheView.ts | runTest": {
2700
+ "message": "Run Test"
2701
+ },
2702
2702
  "panels/application/BackForwardCacheView.ts | supportPending": {
2703
2703
  "message": "Pending Support"
2704
2704
  },
@@ -4778,6 +4778,15 @@
4778
4778
  "panels/elements/StylesSidebarPane.ts | copySelector": {
4779
4779
  "message": "Copy selector"
4780
4780
  },
4781
+ "panels/elements/StylesSidebarPane.ts | cssPropertyName": {
4782
+ "message": "CSS property name"
4783
+ },
4784
+ "panels/elements/StylesSidebarPane.ts | cssPropertyValue": {
4785
+ "message": "CSS property value"
4786
+ },
4787
+ "panels/elements/StylesSidebarPane.ts | cssSelector": {
4788
+ "message": "CSS selector"
4789
+ },
4781
4790
  "panels/elements/StylesSidebarPane.ts | filter": {
4782
4791
  "message": "Filter"
4783
4792
  },
@@ -1331,9 +1331,6 @@
1331
1331
  "models/issues_manager/CrossOriginEmbedderPolicyIssue.ts | samesiteAndSameorigin": {
1332
1332
  "message": "Ŝám̂é-Ŝít̂é âńd̂ Śâḿê-Ór̂íĝín̂"
1333
1333
  },
1334
- "models/issues_manager/DeprecationIssue.ts | userAgentReduction": {
1335
- "message": "Ûśêŕ-Âǵêńt̂ Śt̂ŕîńĝ Ŕêd́ûćt̂íôń"
1336
- },
1337
1334
  "models/issues_manager/GenericIssue.ts | crossOriginPortalPostMessage": {
1338
1335
  "message": "P̂ór̂t́âĺŝ - Śâḿê-ór̂íĝín̂ ćôḿm̂ún̂íĉát̂íôń ĉh́âńn̂él̂ś"
1339
1336
  },
@@ -1364,6 +1361,9 @@
1364
1361
  "models/issues_manager/MixedContentIssue.ts | preventingMixedContent": {
1365
1362
  "message": "P̂ŕêv́êńt̂ín̂ǵ m̂íx̂éd̂ ćôńt̂én̂t́"
1366
1363
  },
1364
+ "models/issues_manager/NavigatorUserAgentIssue.ts | userAgentReduction": {
1365
+ "message": "Ûśêŕ-Âǵêńt̂ Śt̂ŕîńĝ Ŕêd́ûćt̂íôń"
1366
+ },
1367
1367
  "models/issues_manager/QuirksModeIssue.ts | documentCompatibilityMode": {
1368
1368
  "message": "D̂óĉúm̂én̂t́ ĉóm̂ṕât́îb́îĺît́ŷ ḿôd́ê"
1369
1369
  },
@@ -2681,9 +2681,6 @@
2681
2681
  "panels/application/BackForwardCacheView.ts | circumstantialExplanation": {
2682
2682
  "message": "T̂h́êśê ŕêáŝón̂ś âŕê ńôt́ âćt̂íôńâb́l̂é î.é. ĉáĉh́îńĝ ẃâś p̂ŕêv́êńt̂éd̂ b́ŷ śôḿêt́ĥín̂ǵ ôút̂śîd́ê óf̂ t́ĥé d̂ír̂éĉt́ ĉón̂t́r̂ól̂ óf̂ t́ĥé p̂áĝé."
2683
2683
  },
2684
- "panels/application/BackForwardCacheView.ts | lastMainFrameNavigation": {
2685
- "message": "L̂áŝt́ M̂áîń F̂ŕâḿê Ńâv́îǵât́îón̂"
2686
- },
2687
2684
  "panels/application/BackForwardCacheView.ts | mainFrame": {
2688
2685
  "message": "M̂áîń F̂ŕâḿê"
2689
2686
  },
@@ -2699,6 +2696,9 @@
2699
2696
  "panels/application/BackForwardCacheView.ts | restoredFromBFCache": {
2700
2697
  "message": "R̂éŝt́ôŕêd́ f̂ŕôḿ b̂áĉḱ-f̂ór̂ẃâŕd̂ ćâćĥé"
2701
2698
  },
2699
+ "panels/application/BackForwardCacheView.ts | runTest": {
2700
+ "message": "R̂ún̂ T́êśt̂"
2701
+ },
2702
2702
  "panels/application/BackForwardCacheView.ts | supportPending": {
2703
2703
  "message": "P̂én̂d́îńĝ Śûṕp̂ór̂t́"
2704
2704
  },
@@ -4778,6 +4778,15 @@
4778
4778
  "panels/elements/StylesSidebarPane.ts | copySelector": {
4779
4779
  "message": "Ĉóp̂ý selector"
4780
4780
  },
4781
+ "panels/elements/StylesSidebarPane.ts | cssPropertyName": {
4782
+ "message": "CSS p̂ŕôṕêŕt̂ý n̂ám̂é"
4783
+ },
4784
+ "panels/elements/StylesSidebarPane.ts | cssPropertyValue": {
4785
+ "message": "CSS p̂ŕôṕêŕt̂ý v̂ál̂úê"
4786
+ },
4787
+ "panels/elements/StylesSidebarPane.ts | cssSelector": {
4788
+ "message": "CSS ŝél̂éĉt́ôŕ"
4789
+ },
4781
4790
  "panels/elements/StylesSidebarPane.ts | filter": {
4782
4791
  "message": "F̂íl̂t́êŕ"
4783
4792
  },
@@ -84,7 +84,6 @@ export class ConsoleModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
84
84
  #violationsInternal: number;
85
85
  #pageLoadSequenceNumber: number;
86
86
  readonly #targetListeners: WeakMap<Target, Common.EventTarget.EventDescriptor[]>;
87
- #consoleGroupMessageStack: ConsoleMessage[] = [];
88
87
 
89
88
  private constructor() {
90
89
  super();
@@ -276,7 +275,6 @@ export class ConsoleModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
276
275
  message = call.args[0].description;
277
276
  }
278
277
  const callFrame = call.stackTrace && call.stackTrace.callFrames.length ? call.stackTrace.callFrames[0] : null;
279
- const groupParent = this.#consoleGroupMessageStack[this.#consoleGroupMessageStack.length - 1];
280
278
  const details = {
281
279
  type: call.type,
282
280
  url: callFrame?.url,
@@ -287,20 +285,9 @@ export class ConsoleModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
287
285
  timestamp: call.timestamp,
288
286
  executionContextId: call.executionContextId,
289
287
  context: call.context,
290
- groupParent,
291
- groupChildren: [],
292
288
  };
293
289
  const consoleMessage =
294
290
  new ConsoleMessage(runtimeModel, FrontendMessageSource.ConsoleAPI, level, (message as string), details);
295
- if (call.type === Protocol.Runtime.ConsoleAPICalledEventType.StartGroup) {
296
- this.#consoleGroupMessageStack.push(consoleMessage);
297
- }
298
- if (call.type === Protocol.Runtime.ConsoleAPICalledEventType.EndGroup) {
299
- this.#consoleGroupMessageStack.pop();
300
- }
301
- if (groupParent && call.type !== Protocol.Runtime.ConsoleAPICalledEventType.EndGroup) {
302
- groupParent.groupChildren?.push(consoleMessage);
303
- }
304
291
  this.addMessage(consoleMessage);
305
292
  }
306
293
 
@@ -392,7 +379,6 @@ export class ConsoleModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
392
379
 
393
380
  private clear(): void {
394
381
  this.#messagesInternal = [];
395
- this.#consoleGroupMessageStack = [];
396
382
  this.#messageByExceptionId.clear();
397
383
  this.#errorsInternal = 0;
398
384
  this.#warningsInternal = 0;
@@ -518,8 +504,6 @@ export interface ConsoleMessageDetails {
518
504
  workerId?: string;
519
505
  context?: string;
520
506
  affectedResources?: AffectedResources;
521
- groupParent?: ConsoleMessage;
522
- groupChildren?: ConsoleMessage[];
523
507
  category?: Protocol.Log.LogEntryCategory;
524
508
  }
525
509
 
@@ -543,8 +527,6 @@ export class ConsoleMessage {
543
527
  #pageLoadSequenceNumber?: number = undefined;
544
528
  #exceptionId?: number = undefined;
545
529
  #affectedResources?: AffectedResources;
546
- groupParent?: ConsoleMessage;
547
- groupChildren?: Array<ConsoleMessage>;
548
530
  category?: Protocol.Log.LogEntryCategory;
549
531
 
550
532
  constructor(
@@ -565,8 +547,6 @@ export class ConsoleMessage {
565
547
  this.scriptId = details?.scriptId;
566
548
  this.workerId = details?.workerId;
567
549
  this.#affectedResources = details?.affectedResources;
568
- this.groupParent = details?.groupParent;
569
- this.groupChildren = details?.groupChildren;
570
550
  this.category = details?.category;
571
551
 
572
552
  if (!this.#executionContextId && this.#runtimeModelInternal) {
@@ -2,27 +2,20 @@
2
2
  "modules" : [
3
3
  { "name": "panels/emulation", "type": "autostart" },
4
4
  { "name": "entrypoints/inspector_main", "type": "autostart" },
5
- { "name": "panels/mobile_throttling", "type": "autostart" },
6
5
 
7
6
  { "name": "panels/accessibility" },
8
7
  { "name": "panels/lighthouse" },
9
8
  { "name": "panels/browser_debugger" },
10
9
  { "name": "panels/css_overview" },
11
- { "name": "ui/legacy/components/cookie_table" },
12
10
  { "name": "panels/elements" },
13
11
  { "name": "emulated_devices" },
14
12
  { "name": "panels/issues" },
15
- { "name": "panels/developer_resources" },
16
- { "name": "panels/help" },
17
13
  { "name": "panels/layers" },
18
14
  { "name": "panels/layer_viewer" },
19
15
  { "name": "panels/network" },
20
- { "name": "panels/performance_monitor" },
21
16
  { "name": "panels/application" },
22
17
  { "name": "panels/security" },
23
18
  { "name": "panels/timeline" },
24
- { "name": "panels/web_audio" },
25
- { "name": "panels/webauthn"},
26
19
  { "name": "panels/media" }
27
20
  ],
28
21
  "extends": "shell"
@@ -208,7 +208,7 @@ const supportsPrefersContrast = (): boolean => {
208
208
  };
209
209
 
210
210
  const supportsJpegXl = async(): Promise<boolean> => {
211
- const JPEG_XL_IMAGE_URL = 'data:image/jxl;base64,/wp/QCQIBgEAFABLEiRhAA==';
211
+ const JPEG_XL_IMAGE_URL = 'data:image/jxl;base64,/wr/BwiDBAwASyAY';
212
212
  const promise = new Promise<boolean>((resolve): void => {
213
213
  const img = document.createElement('img');
214
214
  img.onload = (): void => resolve(true);
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "dependencies": [
3
- "ui/legacy",
4
- "panels/mobile_throttling"
3
+ "ui/legacy"
5
4
  ],
6
5
  "resources": [
7
6
  "nodeIcon.css",
@@ -323,15 +323,22 @@ export class MainImpl {
323
323
  Root.Runtime.experiments.register(
324
324
  Root.Runtime.ExperimentName.SYNC_SETTINGS, 'Sync DevTools settings with Chrome Sync');
325
325
 
326
+ // Debugging of Reporting API
327
+ Root.Runtime.experiments.register('reportingApiDebugging', 'Enable Reporting API panel in the Application panel');
328
+
329
+ // CSS <length> authoring tool.
330
+ Root.Runtime.experiments.register(
331
+ 'cssTypeComponentLength',
332
+ 'Enable CSS <length> authoring tool in the Styles pane (https://goo.gle/length-feedback)', undefined,
333
+ 'https://developer.chrome.com/blog/new-in-devtools-96/#length');
334
+
326
335
  Root.Runtime.experiments.enableExperimentsByDefault([
327
336
  'sourceOrderViewer',
328
337
  'hideIssuesFeature',
329
338
  'bfcacheDebugging',
339
+ 'cssTypeComponentLength',
330
340
  ]);
331
341
 
332
- // Debugging of Reporting API
333
- Root.Runtime.experiments.register('reportingApiDebugging', 'Enable Reporting API panel in the Application panel');
334
-
335
342
  Root.Runtime.experiments.cleanUpStaleExperiments();
336
343
  const enabledExperiments = Root.Runtime.Runtime.queryParam('enabledExperiments');
337
344
  if (enabledExperiments) {
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "modules" : [
3
- { "name": "entrypoints/node_main", "type": "autostart" },
4
3
  { "name": "panels/js_profiler" }
5
4
  ],
6
5
  "extends": "shell"
@@ -3,7 +3,6 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as i18n from '../../core/i18n/i18n.js';
6
- import * as Root from '../../core/root/root.js';
7
6
  import * as UI from '../../ui/legacy/legacy.js';
8
7
 
9
8
  // eslint-disable-next-line rulesdir/es_modules_import
@@ -31,8 +30,6 @@ let loadedNodeMainModule: (typeof NodeMain|undefined);
31
30
 
32
31
  async function loadNodeMainModule(): Promise<typeof NodeMain> {
33
32
  if (!loadedNodeMainModule) {
34
- // Side-effect import resources in module.json
35
- await Root.Runtime.Runtime.instance().loadModulePromise('entrypoints/node_main');
36
33
  loadedNodeMainModule = await import('./node_main.js');
37
34
  }
38
35
  return loadedNodeMainModule;
@@ -1,22 +1,13 @@
1
1
  {
2
2
  "modules": [
3
- { "name": "panels/console_counters", "type": "autostart" },
4
3
  { "name": "entrypoints/main", "type": "autostart" },
5
4
  { "name": "ui/legacy", "type": "autostart" },
6
5
 
7
- { "name": "ui/legacy/components/color_picker" },
8
6
  { "name": "panels/console" },
9
7
  { "name": "panels/coverage" },
10
- { "name": "ui/legacy/components/data_grid" },
11
- { "name": "panels/event_listeners" },
12
- { "name": "ui/legacy/components/inline_editor" },
13
- { "name": "panels/input"},
14
- { "name": "ui/legacy/components/object_ui" },
15
8
  { "name": "ui/legacy/components/perf_ui" },
16
9
  { "name": "panels/profiler" },
17
10
  { "name": "panels/protocol_monitor"},
18
- { "name": "panels/search" },
19
- { "name": "panels/settings" },
20
11
  { "name": "ui/legacy/components/source_frame" },
21
12
  { "name": "panels/sources" },
22
13
  { "name": "ui/legacy/components/text_editor" }
@@ -1,13 +1,8 @@
1
1
  {
2
2
  "modules" : [
3
- { "name": "panels/mobile_throttling", "type": "autostart" },
4
-
5
3
  { "name": "panels/browser_debugger" },
6
- { "name": "ui/legacy/components/cookie_table" },
7
4
  { "name": "panels/elements" },
8
- { "name": "panels/help" },
9
5
  { "name": "panels/issues" },
10
- { "name": "panels/developer_resources" },
11
6
  { "name": "panels/layer_viewer" },
12
7
  { "name": "panels/network" },
13
8
  { "name": "panels/application" },
@@ -11,13 +11,13 @@ import {AttributionReportingIssue} from './AttributionReportingIssue.js';
11
11
  import {ContentSecurityPolicyIssue} from './ContentSecurityPolicyIssue.js';
12
12
  import {CorsIssue} from './CorsIssue.js';
13
13
  import {CrossOriginEmbedderPolicyIssue, isCrossOriginEmbedderPolicyIssue} from './CrossOriginEmbedderPolicyIssue.js';
14
- import {DeprecationIssue} from './DeprecationIssue.js';
15
14
  import {GenericIssue} from './GenericIssue.js';
16
15
  import {HeavyAdIssue} from './HeavyAdIssue.js';
17
16
  import type {Issue, IssueKind} from './Issue.js';
18
17
  import {Events} from './IssuesManagerEvents.js';
19
18
  import {LowTextContrastIssue} from './LowTextContrastIssue.js';
20
19
  import {MixedContentIssue} from './MixedContentIssue.js';
20
+ import {NavigatorUserAgentIssue} from './NavigatorUserAgentIssue.js';
21
21
  import {QuirksModeIssue} from './QuirksModeIssue.js';
22
22
  import {SameSiteCookieIssue} from './SameSiteCookieIssue.js';
23
23
  import {SharedArrayBufferIssue} from './SharedArrayBufferIssue.js';
@@ -85,7 +85,7 @@ const issueCodeHandlers = new Map<
85
85
  ],
86
86
  [
87
87
  Protocol.Audits.InspectorIssueCode.NavigatorUserAgentIssue,
88
- DeprecationIssue.fromInspectorIssue,
88
+ NavigatorUserAgentIssue.fromInspectorIssue,
89
89
  ],
90
90
  [
91
91
  Protocol.Audits.InspectorIssueCode.AttributionReportingIssue,
@@ -17,7 +17,7 @@ const UIStrings = {
17
17
  */
18
18
  userAgentReduction: 'User-Agent String Reduction',
19
19
  };
20
- const str_ = i18n.i18n.registerUIStrings('models/issues_manager/DeprecationIssue.ts', UIStrings);
20
+ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/NavigatorUserAgentIssue.ts', UIStrings);
21
21
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
22
22
 
23
23
  // TODO(crbug.com/1167717): Make this a const enum again
@@ -26,7 +26,7 @@ export enum IssueCode {
26
26
  NavigatorUserAgentIssue = 'DeprecationIssue::NavigatorUserAgentIssue',
27
27
  }
28
28
 
29
- export class DeprecationIssue extends Issue<IssueCode> {
29
+ export class NavigatorUserAgentIssue extends Issue<IssueCode> {
30
30
  private issueDetails: Protocol.Audits.NavigatorUserAgentIssueDetails;
31
31
 
32
32
  constructor(issueDetails: Protocol.Audits.NavigatorUserAgentIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
@@ -73,12 +73,12 @@ export class DeprecationIssue extends Issue<IssueCode> {
73
73
  }
74
74
 
75
75
  static fromInspectorIssue(issuesModel: SDK.IssuesModel.IssuesModel, inspectorIssue: Protocol.Audits.InspectorIssue):
76
- DeprecationIssue[] {
76
+ NavigatorUserAgentIssue[] {
77
77
  const details = inspectorIssue.details.navigatorUserAgentIssueDetails;
78
78
  if (!details) {
79
79
  console.warn('NavigatorUserAgent issue without details received.');
80
80
  return [];
81
81
  }
82
- return [new DeprecationIssue(details, issuesModel)];
82
+ return [new NavigatorUserAgentIssue(details, issuesModel)];
83
83
  }
84
84
  }