chrome-devtools-frontend 1.0.945329 → 1.0.946351

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 (120) hide show
  1. package/config/gni/all_devtools_files.gni +0 -5
  2. package/config/gni/devtools_grd_files.gni +1 -33
  3. package/config/gni/devtools_image_files.gni +1 -0
  4. package/front_end/Images/src/circled_exclamation_icon.svg +3 -0
  5. package/front_end/core/host/UserMetrics.ts +0 -1
  6. package/front_end/core/i18n/locales/en-US.json +12 -12
  7. package/front_end/core/i18n/locales/en-XL.json +12 -12
  8. package/front_end/core/root/Runtime.ts +0 -1
  9. package/front_end/core/sdk/CSSMetadata.ts +0 -1
  10. package/front_end/core/sdk/CSSProperty.ts +16 -9
  11. package/front_end/core/sdk/sdk-meta.ts +20 -8
  12. package/front_end/devtools_compatibility.js +0 -7
  13. package/front_end/entrypoints/devtools_app/devtools_app.js +3 -0
  14. package/front_end/entrypoints/devtools_app/devtools_app.json +1 -2
  15. package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +1 -3
  16. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -2
  17. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +0 -120
  18. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -11
  19. package/front_end/entrypoints/formatter_worker/formatter_worker.ts +5 -0
  20. package/front_end/entrypoints/js_app/js_app.js +3 -0
  21. package/front_end/entrypoints/js_app/js_app.json +1 -2
  22. package/front_end/entrypoints/main/MainImpl.ts +0 -6
  23. package/front_end/entrypoints/ndb_app/ndb_app.js +3 -0
  24. package/front_end/entrypoints/ndb_app/ndb_app.json +1 -2
  25. package/front_end/entrypoints/node_app/node_app.js +3 -0
  26. package/front_end/entrypoints/node_app/node_app.json +1 -2
  27. package/front_end/entrypoints/shell/shell.js +18 -1
  28. package/front_end/entrypoints/worker_app/worker_app.js +3 -0
  29. package/front_end/entrypoints/worker_app/worker_app.json +1 -2
  30. package/front_end/generated/protocol.d.ts +0 -4
  31. package/front_end/legacy_test_runner/sources_test_runner/sources_test_runner.js +0 -1
  32. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
  33. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  34. package/front_end/models/emulation/EmulatedDevices.ts +2 -4
  35. package/front_end/models/formatter/FormatterWorkerPool.ts +0 -18
  36. package/front_end/models/text_utils/CodeMirrorUtils.ts +6 -51
  37. package/front_end/models/text_utils/TextUtils.ts +1 -2
  38. package/front_end/models/text_utils/text_utils-legacy.ts +0 -5
  39. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  40. package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
  41. package/front_end/panels/application/BackForwardCacheView.ts +8 -1
  42. package/front_end/panels/elements/StyleEditorWidget.ts +13 -2
  43. package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -12
  44. package/front_end/panels/elements/StylesSidebarPane.ts +35 -9
  45. package/front_end/panels/elements/elementsTreeOutline.css +0 -13
  46. package/front_end/panels/network/NetworkConfigView.ts +10 -0
  47. package/front_end/panels/network/NetworkItemView.ts +10 -1
  48. package/front_end/panels/network/networkConfigView.css +5 -0
  49. package/front_end/panels/profiler/heapProfiler.css +2 -5
  50. package/front_end/panels/profiler/profilesPanel.css +1 -1
  51. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +6 -4
  52. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +0 -12
  53. package/front_end/panels/sources/DebuggerPlugin.ts +6 -2
  54. package/front_end/panels/sources/sourcesView.css +0 -130
  55. package/front_end/panels/webauthn/WebauthnPane.ts +31 -32
  56. package/front_end/third_party/codemirror/codemirror-tsconfig.json +1 -25
  57. package/front_end/ui/components/adorners/Adorner.ts +14 -14
  58. package/front_end/ui/components/buttons/Button.ts +133 -42
  59. package/front_end/ui/components/buttons/button.css +31 -0
  60. package/front_end/ui/components/data_grid/DataGrid.ts +131 -122
  61. package/front_end/ui/components/data_grid/DataGridController.ts +42 -42
  62. package/front_end/ui/components/diff_view/DiffView.ts +4 -4
  63. package/front_end/ui/components/docs/button/basic.html +3 -0
  64. package/front_end/ui/components/docs/button/basic.ts +58 -0
  65. package/front_end/ui/components/expandable_list/ExpandableList.ts +11 -11
  66. package/front_end/ui/components/icon_button/Icon.ts +24 -21
  67. package/front_end/ui/components/icon_button/IconButton.ts +31 -31
  68. package/front_end/ui/components/issue_counter/IssueCounter.ts +52 -52
  69. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +42 -42
  70. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +67 -67
  71. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +22 -22
  72. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +36 -36
  73. package/front_end/ui/components/linear_memory_inspector/LinearMemoryNavigator.ts +19 -19
  74. package/front_end/ui/components/linear_memory_inspector/LinearMemoryValueInterpreter.ts +24 -32
  75. package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +52 -52
  76. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterDisplay.ts +21 -21
  77. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterSettings.ts +6 -6
  78. package/front_end/ui/components/markdown_view/MarkdownImage.ts +14 -14
  79. package/front_end/ui/components/markdown_view/MarkdownLink.ts +8 -8
  80. package/front_end/ui/components/markdown_view/MarkdownView.ts +6 -6
  81. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +33 -33
  82. package/front_end/ui/components/report_view/ReportView.ts +18 -18
  83. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +53 -53
  84. package/front_end/ui/components/settings/SettingCheckbox.ts +15 -15
  85. package/front_end/ui/components/survey_link/SurveyLink.ts +28 -28
  86. package/front_end/ui/components/text_editor/TextEditor.ts +55 -52
  87. package/front_end/ui/components/text_editor/config.ts +3 -3
  88. package/front_end/ui/components/text_editor/javascript.ts +27 -9
  89. package/front_end/ui/components/text_editor/theme.ts +1 -0
  90. package/front_end/ui/components/text_prompt/TextPrompt.ts +19 -19
  91. package/front_end/ui/components/tree_outline/TreeOutline.ts +56 -56
  92. package/front_end/ui/legacy/Infobar.ts +9 -0
  93. package/front_end/ui/legacy/ListWidget.ts +2 -2
  94. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -3
  95. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +0 -1
  96. package/front_end/ui/legacy/components/object_ui/object_ui-legacy.ts +0 -8
  97. package/front_end/ui/legacy/components/object_ui/object_ui.ts +0 -4
  98. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +3 -0
  99. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +0 -211
  100. package/front_end/ui/legacy/legacy-legacy.ts +0 -6
  101. package/front_end/ui/legacy/legacy.ts +0 -2
  102. package/front_end/ui/legacy/tabbedPane.css +1 -1
  103. package/inspector_overlay/main.ts +12 -2
  104. package/package.json +1 -1
  105. package/scripts/check_gn.js +1 -1
  106. package/scripts/eslint_rules/lib/l10n_filename_matches.js +17 -4
  107. package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +21 -0
  108. package/scripts/hosted_mode/server.js +17 -2
  109. package/front_end/entrypoints/shell/shell-meta-files.ts +0 -22
  110. package/front_end/entrypoints/shell/shell.json +0 -5
  111. package/front_end/ui/legacy/TextEditor.ts +0 -82
  112. package/front_end/ui/legacy/components/object_ui/JavaScriptAutocomplete.ts +0 -836
  113. package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +0 -1676
  114. package/front_end/ui/legacy/components/text_editor/TextEditorAutocompleteController.ts +0 -586
  115. package/front_end/ui/legacy/components/text_editor/autocompleteTooltip.css +0 -20
  116. package/front_end/ui/legacy/components/text_editor/cm_modes.ts +0 -23
  117. package/front_end/ui/legacy/components/text_editor/cmdevtools.css +0 -995
  118. package/front_end/ui/legacy/components/text_editor/module.json +0 -7
  119. package/front_end/ui/legacy/components/text_editor/text_editor-legacy.ts +0 -33
  120. package/front_end/ui/legacy/components/text_editor/text_editor.ts +0 -13
@@ -30,7 +30,6 @@ all_devtools_files = [
30
30
  "front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js",
31
31
  "front_end/legacy_test_runner/bindings_test_runner/OverridesTestRunner.js",
32
32
  "front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js",
33
- "front_end/third_party/codemirror/codemirror.css",
34
33
  "front_end/legacy_test_runner/console_test_runner/console_test_runner.js",
35
34
  "front_end/legacy_test_runner/coverage_test_runner/coverage_test_runner.js",
36
35
  "front_end/legacy_test_runner/cpu_profiler_test_runner/cpu_profiler_test_runner.js",
@@ -114,7 +113,6 @@ all_devtools_files = [
114
113
  "front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
115
114
  "front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js",
116
115
  "front_end/legacy_test_runner/security_test_runner/security_test_runner.js",
117
- "front_end/entrypoints/shell/shell.json",
118
116
  "front_end/legacy_test_runner/sources_test_runner/sources_test_runner.js",
119
117
  "front_end/legacy_test_runner/sources_test_runner/AutocompleteTestRunner.js",
120
118
  "front_end/legacy_test_runner/sources_test_runner/DebuggerTestRunner.js",
@@ -122,9 +120,6 @@ all_devtools_files = [
122
120
  "front_end/legacy_test_runner/sources_test_runner/LiveEditTestRunner.js",
123
121
  "front_end/legacy_test_runner/sources_test_runner/SearchTestRunner.js",
124
122
  "front_end/legacy_test_runner/sources_test_runner/SourcesTestRunner.js",
125
- "front_end/ui/legacy/components/text_editor/autocompleteTooltip.css",
126
- "front_end/ui/legacy/components/text_editor/cmdevtools.css",
127
- "front_end/ui/legacy/components/text_editor/module.json",
128
123
  "front_end/third_party/lighthouse/report-assets/report.js",
129
124
  "front_end/third_party/lighthouse/report-assets/standalone-template.html",
130
125
  ]
@@ -45,6 +45,7 @@ grd_files_release_sources = [
45
45
  "front_end/Images/chromeRight.avif",
46
46
  "front_end/Images/chromeSelect.svg",
47
47
  "front_end/Images/chromeSelectDark.svg",
48
+ "front_end/Images/circled_exclamation_icon.svg",
48
49
  "front_end/Images/close-icon.svg",
49
50
  "front_end/Images/copy_icon.svg",
50
51
  "front_end/Images/cssoverview_icons_2x.avif",
@@ -225,7 +226,6 @@ grd_files_release_sources = [
225
226
  "front_end/entrypoints/node_app/node_app.js",
226
227
  "front_end/entrypoints/node_main/node_main-meta.js",
227
228
  "front_end/entrypoints/node_main/node_main.js",
228
- "front_end/entrypoints/shell/shell-meta-files.js",
229
229
  "front_end/entrypoints/shell/shell.js",
230
230
  "front_end/entrypoints/startup/startup.js",
231
231
  "front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js",
@@ -445,7 +445,6 @@ grd_files_release_sources = [
445
445
  "front_end/third_party/codemirror.next/chunk/wast.js",
446
446
  "front_end/third_party/codemirror.next/chunk/xml.js",
447
447
  "front_end/third_party/codemirror.next/codemirror.next.js",
448
- "front_end/third_party/codemirror/codemirror.js",
449
448
  "front_end/third_party/diff/diff-legacy.js",
450
449
  "front_end/third_party/diff/diff.js",
451
450
  "front_end/third_party/i18n/i18n.js",
@@ -497,8 +496,6 @@ grd_files_release_sources = [
497
496
  "front_end/ui/legacy/components/source_frame/source_frame-legacy.js",
498
497
  "front_end/ui/legacy/components/source_frame/source_frame-meta.js",
499
498
  "front_end/ui/legacy/components/source_frame/source_frame.js",
500
- "front_end/ui/legacy/components/text_editor/text_editor-legacy.js",
501
- "front_end/ui/legacy/components/text_editor/text_editor.js",
502
499
  "front_end/ui/legacy/components/utils/utils-legacy.js",
503
500
  "front_end/ui/legacy/components/utils/utils.js",
504
501
  "front_end/ui/legacy/legacy-legacy.js",
@@ -1263,33 +1260,9 @@ grd_files_debug_sources = [
1263
1260
  "front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs",
1264
1261
  "front_end/third_party/acorn/package/dist/acorn.mjs",
1265
1262
  "front_end/third_party/chromium/client-variations/ClientVariations.js",
1266
- "front_end/third_party/codemirror/package/addon/comment/comment.js",
1267
- "front_end/third_party/codemirror/package/addon/edit/closebrackets.js",
1268
- "front_end/third_party/codemirror/package/addon/edit/matchbrackets.js",
1269
- "front_end/third_party/codemirror/package/addon/fold/brace-fold.js",
1270
- "front_end/third_party/codemirror/package/addon/fold/foldcode.js",
1271
- "front_end/third_party/codemirror/package/addon/fold/foldgutter.js",
1272
- "front_end/third_party/codemirror/package/addon/mode/multiplex.js",
1273
- "front_end/third_party/codemirror/package/addon/mode/overlay.js",
1274
- "front_end/third_party/codemirror/package/addon/mode/simple.js",
1275
1263
  "front_end/third_party/codemirror/package/addon/runmode/runmode-standalone.js",
1276
- "front_end/third_party/codemirror/package/addon/selection/active-line.js",
1277
- "front_end/third_party/codemirror/package/addon/selection/mark-selection.js",
1278
- "front_end/third_party/codemirror/package/lib/codemirror.js",
1279
- "front_end/third_party/codemirror/package/mode/clike/clike.js",
1280
- "front_end/third_party/codemirror/package/mode/clojure/clojure.js",
1281
- "front_end/third_party/codemirror/package/mode/coffeescript/coffeescript.js",
1282
1264
  "front_end/third_party/codemirror/package/mode/css/css.js",
1283
- "front_end/third_party/codemirror/package/mode/htmlembedded/htmlembedded.js",
1284
- "front_end/third_party/codemirror/package/mode/htmlmixed/htmlmixed.js",
1285
1265
  "front_end/third_party/codemirror/package/mode/javascript/javascript.js",
1286
- "front_end/third_party/codemirror/package/mode/jsx/jsx.js",
1287
- "front_end/third_party/codemirror/package/mode/livescript/livescript.js",
1288
- "front_end/third_party/codemirror/package/mode/markdown/markdown.js",
1289
- "front_end/third_party/codemirror/package/mode/php/php.js",
1290
- "front_end/third_party/codemirror/package/mode/python/python.js",
1291
- "front_end/third_party/codemirror/package/mode/shell/shell.js",
1292
- "front_end/third_party/codemirror/package/mode/wast/wast.js",
1293
1266
  "front_end/third_party/codemirror/package/mode/xml/xml.js",
1294
1267
  "front_end/third_party/diff/DiffWrapper.js",
1295
1268
  "front_end/third_party/diff/diff_match_patch.js",
@@ -1455,7 +1428,6 @@ grd_files_debug_sources = [
1455
1428
  "front_end/ui/legacy/SuggestBox.js",
1456
1429
  "front_end/ui/legacy/TabbedPane.js",
1457
1430
  "front_end/ui/legacy/TargetCrashedScreen.js",
1458
- "front_end/ui/legacy/TextEditor.js",
1459
1431
  "front_end/ui/legacy/TextPrompt.js",
1460
1432
  "front_end/ui/legacy/ThrottledWidget.js",
1461
1433
  "front_end/ui/legacy/Toolbar.js",
@@ -1515,7 +1487,6 @@ grd_files_debug_sources = [
1515
1487
  "front_end/ui/legacy/components/inline_editor/fontEditor.css.js",
1516
1488
  "front_end/ui/legacy/components/inline_editor/swatchPopover.css.js",
1517
1489
  "front_end/ui/legacy/components/object_ui/CustomPreviewComponent.js",
1518
- "front_end/ui/legacy/components/object_ui/JavaScriptAutocomplete.js",
1519
1490
  "front_end/ui/legacy/components/object_ui/JavaScriptREPL.js",
1520
1491
  "front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.js",
1521
1492
  "front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.js",
@@ -1563,9 +1534,6 @@ grd_files_debug_sources = [
1563
1534
  "front_end/ui/legacy/components/source_frame/resourceSourceFrame.css.legacy.js",
1564
1535
  "front_end/ui/legacy/components/source_frame/xmlTree.css.legacy.js",
1565
1536
  "front_end/ui/legacy/components/source_frame/xmlView.css.legacy.js",
1566
- "front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.js",
1567
- "front_end/ui/legacy/components/text_editor/TextEditorAutocompleteController.js",
1568
- "front_end/ui/legacy/components/text_editor/cm_modes.js",
1569
1537
  "front_end/ui/legacy/components/utils/ImagePreview.js",
1570
1538
  "front_end/ui/legacy/components/utils/JSPresentationUtils.js",
1571
1539
  "front_end/ui/legacy/components/utils/Linkifier.js",
@@ -56,6 +56,7 @@ devtools_svg_sources = [
56
56
  "chevrons.svg",
57
57
  "chromeSelect.svg",
58
58
  "chromeSelectDark.svg",
59
+ "circled_exclamation_icon.svg",
59
60
  "close-icon.svg",
60
61
  "copy_icon.svg",
61
62
  "dropdown_7x6_icon.svg",
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 4.233 4.233" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.25 10.25h1.5v1.5h-1.5zm0-6h1.5v4.5h-1.5ZM7.992.5C3.853.5.5 3.86.5 8c0 4.14 3.353 7.5 7.492 7.5 4.148 0 7.508-3.36 7.508-7.5 0-4.14-3.36-7.5-7.508-7.5ZM8 14c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z" transform="scale(.26458)" style="fill:#000"/>
3
+ </svg>
@@ -611,7 +611,6 @@ export const DevtoolsExperiments: {
611
611
  'ignoreListJSFramesOnTimeline': 43,
612
612
  'contrastIssues': 44,
613
613
  'experimentalCookieFeatures': 45,
614
- 'bfcacheDebugging': 47,
615
614
  'hideIssuesFeature': 48,
616
615
  'reportingApiDebugging': 49,
617
616
  'syncSettings': 50,
@@ -584,6 +584,9 @@
584
584
  "core/sdk/sdk-meta.ts | disabledDarkMode": {
585
585
  "message": "Disable"
586
586
  },
587
+ "core/sdk/sdk-meta.ts | disableEmulateAutoDarkMode": {
588
+ "message": "Disable auto dark mode"
589
+ },
587
590
  "core/sdk/sdk-meta.ts | disableJavascript": {
588
591
  "message": "Disable JavaScript"
589
592
  },
@@ -614,6 +617,9 @@
614
617
  "core/sdk/sdk-meta.ts | doNotEmulateCssMediaType": {
615
618
  "message": "Do not emulate CSS media type"
616
619
  },
620
+ "core/sdk/sdk-meta.ts | doNotEmulateDarkMode": {
621
+ "message": "Do not emulate auto dark mode"
622
+ },
617
623
  "core/sdk/sdk-meta.ts | doNotExtendGridLines": {
618
624
  "message": "Do not extend grid lines"
619
625
  },
@@ -686,6 +692,9 @@
686
692
  "core/sdk/sdk-meta.ts | enabledDarkMode": {
687
693
  "message": "Enable"
688
694
  },
695
+ "core/sdk/sdk-meta.ts | enableEmulateAutoDarkMode": {
696
+ "message": "Enable auto dark mode"
697
+ },
689
698
  "core/sdk/sdk-meta.ts | enableJavascript": {
690
699
  "message": "Enable JavaScript"
691
700
  },
@@ -6374,6 +6383,9 @@
6374
6383
  "panels/network/NetworkConfigView.ts | caching": {
6375
6384
  "message": "Caching"
6376
6385
  },
6386
+ "panels/network/NetworkConfigView.ts | clientHintsStatusText": {
6387
+ "message": "User agent updated."
6388
+ },
6377
6389
  "panels/network/NetworkConfigView.ts | custom": {
6378
6390
  "message": "Custom..."
6379
6391
  },
@@ -11681,15 +11693,6 @@
11681
11693
  "ui/legacy/components/object_ui/CustomPreviewComponent.ts | showAsJavascriptObject": {
11682
11694
  "message": "Show as JavaScript object"
11683
11695
  },
11684
- "ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | keys": {
11685
- "message": "Keys"
11686
- },
11687
- "ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | keywords": {
11688
- "message": "keywords"
11689
- },
11690
- "ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | lexicalScopeVariables": {
11691
- "message": "Lexical scope variables"
11692
- },
11693
11696
  "ui/legacy/components/object_ui/ObjectPropertiesSection.ts | collapseChildren": {
11694
11697
  "message": "Collapse children"
11695
11698
  },
@@ -11954,9 +11957,6 @@
11954
11957
  "ui/legacy/components/source_frame/XMLView.ts | find": {
11955
11958
  "message": "Find"
11956
11959
  },
11957
- "ui/legacy/components/text_editor/CodeMirrorTextEditor.ts | codeEditor": {
11958
- "message": "Code editor"
11959
- },
11960
11960
  "ui/legacy/components/utils/ImagePreview.ts | currentSource": {
11961
11961
  "message": "Current source:"
11962
11962
  },
@@ -584,6 +584,9 @@
584
584
  "core/sdk/sdk-meta.ts | disabledDarkMode": {
585
585
  "message": "D̂íŝáb̂ĺê"
586
586
  },
587
+ "core/sdk/sdk-meta.ts | disableEmulateAutoDarkMode": {
588
+ "message": "D̂íŝáb̂ĺê áût́ô d́âŕk̂ ḿôd́ê"
589
+ },
587
590
  "core/sdk/sdk-meta.ts | disableJavascript": {
588
591
  "message": "D̂íŝáb̂ĺê J́âv́âŚĉŕîṕt̂"
589
592
  },
@@ -614,6 +617,9 @@
614
617
  "core/sdk/sdk-meta.ts | doNotEmulateCssMediaType": {
615
618
  "message": "D̂ó n̂ót̂ ém̂úl̂át̂é ĈŚŜ ḿêd́îá t̂ýp̂é"
616
619
  },
620
+ "core/sdk/sdk-meta.ts | doNotEmulateDarkMode": {
621
+ "message": "D̂ó n̂ót̂ ém̂úl̂át̂é âút̂ó d̂ár̂ḱ m̂ód̂é"
622
+ },
617
623
  "core/sdk/sdk-meta.ts | doNotExtendGridLines": {
618
624
  "message": "D̂ó n̂ót̂ éx̂t́êńd̂ ǵr̂íd̂ ĺîńêś"
619
625
  },
@@ -686,6 +692,9 @@
686
692
  "core/sdk/sdk-meta.ts | enabledDarkMode": {
687
693
  "message": "Êńâb́l̂é"
688
694
  },
695
+ "core/sdk/sdk-meta.ts | enableEmulateAutoDarkMode": {
696
+ "message": "Êńâb́l̂é âút̂ó d̂ár̂ḱ m̂ód̂é"
697
+ },
689
698
  "core/sdk/sdk-meta.ts | enableJavascript": {
690
699
  "message": "Êńâb́l̂é Ĵáv̂áŜćr̂íp̂t́"
691
700
  },
@@ -6374,6 +6383,9 @@
6374
6383
  "panels/network/NetworkConfigView.ts | caching": {
6375
6384
  "message": "Ĉáĉh́îńĝ"
6376
6385
  },
6386
+ "panels/network/NetworkConfigView.ts | clientHintsStatusText": {
6387
+ "message": "Ûśêŕ âǵêńt̂ úp̂d́ât́êd́."
6388
+ },
6377
6389
  "panels/network/NetworkConfigView.ts | custom": {
6378
6390
  "message": "Ĉúŝt́ôḿ..."
6379
6391
  },
@@ -11681,15 +11693,6 @@
11681
11693
  "ui/legacy/components/object_ui/CustomPreviewComponent.ts | showAsJavascriptObject": {
11682
11694
  "message": "Ŝh́ôẃ âś Ĵáv̂áŜćr̂íp̂t́ ôb́ĵéĉt́"
11683
11695
  },
11684
- "ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | keys": {
11685
- "message": "K̂éŷś"
11686
- },
11687
- "ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | keywords": {
11688
- "message": "k̂éŷẃôŕd̂ś"
11689
- },
11690
- "ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | lexicalScopeVariables": {
11691
- "message": "L̂éx̂íĉál̂ śĉóp̂é v̂ár̂íâb́l̂éŝ"
11692
- },
11693
11696
  "ui/legacy/components/object_ui/ObjectPropertiesSection.ts | collapseChildren": {
11694
11697
  "message": "Ĉól̂ĺâṕŝé ĉh́îĺd̂ŕêń"
11695
11698
  },
@@ -11954,9 +11957,6 @@
11954
11957
  "ui/legacy/components/source_frame/XMLView.ts | find": {
11955
11958
  "message": "F̂ín̂d́"
11956
11959
  },
11957
- "ui/legacy/components/text_editor/CodeMirrorTextEditor.ts | codeEditor": {
11958
- "message": "Ĉód̂é êd́ît́ôŕ"
11959
- },
11960
11960
  "ui/legacy/components/utils/ImagePreview.ts | currentSource": {
11961
11961
  "message": "Ĉúr̂ŕêńt̂ śôúr̂ćê:"
11962
11962
  },
@@ -59,7 +59,6 @@ export const mappingForLayoutTests = new Map<string, string>([
59
59
  ['ui/legacy/components/source_frame', 'source_frame'],
60
60
  ['ui/legacy/components/color_picker', 'color_picker'],
61
61
  ['ui/legacy/components/cookie_table', 'cookie_table'],
62
- ['ui/legacy/components/text_editor', 'text_editor'],
63
62
  ['ui/legacy/components/quick_open', 'quick_open'],
64
63
  ['ui/legacy/components/utils', 'components'],
65
64
  ]);
@@ -567,7 +567,6 @@ const extraPropertyValues = {
567
567
  'ui-monospace',
568
568
  'ui-rounded',
569
569
  '-webkit-body',
570
- '-webkit-pictograph',
571
570
  ],
572
571
  },
573
572
  'zoom': {values: ['normal']},
@@ -6,8 +6,8 @@ import * as TextUtils from '../../models/text_utils/text_utils.js';
6
6
  import * as Common from '../common/common.js';
7
7
  import * as HostModule from '../host/host.js';
8
8
  import * as Platform from '../platform/platform.js';
9
+ import * as Root from '../root/root.js';
9
10
  import type * as Protocol from '../../generated/protocol.js';
10
- import type * as CodeMirrorModule from '../../third_party/codemirror/codemirror-legacy.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
11
11
 
12
12
  import {cssMetadata, GridAreaRowRegex} from './CSSMetadata.js';
13
13
  import type {Edit} from './CSSModel.js';
@@ -178,7 +178,7 @@ export class CSSProperty {
178
178
 
179
179
  static formatStyle(
180
180
  styleText: string, indentation: string, endIndentation: string,
181
- tokenizerFactory: TextUtils.TextUtils.TokenizerFactory, codeMirrorMode?: CodeMirror.Mode<unknown>): string {
181
+ tokenizerFactory: TextUtils.TextUtils.TokenizerFactory): string {
182
182
  const doubleIndent = indentation.substring(endIndentation.length) + indentation;
183
183
  if (indentation) {
184
184
  indentation = '\n' + indentation;
@@ -188,7 +188,7 @@ export class CSSProperty {
188
188
  let propertyText = '';
189
189
  let insideProperty = false;
190
190
  let needsSemi = false;
191
- const tokenize = tokenizerFactory.createTokenizer('text/css', codeMirrorMode);
191
+ const tokenize = tokenizerFactory.createTokenizer('text/css');
192
192
 
193
193
  tokenize('*{' + styleText + '}', processToken);
194
194
  if (insideProperty) {
@@ -199,10 +199,10 @@ export class CSSProperty {
199
199
 
200
200
  function processToken(token: string, tokenType: string|null, _column: number, _newColumn: number): void {
201
201
  if (!insideProperty) {
202
- const disabledProperty = tokenType && tokenType.includes('css-comment') && isDisabledProperty(token);
202
+ const disabledProperty = tokenType && tokenType.includes('comment') && isDisabledProperty(token);
203
203
  const isPropertyStart = tokenType &&
204
- (tokenType.includes('css-string') || tokenType.includes('css-meta') || tokenType.includes('css-property') ||
205
- tokenType.includes('css-variable-2'));
204
+ (tokenType.includes('string') || tokenType.includes('meta') || tokenType.includes('property') ||
205
+ tokenType.includes('variable-2'));
206
206
  if (disabledProperty) {
207
207
  result = result.trimRight() + indentation + token;
208
208
  } else if (isPropertyStart) {
@@ -210,7 +210,7 @@ export class CSSProperty {
210
210
  propertyText = token;
211
211
  } else if (token !== ';' || needsSemi) {
212
212
  result += token;
213
- if (token.trim() && !(tokenType && tokenType.includes('css-comment'))) {
213
+ if (token.trim() && !(tokenType && tokenType.includes('comment'))) {
214
214
  needsSemi = token !== ';';
215
215
  }
216
216
  }
@@ -227,11 +227,18 @@ export class CSSProperty {
227
227
  // implementation takes special care to restore a single
228
228
  // whitespace token in this edge case. https://crbug.com/1071296
229
229
  const trimmedPropertyText = propertyText.trim();
230
- result = result.trimRight() + indentation + trimmedPropertyText +
231
- (trimmedPropertyText.endsWith(':') ? ' ' : '') + ';';
230
+ result =
231
+ result.trimRight() + indentation + trimmedPropertyText + (trimmedPropertyText.endsWith(':') ? ' ' : '');
232
232
  needsSemi = false;
233
233
  insideProperty = false;
234
234
  propertyName = '';
235
+ if (Root.Runtime.experiments.isEnabled('preciseChanges')) {
236
+ result += token;
237
+ return;
238
+ }
239
+ // We preserve the legacy behavior to always add semicolon to
240
+ // declarations regardless of its original text.
241
+ result += ';';
235
242
  if (token === '}') {
236
243
  result += '}';
237
244
  }
@@ -306,8 +306,8 @@ const UIStrings = {
306
306
  */
307
307
  enableCache: 'Enable cache',
308
308
  /**
309
- * @description Title of a setting under the Network category that can be invoked through the Command Menu
310
- */
309
+ * @description Title of a setting under the Network category that can be invoked through the Command Menu
310
+ */
311
311
  disableCache: 'Disable cache (while DevTools is open)',
312
312
  /**
313
313
  * @description The name of a checkbox setting in the Rendering tool. This setting
@@ -315,13 +315,25 @@ const UIStrings = {
315
315
  */
316
316
  emulateAutoDarkMode: 'Emulate auto dark mode',
317
317
  /**
318
- *@description Title of a setting for emulating enabled auto dark mode.
318
+ * @description Title of a setting for enabling auto dark mode.
319
+ */
320
+ enableEmulateAutoDarkMode: 'Enable auto dark mode',
321
+ /**
322
+ * @description Text to emulate enabled auto dark mode.
319
323
  */
320
324
  enabledDarkMode: 'Enable',
321
325
  /**
322
- * @description Title of a setting for emulating disabled auto dark mode.
323
- */
326
+ * @description Title of a setting for disabling auto dark mode.
327
+ */
328
+ disableEmulateAutoDarkMode: 'Disable auto dark mode',
329
+ /**
330
+ * @description Text to emulate disabled auto dark mode.
331
+ */
324
332
  disabledDarkMode: 'Disable',
333
+ /**
334
+ * @description Title of a setting for disabling dark mode emulation.
335
+ */
336
+ doNotEmulateDarkMode: 'Do not emulate auto dark mode',
325
337
  };
326
338
  const str_ = i18n.i18n.registerUIStrings('core/sdk/sdk-meta.ts', UIStrings);
327
339
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
@@ -1042,17 +1054,17 @@ Common.Settings.registerSettingExtension({
1042
1054
  defaultValue: 'default',
1043
1055
  options: [
1044
1056
  {
1045
- title: i18nLazyString(UIStrings.emulateAutoDarkMode),
1057
+ title: i18nLazyString(UIStrings.doNotEmulateDarkMode),
1046
1058
  text: i18nLazyString(UIStrings.noEmulation),
1047
1059
  value: 'default',
1048
1060
  },
1049
1061
  {
1050
- title: i18nLazyString(UIStrings.emulateAutoDarkMode),
1062
+ title: i18nLazyString(UIStrings.enableEmulateAutoDarkMode),
1051
1063
  text: i18nLazyString(UIStrings.enabledDarkMode),
1052
1064
  value: 'enabled',
1053
1065
  },
1054
1066
  {
1055
- title: i18nLazyString(UIStrings.emulateAutoDarkMode),
1067
+ title: i18nLazyString(UIStrings.disableEmulateAutoDarkMode),
1056
1068
  text: i18nLazyString(UIStrings.disabledDarkMode),
1057
1069
  value: 'disabled',
1058
1070
  },
@@ -1490,13 +1490,6 @@
1490
1490
  styleRules.push('* { min-width: 0; min-height: 0; }');
1491
1491
  }
1492
1492
 
1493
- if (majorVersion <= 51) {
1494
- // Support for quirky border-image behavior (<M51), see:
1495
- // https://bugs.chromium.org/p/chromium/issues/detail?id=559258
1496
- styleRules.push('.cm-breakpoint .CodeMirror-linenumber { border-style: solid !important; }');
1497
- styleRules.push(
1498
- '.cm-breakpoint.cm-breakpoint-conditional .CodeMirror-linenumber { border-style: solid !important; }');
1499
- }
1500
1493
  if (majorVersion <= 71) {
1501
1494
  styleRules.push(
1502
1495
  '.coverage-toolbar-container, .animation-timeline-toolbar-container, .computed-properties { flex-basis: auto; }');
@@ -3,6 +3,9 @@
3
3
  // found in the LICENSE file.
4
4
  import '../shell/shell.js';
5
5
  import './devtools_app-meta-files.js';
6
+
7
+ import * as Main from '../main/main.js';
6
8
  import * as Startup from '../startup/startup.js';
7
9
 
10
+ new Main.MainImpl.MainImpl();
8
11
  Startup.RuntimeInstantiator.startApplication('devtools_app');
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "modules" : [
3
3
  { "name": "panels/lighthouse" }
4
- ],
5
- "extends": "shell"
4
+ ]
6
5
  }
@@ -86,9 +86,7 @@ export class CSSFormatter {
86
86
  if (startLine !== this.lastLine) {
87
87
  this.state.eatWhitespace = true;
88
88
  }
89
- // The css- prefix is optional, as we override that in the tokenizer defined
90
- // in CodeMirrorTextEditor.js. In a worker context, we don't use the prefix.
91
- if (type && (/^(css-)?property/.test(type) || /^(css-)?variable-2/.test(type)) && !this.state.inPropertyValue) {
89
+ if (type && (/^property/.test(type) || /^variable-2/.test(type)) && !this.state.inPropertyValue) {
92
90
  this.state.seenProperty = true;
93
91
  }
94
92
  this.lastLine = startLine;
@@ -9,7 +9,5 @@ export const enum FormatterActions {
9
9
  JAVASCRIPT_OUTLINE = 'javaScriptOutline',
10
10
  JAVASCRIPT_IDENTIFIERS = 'javaScriptIdentifiers',
11
11
  EVALUATE_JAVASCRIPT_SUBSTRING = 'evaluatableJavaScriptSubstring',
12
- FIND_LAST_EXPRESSION = 'findLastExpression',
13
- FIND_LAST_FUNCTION_CALL = 'findLastFunctionCall',
14
12
  ARGUMENTS_LIST = 'argumentsList',
15
13
  }
@@ -230,55 +230,6 @@ export function format(
230
230
  return result;
231
231
  }
232
232
 
233
- export function findLastFunctionCall(content: string): {
234
- baseExpression: string,
235
- receiver: string,
236
- argumentIndex: number,
237
- functionName: string,
238
- }|null {
239
- if (content.length > 10000) {
240
- return null;
241
- }
242
- try {
243
- const tokenizer = Acorn.tokenizer(content, {ecmaVersion: ECMA_VERSION});
244
- while (tokenizer.getToken().type !== Acorn.tokTypes.eof) {
245
- }
246
- } catch (e) {
247
- return null;
248
- }
249
-
250
- const suffix = '000)';
251
- const base = _lastCompleteExpression(content, suffix, new Set(['CallExpression', 'NewExpression']));
252
- if (!base) {
253
- return null;
254
- }
255
- if (base.baseNode.type !== 'CallExpression' && base.baseNode.type !== 'NewExpression') {
256
- return null;
257
- }
258
- const callee = base.baseNode['callee'];
259
-
260
- let functionName = '';
261
- const functionProperty = callee.type === 'Identifier' ? callee : (callee as Acorn.ESTree.MemberExpression).property;
262
- if (functionProperty) {
263
- if (functionProperty.type === 'Identifier') {
264
- functionName = functionProperty.name;
265
- } else if (functionProperty.type === 'Literal') {
266
- functionName = (functionProperty.value as string);
267
- }
268
- }
269
-
270
- const argumentIndex = base.baseNode['arguments'].length - 1;
271
- const baseExpression =
272
- `(${base.baseExpression.substring(callee.start - base.baseNode.start, callee.end - base.baseNode.start)})`;
273
- let receiver = '(function(){return this})()';
274
- if (callee.type === 'MemberExpression') {
275
- const receiverBase = callee['object'];
276
- receiver =
277
- base.baseExpression.substring(receiverBase.start - base.baseNode.start, receiverBase.end - base.baseNode.start);
278
- }
279
- return {baseExpression, receiver, argumentIndex, functionName};
280
- }
281
-
282
233
  export function argumentsList(content: string): string[] {
283
234
  if (content.length > 10000) {
284
235
  return [];
@@ -349,77 +300,6 @@ export function argumentsList(content: string): string[] {
349
300
  }
350
301
  }
351
302
 
352
- export function findLastExpression(content: string): string|null {
353
- if (content.length > 10000) {
354
- return null;
355
- }
356
- try {
357
- const tokenizer = Acorn.tokenizer(content, {ecmaVersion: ECMA_VERSION});
358
- while (tokenizer.getToken().type !== Acorn.tokTypes.eof) {
359
- }
360
- } catch (e) {
361
- return null;
362
- }
363
-
364
- const suffix = '.DEVTOOLS';
365
- try {
366
- Acorn.parse(content + suffix, {ecmaVersion: ECMA_VERSION});
367
- } catch (parseError) {
368
- // If this is an invalid location for a '.', don't attempt to give autocomplete
369
- if (parseError.message.startsWith('Unexpected token') && parseError.pos === content.length) {
370
- return null;
371
- }
372
- }
373
- const base = _lastCompleteExpression(content, suffix, new Set(['MemberExpression', 'Identifier']));
374
- if (base) {
375
- return base.baseExpression;
376
- }
377
- return null;
378
- }
379
-
380
- // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
381
- // eslint-disable-next-line @typescript-eslint/naming-convention
382
- export function _lastCompleteExpression(content: string, suffix: string, types: Set<string>): {
383
- baseNode: Acorn.ESTree.Node,
384
- baseExpression: string,
385
- }|null {
386
- let ast: Acorn.ESTree.Node|null = null;
387
- let parsedContent = '';
388
- for (let i = 0; i < content.length; i++) {
389
- try {
390
- // Wrap content in paren to successfully parse object literals
391
- parsedContent = content[i] === '{' ? `(${content.substring(i)})${suffix}` : `${content.substring(i)}${suffix}`;
392
- ast = (Acorn.parse(parsedContent, {ecmaVersion: ECMA_VERSION}) as Acorn.ESTree.Node);
393
- break;
394
- } catch (e) {
395
- }
396
- }
397
- if (!ast) {
398
- return null;
399
- }
400
- const astEnd = ast.end;
401
- let baseNode: Acorn.ESTree.Node|null = null;
402
- const walker = new ESTreeWalker(node => {
403
- if (baseNode || node.end < astEnd) {
404
- return ESTreeWalker.SkipSubtree;
405
- }
406
- if (types.has(node.type)) {
407
- baseNode = node;
408
- }
409
- return;
410
- });
411
- walker.walk(ast);
412
- if (!baseNode) {
413
- return null;
414
- }
415
- let baseExpression =
416
- parsedContent.substring((baseNode as Acorn.ESTree.Node).start, parsedContent.length - suffix.length);
417
- if (baseExpression.startsWith('{')) {
418
- baseExpression = `(${baseExpression})`;
419
- }
420
- return {baseNode, baseExpression};
421
- }
422
-
423
303
  (function disableLoggingForTest(): void {
424
304
  if (Root.Runtime.Runtime.queryParam('test')) {
425
305
  console.error = (): undefined => undefined;
@@ -2,12 +2,8 @@
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 '../../third_party/codemirror/package/addon/runmode/runmode-standalone.js';
6
- import '../../third_party/codemirror/package/mode/css/css.js';
7
- import '../../third_party/codemirror/package/mode/xml/xml.js';
8
- import '../../third_party/codemirror/package/mode/javascript/javascript.js';
9
-
10
5
  import * as Platform from '../../core/platform/platform.js';
6
+
11
7
  import * as FormatterWorker from './formatter_worker.js';
12
8
 
13
9
  import {FormatterActions} from './FormatterActions.js';
@@ -38,12 +34,6 @@ self.onmessage = function(event: MessageEvent): void {
38
34
  case FormatterActions.EVALUATE_JAVASCRIPT_SUBSTRING:
39
35
  self.postMessage(FormatterWorker.FormatterWorker.evaluatableJavaScriptSubstring(params.content));
40
36
  break;
41
- case FormatterActions.FIND_LAST_EXPRESSION:
42
- self.postMessage(FormatterWorker.FormatterWorker.findLastExpression(params.content));
43
- break;
44
- case FormatterActions.FIND_LAST_FUNCTION_CALL:
45
- self.postMessage(FormatterWorker.FormatterWorker.findLastFunctionCall(params.content));
46
- break;
47
37
  case FormatterActions.ARGUMENTS_LIST:
48
38
  self.postMessage(FormatterWorker.FormatterWorker.argumentsList(params.content));
49
39
  break;
@@ -2,6 +2,11 @@
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 '../../third_party/codemirror/package/addon/runmode/runmode-standalone.js';
6
+ import '../../third_party/codemirror/package/mode/css/css.js';
7
+ import '../../third_party/codemirror/package/mode/xml/xml.js';
8
+ import '../../third_party/codemirror/package/mode/javascript/javascript.js';
9
+
5
10
  import * as CSSFormatter from './CSSFormatter.js';
6
11
  import * as CSSRuleParser from './CSSRuleParser.js';
7
12
  import * as FormattedContentBuilder from './FormattedContentBuilder.js';