chrome-devtools-frontend 1.0.947377 → 1.0.948295

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 (97) hide show
  1. package/config/gni/all_devtools_files.gni +1 -6
  2. package/config/gni/devtools_grd_files.gni +5 -6
  3. package/config/gni/devtools_image_files.gni +1 -0
  4. package/front_end/.eslintrc.js +1 -0
  5. package/front_end/Images/src/circled_backslash_icon.svg +3 -0
  6. package/front_end/core/host/UserMetrics.ts +1 -1
  7. package/front_end/core/i18n/locales/en-US.json +17 -14
  8. package/front_end/core/i18n/locales/en-XL.json +17 -14
  9. package/front_end/core/platform/platform.ts +0 -2
  10. package/front_end/core/platform/string-utilities.ts +14 -1
  11. package/front_end/core/platform/utilities.ts +0 -29
  12. package/front_end/core/root/Runtime.ts +4 -207
  13. package/front_end/core/sdk/Cookie.ts +0 -21
  14. package/front_end/core/sdk/sdk-legacy.ts +0 -3
  15. package/front_end/entrypoints/devtools_app/{devtools_app-meta-files.ts → devtools_app.ts} +9 -2
  16. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +2 -1
  17. package/front_end/entrypoints/js_app/{JsMain.ts → js_app.ts} +5 -1
  18. package/front_end/entrypoints/main/MainImpl.ts +0 -1
  19. package/front_end/entrypoints/ndb_app/{ndb_app.js → ndb_app.ts} +0 -2
  20. package/front_end/entrypoints/node_app/node_app.ts +1 -3
  21. package/front_end/entrypoints/shell/{shell.js → shell.ts} +0 -2
  22. package/front_end/entrypoints/worker_app/worker_app.ts +1 -3
  23. package/front_end/legacy/legacy-defs.d.ts +0 -4
  24. package/front_end/legacy_test_runner/test_runner/TestRunner.js +35 -59
  25. package/front_end/models/issues_manager/CorsIssue.ts +15 -15
  26. package/front_end/models/issues_manager/descriptions/{corsInsecurePrivateNetworkPreflight.md → corsPreflightAllowPrivateNetworkError.md} +1 -1
  27. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +3 -1
  28. package/front_end/panels/application/BackForwardCacheStrings.ts +1 -5
  29. package/front_end/panels/application/BackForwardCacheView.ts +150 -58
  30. package/front_end/panels/application/ResourcesPanel.ts +0 -42
  31. package/front_end/panels/application/application-legacy.ts +0 -3
  32. package/front_end/panels/application/application-meta.ts +0 -13
  33. package/front_end/panels/application/backForwardCacheView.css +44 -6
  34. package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
  35. package/front_end/panels/application/components/OriginTrialTreeView.ts +3 -3
  36. package/front_end/panels/application/components/StackTrace.ts +1 -1
  37. package/front_end/panels/coverage/CoverageView.ts +1 -1
  38. package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -0
  39. package/front_end/panels/css_overview/cssOverviewCompletedView.css +1 -1
  40. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +2 -1
  41. package/front_end/panels/elements/ElementsPanel.ts +9 -1
  42. package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
  43. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -1
  44. package/front_end/panels/issues/CorsIssueDetailsView.ts +20 -8
  45. package/front_end/panels/network/NetworkWaterfallColumn.ts +2 -0
  46. package/front_end/panels/profiler/CPUProfileFlameChart.ts +3 -1
  47. package/front_end/panels/profiler/ProfileDataGrid.ts +2 -1
  48. package/front_end/panels/settings/components/SyncSection.ts +2 -2
  49. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +46 -46
  50. package/front_end/panels/timeline/TimelineTreeView.ts +2 -1
  51. package/front_end/ui/components/diff_view/DiffView.ts +4 -4
  52. package/front_end/ui/components/helpers/component-server-setup.ts +1 -12
  53. package/front_end/ui/components/helpers/helpers.ts +0 -2
  54. package/front_end/ui/components/icon_button/IconButton.ts +1 -1
  55. package/front_end/ui/components/issue_counter/IssueCounter.ts +2 -2
  56. package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +3 -3
  57. package/front_end/ui/components/markdown_view/MarkdownView.ts +4 -4
  58. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +98 -0
  59. package/front_end/ui/components/panel_feedback/panel_feedback.ts +1 -0
  60. package/front_end/ui/components/panel_feedback/previewToggle.css +24 -0
  61. package/front_end/ui/components/report_view/ReportView.ts +22 -0
  62. package/front_end/ui/components/report_view/reportSection.css +20 -0
  63. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
  64. package/front_end/ui/components/settings/SettingCheckbox.ts +2 -2
  65. package/front_end/ui/components/text_editor/config.ts +4 -3
  66. package/front_end/ui/components/text_editor/javascript.ts +8 -4
  67. package/front_end/ui/components/text_prompt/TextPrompt.ts +2 -2
  68. package/front_end/ui/legacy/GlassPane.ts +1 -1
  69. package/front_end/ui/legacy/SearchableView.ts +2 -1
  70. package/front_end/ui/legacy/Treeoutline.ts +1 -1
  71. package/front_end/ui/legacy/Widget.ts +1 -1
  72. package/front_end/ui/legacy/XWidget.ts +0 -5
  73. package/front_end/ui/legacy/components/inline_editor/CSSVarSwatch.ts +2 -2
  74. package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +1 -1
  75. package/front_end/ui/legacy/utils/append-style.ts +2 -13
  76. package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +7 -5
  77. package/package.json +2 -4
  78. package/scripts/build/build_inspector_overlay.py +15 -1
  79. package/scripts/build/rjsmin.py +84 -115
  80. package/scripts/eslint_rules/lib/lit_html_no_attribute_quotes.js +101 -0
  81. package/scripts/eslint_rules/lib/no_only_eslint_tests.js +53 -0
  82. package/scripts/eslint_rules/tests/.eslintrc.js +14 -0
  83. package/scripts/eslint_rules/tests/lit_html_no_attribute_quotes_test.js +45 -0
  84. package/scripts/eslint_rules/tests/no_only_eslint_tests_test.js +94 -0
  85. package/front_end/entrypoints/devtools_app/devtools_app.js +0 -11
  86. package/front_end/entrypoints/devtools_app/devtools_app.json +0 -4
  87. package/front_end/entrypoints/js_app/js_app.js +0 -12
  88. package/front_end/entrypoints/js_app/js_app.json +0 -3
  89. package/front_end/entrypoints/ndb_app/ndb_app.json +0 -4
  90. package/front_end/entrypoints/startup/RuntimeInstantiator.ts +0 -95
  91. package/front_end/entrypoints/startup/startup.ts +0 -9
  92. package/front_end/ui/components/helpers/get-stylesheet.ts +0 -45
  93. package/scripts/build/build_release_applications.py +0 -216
  94. package/scripts/build/modular_build.py +0 -184
  95. package/scripts/check_gn.js +0 -119
  96. package/scripts/json_validator/module.schema.json +0 -19
  97. package/scripts/json_validator/validate_module_json.js +0 -44
@@ -1,44 +0,0 @@
1
- // Copyright 2020 The Chromium Authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- const fs = require('fs');
6
- const path = require('path');
7
-
8
- const FRONTEND_PATH = path.resolve(__dirname, '..', '..', 'front_end');
9
-
10
- const modules = [];
11
- for (const dir of fs.readdirSync(FRONTEND_PATH)) {
12
- if (!fs.lstatSync(path.resolve(FRONTEND_PATH, dir)).isDirectory()) {
13
- continue;
14
- }
15
- if (fs.existsSync(path.resolve(FRONTEND_PATH, dir, 'module.json'))) {
16
- modules.push(dir);
17
- }
18
- }
19
-
20
- const Ajv = require('ajv');
21
- const ajv = new Ajv({schemaId: 'id'});
22
- // This seems to be the most widely supported version of the schema.
23
- ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json'));
24
-
25
- const schema = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'module.schema.json')));
26
- const validate = ajv.compile(schema);
27
-
28
- let totalErrors = 0;
29
- for (const module of modules) {
30
- const moduleObject = JSON.parse(fs.readFileSync(path.resolve(FRONTEND_PATH, module, 'module.json')));
31
- const valid = validate(moduleObject);
32
- if (!valid) {
33
- console.log('Issue with ./front_end/' + module + '/module.json:');
34
- totalErrors++;
35
- validate.errors.sort((a, b) => b.dataPath.length - a.dataPath.length);
36
- const error = validate.errors[0];
37
- console.log(' ', error.dataPath, error.message, error.params);
38
- console.log('');
39
- }
40
- }
41
- if (totalErrors) {
42
- console.log('module.json errors:', totalErrors);
43
- }
44
- process.exit(totalErrors);