chrome-devtools-frontend 1.0.945884 → 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.
- package/.eslintrc.js +1 -0
- package/config/gni/all_devtools_files.gni +1 -20
- package/config/gni/devtools_grd_files.gni +9 -48
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/.eslintrc.js +6 -1
- package/front_end/Images/src/circled_backslash_icon.svg +3 -0
- package/front_end/core/host/InspectorFrontendHost.ts +0 -3
- package/front_end/core/host/InspectorFrontendHostAPI.ts +0 -1
- package/front_end/core/host/UserMetrics.ts +1 -23
- package/front_end/core/i18n/locales/en-US.json +41 -41
- package/front_end/core/i18n/locales/en-XL.json +41 -41
- package/front_end/core/platform/platform.ts +0 -2
- package/front_end/core/platform/string-utilities.ts +14 -1
- package/front_end/core/platform/utilities.ts +0 -29
- package/front_end/core/root/Runtime.ts +4 -212
- package/front_end/core/sdk/AccessibilityModel.ts +0 -2
- package/front_end/core/sdk/CSSProperty.ts +16 -11
- package/front_end/core/sdk/CSSRule.ts +0 -2
- package/front_end/core/sdk/Cookie.ts +0 -25
- package/front_end/core/sdk/EmulationModel.ts +0 -2
- package/front_end/core/sdk/HeapProfilerModel.ts +0 -2
- package/front_end/core/sdk/NetworkManager.ts +0 -3
- package/front_end/core/sdk/Resource.ts +0 -3
- package/front_end/core/sdk/ResourceTreeModel.ts +0 -3
- package/front_end/core/sdk/ServiceWorkerManager.ts +0 -2
- package/front_end/core/sdk/sdk-legacy.ts +0 -3
- package/front_end/devtools_compatibility.js +1 -8
- package/front_end/entrypoints/devtools_app/{devtools_app-meta-files.ts → devtools_app.ts} +9 -2
- package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +1 -3
- package/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -2
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +0 -120
- package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -11
- package/front_end/entrypoints/formatter_worker/formatter_worker.ts +5 -0
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +2 -1
- package/front_end/entrypoints/inspector/{inspector.js → inspector.ts} +0 -3
- package/front_end/entrypoints/js_app/{JsMain.ts → js_app.ts} +5 -1
- package/front_end/entrypoints/main/MainImpl.ts +0 -7
- package/front_end/entrypoints/ndb_app/{ndb_app.js → ndb_app.ts} +3 -2
- package/front_end/entrypoints/{node_main → node_app}/NodeConnectionsPanel.ts +1 -1
- package/front_end/entrypoints/{node_main → node_app}/NodeMain.ts +2 -4
- package/front_end/entrypoints/{node_main → node_app}/nodeConnectionsPanel.css +0 -0
- package/front_end/entrypoints/node_app/node_app.ts +79 -0
- package/front_end/entrypoints/shell/{shell-meta-files.ts → shell.ts} +7 -1
- package/front_end/entrypoints/worker_app/{worker_app.js → worker_app.ts} +6 -2
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/protocol.d.ts +12 -0
- package/front_end/legacy/legacy-defs.d.ts +0 -4
- package/front_end/legacy_test_runner/sources_test_runner/sources_test_runner.js +0 -1
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +35 -59
- package/front_end/models/bindings/CompilerScriptMapping.ts +0 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +4 -11
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/SASSSourceMapping.ts +0 -1
- package/front_end/models/emulation/DeviceModeModel.ts +0 -2
- package/front_end/models/formatter/FormatterWorkerPool.ts +0 -18
- package/front_end/models/issues_manager/CorsIssue.ts +17 -9
- package/front_end/models/issues_manager/descriptions/{corsInsecurePrivateNetworkPreflight.md → corsPreflightAllowPrivateNetworkError.md} +1 -1
- package/front_end/models/text_utils/CodeMirrorUtils.ts +6 -51
- package/front_end/models/text_utils/TextUtils.ts +1 -2
- package/front_end/models/text_utils/text_utils-legacy.ts +0 -5
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +3 -1
- package/front_end/panels/animation/AnimationTimeline.ts +0 -2
- package/front_end/panels/animation/AnimationUI.ts +0 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
- package/front_end/panels/application/BackForwardCacheStrings.ts +2 -5
- package/front_end/panels/application/BackForwardCacheView.ts +150 -58
- package/front_end/panels/application/ResourcesPanel.ts +0 -42
- package/front_end/panels/application/application-legacy.ts +0 -3
- package/front_end/panels/application/application-meta.ts +0 -13
- package/front_end/panels/application/backForwardCacheView.css +44 -6
- package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
- package/front_end/panels/application/components/OriginTrialTreeView.ts +3 -3
- package/front_end/panels/application/components/StackTrace.ts +1 -1
- package/front_end/panels/coverage/CoverageView.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewModel.ts +0 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +0 -7
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +0 -2
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -0
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +2 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -11
- package/front_end/panels/elements/ElementsPanel.ts +9 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +0 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -1
- package/front_end/panels/elements/elementsTreeOutline.css +0 -13
- package/front_end/panels/emulation/DeviceModeToolbar.ts +0 -16
- package/front_end/panels/issues/CorsIssueDetailsView.ts +18 -2
- package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -3
- package/front_end/panels/network/NetworkConfigView.ts +10 -0
- package/front_end/panels/network/NetworkItemView.ts +3 -0
- package/front_end/panels/network/NetworkWaterfallColumn.ts +2 -0
- package/front_end/panels/network/networkConfigView.css +5 -0
- package/front_end/panels/profiler/CPUProfileFlameChart.ts +3 -1
- package/front_end/panels/profiler/ProfileDataGrid.ts +2 -1
- package/front_end/panels/profiler/profilesPanel.css +1 -1
- package/front_end/panels/search/SearchView.ts +24 -4
- package/front_end/panels/settings/components/SyncSection.ts +2 -2
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +52 -50
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +0 -12
- package/front_end/panels/sources/CSSPlugin.ts +3 -0
- package/front_end/panels/sources/CoveragePlugin.ts +2 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +35 -7
- package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +3 -0
- package/front_end/panels/sources/ProfilePlugin.ts +3 -0
- package/front_end/panels/sources/UISourceCodeFrame.ts +11 -2
- package/front_end/panels/sources/sourcesView.css +0 -130
- package/front_end/panels/timeline/TimelineTreeView.ts +3 -1
- package/front_end/third_party/codemirror/codemirror-tsconfig.json +1 -25
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/java.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/json.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/php.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/wast.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/xml.js +1 -2
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1486 -1423
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -2
- package/front_end/third_party/codemirror.next/package.json +10 -9
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +168 -164
- package/front_end/third_party/lighthouse/locales/ar-XB.json +0 -3
- package/front_end/third_party/lighthouse/locales/ar.json +0 -3
- package/front_end/third_party/lighthouse/locales/bg.json +17 -20
- package/front_end/third_party/lighthouse/locales/ca.json +0 -3
- package/front_end/third_party/lighthouse/locales/cs.json +0 -3
- package/front_end/third_party/lighthouse/locales/da.json +16 -19
- package/front_end/third_party/lighthouse/locales/de.json +0 -3
- package/front_end/third_party/lighthouse/locales/el.json +0 -3
- package/front_end/third_party/lighthouse/locales/en-GB.json +19 -22
- package/front_end/third_party/lighthouse/locales/en-US.json +33 -3
- package/front_end/third_party/lighthouse/locales/en-XA.json +0 -3
- package/front_end/third_party/lighthouse/locales/en-XL.json +33 -3
- package/front_end/third_party/lighthouse/locales/es-419.json +17 -20
- package/front_end/third_party/lighthouse/locales/es.json +0 -3
- package/front_end/third_party/lighthouse/locales/fi.json +16 -19
- package/front_end/third_party/lighthouse/locales/fil.json +33 -36
- package/front_end/third_party/lighthouse/locales/fr.json +16 -19
- package/front_end/third_party/lighthouse/locales/he.json +16 -19
- package/front_end/third_party/lighthouse/locales/hi.json +0 -3
- package/front_end/third_party/lighthouse/locales/hr.json +16 -19
- package/front_end/third_party/lighthouse/locales/hu.json +16 -19
- package/front_end/third_party/lighthouse/locales/id.json +16 -19
- package/front_end/third_party/lighthouse/locales/it.json +37 -40
- package/front_end/third_party/lighthouse/locales/ja.json +16 -19
- package/front_end/third_party/lighthouse/locales/ko.json +16 -19
- package/front_end/third_party/lighthouse/locales/lt.json +17 -20
- package/front_end/third_party/lighthouse/locales/lv.json +0 -3
- package/front_end/third_party/lighthouse/locales/nl.json +16 -19
- package/front_end/third_party/lighthouse/locales/no.json +17 -20
- package/front_end/third_party/lighthouse/locales/pl.json +16 -19
- package/front_end/third_party/lighthouse/locales/pt-PT.json +37 -40
- package/front_end/third_party/lighthouse/locales/pt.json +16 -19
- package/front_end/third_party/lighthouse/locales/ro.json +0 -3
- package/front_end/third_party/lighthouse/locales/ru.json +16 -19
- package/front_end/third_party/lighthouse/locales/sk.json +0 -3
- package/front_end/third_party/lighthouse/locales/sl.json +0 -3
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +16 -19
- package/front_end/third_party/lighthouse/locales/sr.json +16 -19
- package/front_end/third_party/lighthouse/locales/sv.json +17 -20
- package/front_end/third_party/lighthouse/locales/ta.json +0 -3
- package/front_end/third_party/lighthouse/locales/te.json +0 -3
- package/front_end/third_party/lighthouse/locales/th.json +0 -3
- package/front_end/third_party/lighthouse/locales/tr.json +0 -3
- package/front_end/third_party/lighthouse/locales/uk.json +17 -20
- package/front_end/third_party/lighthouse/locales/vi.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh-HK.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh-TW.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh.json +0 -3
- package/front_end/third_party/lighthouse/report/bundle.d.ts +63 -61
- package/front_end/third_party/lighthouse/report/bundle.js +36 -7
- package/front_end/third_party/lighthouse/report-assets/report-generator.js +205 -192
- package/front_end/ui/components/diff_view/DiffView.ts +4 -4
- package/front_end/ui/components/helpers/component-server-setup.ts +1 -12
- package/front_end/ui/components/helpers/helpers.ts +0 -2
- package/front_end/ui/components/icon_button/IconButton.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +3 -3
- package/front_end/ui/components/markdown_view/MarkdownView.ts +4 -4
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +98 -0
- package/front_end/ui/components/panel_feedback/panel_feedback.ts +1 -0
- package/front_end/ui/components/panel_feedback/previewToggle.css +24 -0
- package/front_end/ui/components/report_view/ReportView.ts +22 -0
- package/front_end/ui/components/report_view/reportSection.css +20 -0
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
- package/front_end/ui/components/settings/SettingCheckbox.ts +2 -2
- package/front_end/ui/components/text_editor/config.ts +11 -9
- package/front_end/ui/components/text_editor/javascript.ts +34 -12
- package/front_end/ui/components/text_editor/theme.ts +1 -0
- package/front_end/ui/components/text_prompt/TextPrompt.ts +2 -2
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +10 -0
- package/front_end/ui/legacy/SearchableView.ts +2 -1
- package/front_end/ui/legacy/Treeoutline.ts +1 -1
- package/front_end/ui/legacy/Widget.ts +1 -1
- package/front_end/ui/legacy/XWidget.ts +0 -5
- package/front_end/ui/legacy/components/inline_editor/CSSVarSwatch.ts +2 -2
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -3
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +0 -1
- package/front_end/ui/legacy/components/object_ui/object_ui-legacy.ts +0 -8
- package/front_end/ui/legacy/components/object_ui/object_ui.ts +0 -4
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +40 -29
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +0 -211
- package/front_end/ui/legacy/legacy-legacy.ts +0 -6
- package/front_end/ui/legacy/legacy.ts +0 -2
- package/front_end/ui/legacy/tabbedPane.css +1 -1
- package/front_end/ui/legacy/themeColors.css +1 -1
- package/front_end/ui/legacy/utils/append-style.ts +2 -13
- package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +7 -5
- package/package.json +2 -4
- package/scripts/build/build_inspector_overlay.py +15 -1
- package/scripts/build/rjsmin.py +84 -115
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -4
- package/scripts/eslint_rules/lib/lit_html_no_attribute_quotes.js +101 -0
- package/scripts/eslint_rules/lib/no_only_eslint_tests.js +53 -0
- package/scripts/eslint_rules/tests/.eslintrc.js +14 -0
- package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +4 -0
- package/scripts/eslint_rules/tests/lit_html_no_attribute_quotes_test.js +45 -0
- package/scripts/eslint_rules/tests/no_only_eslint_tests_test.js +94 -0
- package/scripts/hosted_mode/server.js +17 -2
- package/front_end/entrypoints/devtools_app/devtools_app.js +0 -8
- package/front_end/entrypoints/devtools_app/devtools_app.json +0 -6
- package/front_end/entrypoints/inspector/inspector.json +0 -4
- package/front_end/entrypoints/js_app/js_app.js +0 -9
- package/front_end/entrypoints/js_app/js_app.json +0 -4
- package/front_end/entrypoints/ndb_app/ndb_app.json +0 -5
- package/front_end/entrypoints/node_app/node_app-meta.ts +0 -43
- package/front_end/entrypoints/node_app/node_app.js +0 -13
- package/front_end/entrypoints/node_app/node_app.json +0 -4
- package/front_end/entrypoints/node_main/node_main-meta.ts +0 -48
- package/front_end/entrypoints/node_main/node_main.ts +0 -11
- package/front_end/entrypoints/shell/shell.js +0 -13
- package/front_end/entrypoints/shell/shell.json +0 -5
- package/front_end/entrypoints/startup/RuntimeInstantiator.ts +0 -95
- package/front_end/entrypoints/startup/startup.ts +0 -9
- package/front_end/entrypoints/worker_app/worker_app.json +0 -4
- package/front_end/panels/lighthouse/module.json +0 -6
- package/front_end/third_party/lighthouse/report-assets/report.d.ts +0 -1
- package/front_end/third_party/lighthouse/report-assets/report.js +0 -233
- package/front_end/third_party/lighthouse/report-assets/standalone-template.html +0 -38
- package/front_end/ui/components/helpers/get-stylesheet.ts +0 -45
- package/front_end/ui/legacy/TextEditor.ts +0 -82
- package/front_end/ui/legacy/components/object_ui/JavaScriptAutocomplete.ts +0 -836
- package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +0 -1676
- package/front_end/ui/legacy/components/text_editor/TextEditorAutocompleteController.ts +0 -586
- package/front_end/ui/legacy/components/text_editor/autocompleteTooltip.css +0 -20
- package/front_end/ui/legacy/components/text_editor/cm_modes.ts +0 -23
- package/front_end/ui/legacy/components/text_editor/cmdevtools.css +0 -995
- package/front_end/ui/legacy/components/text_editor/module.json +0 -7
- package/front_end/ui/legacy/components/text_editor/text_editor-legacy.ts +0 -33
- package/front_end/ui/legacy/components/text_editor/text_editor.ts +0 -13
- package/scripts/build/build_release_applications.py +0 -216
- package/scripts/build/modular_build.py +0 -184
- package/scripts/check_gn.js +0 -119
- package/scripts/json_validator/module.schema.json +0 -19
- package/scripts/json_validator/validate_module_json.js +0 -44
|
@@ -1019,7 +1019,7 @@
|
|
|
1019
1019
|
"entrypoints/inspector_main/RenderingOptions.ts | showsLayerBordersOrangeoliveAnd": {
|
|
1020
1020
|
"message": "Ŝh́ôẃŝ ĺâýêŕ b̂ór̂d́êŕŝ (ór̂án̂ǵê/ól̂ív̂é) âńd̂ t́îĺêś (ĉýâń)."
|
|
1021
1021
|
},
|
|
1022
|
-
"entrypoints/js_app/
|
|
1022
|
+
"entrypoints/js_app/js_app.ts | main": {
|
|
1023
1023
|
"message": "M̂áîń"
|
|
1024
1024
|
},
|
|
1025
1025
|
"entrypoints/main/main-meta.ts | asAuthored": {
|
|
@@ -1208,40 +1208,40 @@
|
|
|
1208
1208
|
"entrypoints/main/MainImpl.ts | undockIntoSeparateWindow": {
|
|
1209
1209
|
"message": "Ûńd̂óĉḱ îńt̂ó ŝép̂ár̂át̂é ŵín̂d́ôẃ"
|
|
1210
1210
|
},
|
|
1211
|
-
"entrypoints/node_app/node_app
|
|
1212
|
-
"message": "
|
|
1211
|
+
"entrypoints/node_app/node_app.ts | connection": {
|
|
1212
|
+
"message": "Ĉón̂ńêćt̂íôń"
|
|
1213
1213
|
},
|
|
1214
|
-
"entrypoints/node_app/node_app
|
|
1214
|
+
"entrypoints/node_app/node_app.ts | networkTitle": {
|
|
1215
1215
|
"message": "N̂ód̂é"
|
|
1216
1216
|
},
|
|
1217
|
-
"entrypoints/
|
|
1218
|
-
"message": "Ĉón̂ńêćt̂íôń"
|
|
1219
|
-
},
|
|
1220
|
-
"entrypoints/node_main/node_main-meta.ts | node": {
|
|
1217
|
+
"entrypoints/node_app/node_app.ts | node": {
|
|
1221
1218
|
"message": "n̂ód̂é"
|
|
1222
1219
|
},
|
|
1223
|
-
"entrypoints/
|
|
1220
|
+
"entrypoints/node_app/node_app.ts | showConnection": {
|
|
1224
1221
|
"message": "Ŝh́ôẃ Ĉón̂ńêćt̂íôń"
|
|
1225
1222
|
},
|
|
1226
|
-
"entrypoints/
|
|
1223
|
+
"entrypoints/node_app/node_app.ts | showNode": {
|
|
1224
|
+
"message": "N̂ód̂é"
|
|
1225
|
+
},
|
|
1226
|
+
"entrypoints/node_app/NodeConnectionsPanel.ts | addConnection": {
|
|
1227
1227
|
"message": "Âd́d̂ ćôńn̂éĉt́îón̂"
|
|
1228
1228
|
},
|
|
1229
|
-
"entrypoints/
|
|
1229
|
+
"entrypoints/node_app/NodeConnectionsPanel.ts | networkAddressEgLocalhost": {
|
|
1230
1230
|
"message": "N̂ét̂ẃôŕk̂ ád̂d́r̂éŝś (ê.ǵ. l̂óĉál̂h́ôśt̂:9229)"
|
|
1231
1231
|
},
|
|
1232
|
-
"entrypoints/
|
|
1232
|
+
"entrypoints/node_app/NodeConnectionsPanel.ts | noConnectionsSpecified": {
|
|
1233
1233
|
"message": "N̂ó ĉón̂ńêćt̂íôńŝ śp̂éĉíf̂íêd́"
|
|
1234
1234
|
},
|
|
1235
|
-
"entrypoints/
|
|
1235
|
+
"entrypoints/node_app/NodeConnectionsPanel.ts | nodejsDebuggingGuide": {
|
|
1236
1236
|
"message": "N̂ód̂é.ĵś d̂éb̂úĝǵîńĝ ǵûíd̂é"
|
|
1237
1237
|
},
|
|
1238
|
-
"entrypoints/
|
|
1238
|
+
"entrypoints/node_app/NodeConnectionsPanel.ts | specifyNetworkEndpointAnd": {
|
|
1239
1239
|
"message": "Ŝṕêćîf́ŷ ńêt́ŵór̂ḱ êńd̂ṕôín̂t́ âńd̂ D́êv́T̂óôĺŝ ẃîĺl̂ ćôńn̂éĉt́ t̂ó ît́ âút̂óm̂át̂íĉál̂ĺŷ. Ŕêád̂ {PH1} t́ô ĺêár̂ń m̂ór̂é."
|
|
1240
1240
|
},
|
|
1241
|
-
"entrypoints/
|
|
1241
|
+
"entrypoints/node_app/NodeMain.ts | main": {
|
|
1242
1242
|
"message": "M̂áîń"
|
|
1243
1243
|
},
|
|
1244
|
-
"entrypoints/
|
|
1244
|
+
"entrypoints/node_app/NodeMain.ts | nodejsS": {
|
|
1245
1245
|
"message": "N̂ód̂é.ĵś: {PH1}"
|
|
1246
1246
|
},
|
|
1247
1247
|
"entrypoints/worker_app/WorkerMain.ts | main": {
|
|
@@ -1340,8 +1340,8 @@
|
|
|
1340
1340
|
"models/issues_manager/CorsIssue.ts | CORS": {
|
|
1341
1341
|
"message": "Ĉŕôśŝ-Ór̂íĝín̂ Ŕêśôúr̂ćê Śĥár̂ín̂ǵ (CORS)"
|
|
1342
1342
|
},
|
|
1343
|
-
"models/issues_manager/CorsIssue.ts |
|
|
1344
|
-
"message": "
|
|
1343
|
+
"models/issues_manager/CorsIssue.ts | corsPrivateNetworkAccess": {
|
|
1344
|
+
"message": "P̂ŕîv́ât́ê Ńêt́ŵór̂ḱ Âćĉéŝś"
|
|
1345
1345
|
},
|
|
1346
1346
|
"models/issues_manager/CrossOriginEmbedderPolicyIssue.ts | coopAndCoep": {
|
|
1347
1347
|
"message": "ĈÓÔṔ âńd̂ ĆÔÉP̂"
|
|
@@ -2498,9 +2498,6 @@
|
|
|
2498
2498
|
"panels/application/BackForwardCacheStrings.ts | notMainFrame": {
|
|
2499
2499
|
"message": "N̂áv̂íĝát̂íôń ĥáp̂ṕêńêd́ îń â f́r̂ám̂é ôt́ĥér̂ t́ĥán̂ t́ĥé m̂áîń f̂ŕâḿê."
|
|
2500
2500
|
},
|
|
2501
|
-
"panels/application/BackForwardCacheStrings.ts | optInUnloadHeaderNotPresent": {
|
|
2502
|
-
"message": "T̂h́ê ṕâǵê h́âś ûńl̂óâd́ ĥán̂d́l̂ér̂ ẃît́ĥóût́ t̂h́ê b́âćk̂/f́ôŕŵár̂d́ ĉáĉh́ê óp̂t́-îń ĥéâd́êŕ."
|
|
2503
|
-
},
|
|
2504
2501
|
"panels/application/BackForwardCacheStrings.ts | outstandingIndexedDBTransaction": {
|
|
2505
2502
|
"message": "P̂áĝé ŵít̂h́ ôńĝóîńĝ ín̂d́êx́êd́ D̂B́ t̂ŕâńŝáĉt́îón̂ś âŕê ńôt́ ĉúr̂ŕêńt̂ĺŷ él̂íĝíb̂ĺê f́ôŕ b̂áĉḱ/f̂ór̂ẃâŕd̂ ćâćĥé."
|
|
2506
2503
|
},
|
|
@@ -2645,20 +2642,20 @@
|
|
|
2645
2642
|
"panels/application/BackForwardCacheView.ts | backForwardCacheTitle": {
|
|
2646
2643
|
"message": "B̂áĉḱ/f̂ór̂ẃâŕd̂ ćâćĥé"
|
|
2647
2644
|
},
|
|
2648
|
-
"panels/application/BackForwardCacheView.ts | bfcacheStatus": {
|
|
2649
|
-
"message": "B̂áĉḱ/f̂ór̂ẃâŕd̂ ćâćĥé Ŝt́ât́ûś"
|
|
2650
|
-
},
|
|
2651
2645
|
"panels/application/BackForwardCacheView.ts | circumstantial": {
|
|
2652
2646
|
"message": "N̂ót̂ Áĉt́îón̂áb̂ĺê"
|
|
2653
2647
|
},
|
|
2654
2648
|
"panels/application/BackForwardCacheView.ts | circumstantialExplanation": {
|
|
2655
2649
|
"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̂áĝé."
|
|
2656
2650
|
},
|
|
2651
|
+
"panels/application/BackForwardCacheView.ts | learnMore": {
|
|
2652
|
+
"message": "L̂éâŕn̂ ḿôŕê: b́âćk̂/f́ôŕŵár̂d́ ĉáĉh́ê él̂íĝíb̂íl̂ít̂ý"
|
|
2653
|
+
},
|
|
2657
2654
|
"panels/application/BackForwardCacheView.ts | mainFrame": {
|
|
2658
2655
|
"message": "M̂áîń F̂ŕâḿê"
|
|
2659
2656
|
},
|
|
2660
2657
|
"panels/application/BackForwardCacheView.ts | normalNavigation": {
|
|
2661
|
-
"message": "N̂ór̂ḿâ
|
|
2658
|
+
"message": "N̂ót̂ śêŕv̂éd̂ f́r̂óm̂ b́âćk̂/f́ôŕŵár̂d́ ĉáĉh́ê: t́ô t́r̂íĝǵêŕ b̂áĉḱ/f̂ór̂ẃâŕd̂ ćâćĥé, ûśê Ćĥŕôḿê'ś b̂áĉḱ/f̂ór̂ẃâŕd̂ b́ût́t̂ón̂ś, ôŕ ûśê t́ĥé t̂éŝt́ b̂út̂t́ôń b̂él̂óŵ t́ô áût́ôḿât́îćâĺl̂ý n̂áv̂íĝát̂é âẃâý âńd̂ b́âćk̂."
|
|
2662
2659
|
},
|
|
2663
2660
|
"panels/application/BackForwardCacheView.ts | pageSupportNeeded": {
|
|
2664
2661
|
"message": "Âćt̂íôńâb́l̂é"
|
|
@@ -2667,10 +2664,13 @@
|
|
|
2667
2664
|
"message": "T̂h́êśê ŕêáŝón̂ś âŕê áĉt́îón̂áb̂ĺê í.ê. t́ĥéŷ ćâń b̂é ĉĺêán̂éd̂ úp̂ t́ô ḿâḱê t́ĥé p̂áĝé êĺîǵîb́l̂é f̂ór̂ b́âćk̂/f́ôŕŵár̂d́ ĉáĉh́ê."
|
|
2668
2665
|
},
|
|
2669
2666
|
"panels/application/BackForwardCacheView.ts | restoredFromBFCache": {
|
|
2670
|
-
"message": "
|
|
2667
|
+
"message": "Ŝúĉćêśŝf́ûĺl̂ý ŝér̂v́êd́ f̂ŕôḿ b̂áĉḱ/f̂ór̂ẃâŕd̂ ćâćĥé."
|
|
2668
|
+
},
|
|
2669
|
+
"panels/application/BackForwardCacheView.ts | runningTest": {
|
|
2670
|
+
"message": "R̂ún̂ńîńĝ t́êśt̂"
|
|
2671
2671
|
},
|
|
2672
2672
|
"panels/application/BackForwardCacheView.ts | runTest": {
|
|
2673
|
-
"message": "
|
|
2673
|
+
"message": "T̂éŝt́ b̂áĉḱ/f̂ór̂ẃâŕd̂ ćâćĥé"
|
|
2674
2674
|
},
|
|
2675
2675
|
"panels/application/BackForwardCacheView.ts | supportPending": {
|
|
2676
2676
|
"message": "P̂én̂d́îńĝ Śûṕp̂ór̂t́"
|
|
@@ -2682,10 +2682,10 @@
|
|
|
2682
2682
|
"message": "ûńâv́âíl̂áb̂ĺê"
|
|
2683
2683
|
},
|
|
2684
2684
|
"panels/application/BackForwardCacheView.ts | unknown": {
|
|
2685
|
-
"message": "
|
|
2685
|
+
"message": "Ûńk̂ńôẃn̂ Śt̂át̂úŝ"
|
|
2686
2686
|
},
|
|
2687
2687
|
"panels/application/BackForwardCacheView.ts | url": {
|
|
2688
|
-
"message": "ÛŔL
|
|
2688
|
+
"message": "ÛŔL̂:"
|
|
2689
2689
|
},
|
|
2690
2690
|
"panels/application/BackgroundServiceView.ts | backgroundFetch": {
|
|
2691
2691
|
"message": "B̂áĉḱĝŕôún̂d́ F̂ét̂ćĥ"
|
|
@@ -6383,6 +6383,9 @@
|
|
|
6383
6383
|
"panels/network/NetworkConfigView.ts | caching": {
|
|
6384
6384
|
"message": "Ĉáĉh́îńĝ"
|
|
6385
6385
|
},
|
|
6386
|
+
"panels/network/NetworkConfigView.ts | clientHintsStatusText": {
|
|
6387
|
+
"message": "Ûśêŕ âǵêńt̂ úp̂d́ât́êd́."
|
|
6388
|
+
},
|
|
6386
6389
|
"panels/network/NetworkConfigView.ts | custom": {
|
|
6387
6390
|
"message": "Ĉúŝt́ôḿ..."
|
|
6388
6391
|
},
|
|
@@ -11402,6 +11405,9 @@
|
|
|
11402
11405
|
"ui/components/panel_feedback/PanelFeedback.ts | videoAndDocumentation": {
|
|
11403
11406
|
"message": "V̂íd̂éô án̂d́ d̂óĉúm̂én̂t́ât́îón̂"
|
|
11404
11407
|
},
|
|
11408
|
+
"ui/components/panel_feedback/PreviewToggle.ts | previewTextFeedbackLink": {
|
|
11409
|
+
"message": "Ŝén̂d́ ûś ŷóûŕ f̂éêd́b̂áĉḱ."
|
|
11410
|
+
},
|
|
11405
11411
|
"ui/components/request_link_icon/RequestLinkIcon.ts | clickToShowRequestInTheNetwork": {
|
|
11406
11412
|
"message": "Ĉĺîćk̂ t́ô óp̂én̂ t́ĥé n̂ét̂ẃôŕk̂ ṕâńêĺ âńd̂ śĥóŵ ŕêq́ûéŝt́ f̂ór̂ ÚR̂Ĺ: {url}"
|
|
11407
11413
|
},
|
|
@@ -11690,15 +11696,6 @@
|
|
|
11690
11696
|
"ui/legacy/components/object_ui/CustomPreviewComponent.ts | showAsJavascriptObject": {
|
|
11691
11697
|
"message": "Ŝh́ôẃ âś Ĵáv̂áŜćr̂íp̂t́ ôb́ĵéĉt́"
|
|
11692
11698
|
},
|
|
11693
|
-
"ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | keys": {
|
|
11694
|
-
"message": "K̂éŷś"
|
|
11695
|
-
},
|
|
11696
|
-
"ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | keywords": {
|
|
11697
|
-
"message": "k̂éŷẃôŕd̂ś"
|
|
11698
|
-
},
|
|
11699
|
-
"ui/legacy/components/object_ui/JavaScriptAutocomplete.ts | lexicalScopeVariables": {
|
|
11700
|
-
"message": "L̂éx̂íĉál̂ śĉóp̂é v̂ár̂íâb́l̂éŝ"
|
|
11701
|
-
},
|
|
11702
11699
|
"ui/legacy/components/object_ui/ObjectPropertiesSection.ts | collapseChildren": {
|
|
11703
11700
|
"message": "Ĉól̂ĺâṕŝé ĉh́îĺd̂ŕêń"
|
|
11704
11701
|
},
|
|
@@ -11963,9 +11960,6 @@
|
|
|
11963
11960
|
"ui/legacy/components/source_frame/XMLView.ts | find": {
|
|
11964
11961
|
"message": "F̂ín̂d́"
|
|
11965
11962
|
},
|
|
11966
|
-
"ui/legacy/components/text_editor/CodeMirrorTextEditor.ts | codeEditor": {
|
|
11967
|
-
"message": "Ĉód̂é êd́ît́ôŕ"
|
|
11968
|
-
},
|
|
11969
11963
|
"ui/legacy/components/utils/ImagePreview.ts | currentSource": {
|
|
11970
11964
|
"message": "Ĉúr̂ŕêńt̂ śôúr̂ćê:"
|
|
11971
11965
|
},
|
|
@@ -12074,6 +12068,12 @@
|
|
|
12074
12068
|
"ui/legacy/InspectorView.ts | drawer": {
|
|
12075
12069
|
"message": "T̂óôĺ d̂ŕâẃêŕ"
|
|
12076
12070
|
},
|
|
12071
|
+
"ui/legacy/InspectorView.ts | drawerHidden": {
|
|
12072
|
+
"message": "D̂ŕâẃêŕ ĥíd̂d́êń"
|
|
12073
|
+
},
|
|
12074
|
+
"ui/legacy/InspectorView.ts | drawerShown": {
|
|
12075
|
+
"message": "D̂ŕâẃêŕ ŝh́ôẃn̂"
|
|
12076
|
+
},
|
|
12077
12077
|
"ui/legacy/InspectorView.ts | mainToolbar": {
|
|
12078
12078
|
"message": "M̂áîń t̂óôĺb̂ár̂"
|
|
12079
12079
|
},
|
|
@@ -28,8 +28,6 @@
|
|
|
28
28
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
import './utilities.js';
|
|
32
|
-
|
|
33
31
|
import * as ArrayUtilities from './array-utilities.js';
|
|
34
32
|
import * as DateUtilities from './date-utilities.js';
|
|
35
33
|
import * as DevToolsPath from './DevToolsPath.js';
|
|
@@ -450,7 +450,7 @@ export const createSearchRegex = function(query: string, caseSensitive: boolean,
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
if (!regexObject) {
|
|
453
|
-
regexObject =
|
|
453
|
+
regexObject = createPlainTextSearchRegex(query, regexFlags);
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
return regexObject;
|
|
@@ -602,3 +602,16 @@ export const findUnclosedCssQuote = function(str: string): string {
|
|
|
602
602
|
}
|
|
603
603
|
return unmatchedQuote;
|
|
604
604
|
};
|
|
605
|
+
|
|
606
|
+
export const createPlainTextSearchRegex = function(query: string, flags?: string): RegExp {
|
|
607
|
+
// This should be kept the same as the one in StringUtil.cpp.
|
|
608
|
+
let regex = '';
|
|
609
|
+
for (let i = 0; i < query.length; ++i) {
|
|
610
|
+
const c = query.charAt(i);
|
|
611
|
+
if (regexSpecialCharacters().indexOf(c) !== -1) {
|
|
612
|
+
regex += '\\';
|
|
613
|
+
}
|
|
614
|
+
regex += c;
|
|
615
|
+
}
|
|
616
|
+
return new RegExp(regex, flags || '');
|
|
617
|
+
};
|
|
@@ -31,35 +31,6 @@
|
|
|
31
31
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
/* The long term goal here is to remove all functions in this file and
|
|
35
|
-
* replace them with ES Module functions rather than prototype
|
|
36
|
-
* extensions but in the mean time if an old func in here depends on one
|
|
37
|
-
* that has been migrated, it will need to be imported.
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
import {caseInsensetiveComparator, regexSpecialCharacters, sprintf} from './string-utilities.js';
|
|
41
|
-
|
|
42
|
-
// Still used in the test runners that can't use ES modules :(
|
|
43
|
-
String.sprintf = sprintf;
|
|
44
|
-
|
|
45
|
-
// @ts-ignore https://crbug.com/1050549
|
|
46
|
-
String.regexSpecialCharacters = regexSpecialCharacters;
|
|
47
|
-
// @ts-ignore https://crbug.com/1050549
|
|
48
|
-
String.caseInsensetiveComparator = caseInsensetiveComparator;
|
|
49
|
-
|
|
50
|
-
self.createPlainTextSearchRegex = function(query: string, flags?: string): RegExp {
|
|
51
|
-
// This should be kept the same as the one in StringUtil.cpp.
|
|
52
|
-
let regex = '';
|
|
53
|
-
for (let i = 0; i < query.length; ++i) {
|
|
54
|
-
const c = query.charAt(i);
|
|
55
|
-
if (regexSpecialCharacters().indexOf(c) !== -1) {
|
|
56
|
-
regex += '\\';
|
|
57
|
-
}
|
|
58
|
-
regex += c;
|
|
59
|
-
}
|
|
60
|
-
return new RegExp(regex, flags || '');
|
|
61
|
-
};
|
|
62
|
-
|
|
63
34
|
export function runOnWindowLoad(callback: () => void): void {
|
|
64
35
|
function windowLoaded(): void {
|
|
65
36
|
window.removeEventListener('DOMContentLoaded', windowLoaded, false);
|
|
@@ -7,9 +7,6 @@ const originalAssert = console.assert;
|
|
|
7
7
|
|
|
8
8
|
const queryParamsObject = new URLSearchParams(location.search);
|
|
9
9
|
|
|
10
|
-
// The following variable are initialized all the way at the bottom of this file
|
|
11
|
-
let importScriptPathPrefix: string;
|
|
12
|
-
|
|
13
10
|
let runtimePlatform = '';
|
|
14
11
|
|
|
15
12
|
let runtimeInstance: Runtime|undefined;
|
|
@@ -32,67 +29,16 @@ export function getRemoteBase(location: string = self.location.toString()): {
|
|
|
32
29
|
return {base: `${url.origin}/remote/serve_file/${version[1]}/`, version: version[1]};
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
export const mappingForLayoutTests = new Map<string, string>([
|
|
36
|
-
['panels/animation', 'animation'],
|
|
37
|
-
['panels/browser_debugger', 'browser_debugger'],
|
|
38
|
-
['panels/changes', 'changes'],
|
|
39
|
-
['panels/console', 'console'],
|
|
40
|
-
['panels/elements', 'elements'],
|
|
41
|
-
['panels/emulation', 'emulation'],
|
|
42
|
-
['panels/mobile_throttling', 'mobile_throttling'],
|
|
43
|
-
['panels/network', 'network'],
|
|
44
|
-
['panels/profiler', 'profiler'],
|
|
45
|
-
['panels/application', 'resources'],
|
|
46
|
-
['panels/search', 'search'],
|
|
47
|
-
['panels/sources', 'sources'],
|
|
48
|
-
['panels/snippets', 'snippets'],
|
|
49
|
-
['panels/settings', 'settings'],
|
|
50
|
-
['panels/timeline', 'timeline'],
|
|
51
|
-
['panels/web_audio', 'web_audio'],
|
|
52
|
-
['models/persistence', 'persistence'],
|
|
53
|
-
['models/workspace_diff', 'workspace_diff'],
|
|
54
|
-
['entrypoints/main', 'main'],
|
|
55
|
-
['third_party/diff', 'diff'],
|
|
56
|
-
['ui/legacy/components/inline_editor', 'inline_editor'],
|
|
57
|
-
['ui/legacy/components/data_grid', 'data_grid'],
|
|
58
|
-
['ui/legacy/components/perf_ui', 'perf_ui'],
|
|
59
|
-
['ui/legacy/components/source_frame', 'source_frame'],
|
|
60
|
-
['ui/legacy/components/color_picker', 'color_picker'],
|
|
61
|
-
['ui/legacy/components/cookie_table', 'cookie_table'],
|
|
62
|
-
['ui/legacy/components/text_editor', 'text_editor'],
|
|
63
|
-
['ui/legacy/components/quick_open', 'quick_open'],
|
|
64
|
-
['ui/legacy/components/utils', 'components'],
|
|
65
|
-
]);
|
|
66
|
-
|
|
67
32
|
export class Runtime {
|
|
68
|
-
|
|
69
|
-
modulesMap: {
|
|
70
|
-
[x: string]: Module,
|
|
71
|
-
};
|
|
72
|
-
readonly #descriptorsMap: {
|
|
73
|
-
[x: string]: ModuleDescriptor,
|
|
74
|
-
};
|
|
75
|
-
private constructor(descriptors: ModuleDescriptor[]) {
|
|
76
|
-
this.#modules = [];
|
|
77
|
-
this.modulesMap = {};
|
|
78
|
-
this.#descriptorsMap = {};
|
|
79
|
-
|
|
80
|
-
for (const descriptor of descriptors) {
|
|
81
|
-
this.registerModule(descriptor);
|
|
82
|
-
}
|
|
33
|
+
private constructor() {
|
|
83
34
|
}
|
|
84
35
|
|
|
85
36
|
static instance(opts: {
|
|
86
37
|
forceNew: boolean|null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const {forceNew, moduleDescriptors} = opts;
|
|
38
|
+
}|undefined = {forceNew: null}): Runtime {
|
|
39
|
+
const {forceNew} = opts;
|
|
90
40
|
if (!runtimeInstance || forceNew) {
|
|
91
|
-
|
|
92
|
-
throw new Error(`Unable to create runtime: moduleDescriptors must be provided: ${new Error().stack}`);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
runtimeInstance = new Runtime(moduleDescriptors);
|
|
41
|
+
runtimeInstance = new Runtime();
|
|
96
42
|
}
|
|
97
43
|
|
|
98
44
|
return runtimeInstance;
|
|
@@ -203,51 +149,11 @@ export class Runtime {
|
|
|
203
149
|
return '\n/*# sourceURL=' + sourceURL + ' */';
|
|
204
150
|
}
|
|
205
151
|
|
|
206
|
-
module(moduleName: string): Module {
|
|
207
|
-
return this.modulesMap[moduleName];
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
private registerModule(descriptor: ModuleDescriptor): void {
|
|
211
|
-
const module = new Module(this, descriptor);
|
|
212
|
-
this.#modules.push(module);
|
|
213
|
-
this.modulesMap[descriptor['name']] = module;
|
|
214
|
-
const mappedName = mappingForLayoutTests.get(descriptor['name']);
|
|
215
|
-
if (mappedName !== undefined) {
|
|
216
|
-
this.modulesMap[mappedName] = module;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
loadModulePromise(moduleName: string): Promise<boolean> {
|
|
221
|
-
return this.modulesMap[moduleName].loadPromise();
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
loadAutoStartModules(moduleNames: string[]): Promise<boolean[]> {
|
|
225
|
-
const promises = [];
|
|
226
|
-
for (const moduleName of moduleNames) {
|
|
227
|
-
promises.push(this.loadModulePromise(moduleName));
|
|
228
|
-
}
|
|
229
|
-
return Promise.all(promises);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
getModulesMap(): {[x: string]: Module} {
|
|
233
|
-
return this.modulesMap;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
152
|
loadLegacyModule(modulePath: string): Promise<void> {
|
|
237
153
|
return import(`../../${modulePath}`);
|
|
238
154
|
}
|
|
239
155
|
}
|
|
240
156
|
|
|
241
|
-
export class ModuleDescriptor {
|
|
242
|
-
name!: string;
|
|
243
|
-
dependencies!: string[]|undefined;
|
|
244
|
-
modules!: string[];
|
|
245
|
-
resources!: string[];
|
|
246
|
-
condition!: string|undefined;
|
|
247
|
-
experiment!: string|null;
|
|
248
|
-
constructor() {
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
157
|
export interface Option {
|
|
252
158
|
title: string;
|
|
253
159
|
value: string|boolean;
|
|
@@ -255,92 +161,6 @@ export interface Option {
|
|
|
255
161
|
text?: string;
|
|
256
162
|
}
|
|
257
163
|
|
|
258
|
-
function computeContainingFolderName(name: string): string {
|
|
259
|
-
if (name.includes('/')) {
|
|
260
|
-
return name.substring(name.lastIndexOf('/') + 1, name.length);
|
|
261
|
-
}
|
|
262
|
-
return name;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export class Module {
|
|
266
|
-
readonly #manager: Runtime;
|
|
267
|
-
readonly descriptor: ModuleDescriptor;
|
|
268
|
-
readonly #nameInternal: string;
|
|
269
|
-
#loadedForTest: boolean;
|
|
270
|
-
#pendingLoadPromise?: Promise<boolean>;
|
|
271
|
-
constructor(manager: Runtime, descriptor: ModuleDescriptor) {
|
|
272
|
-
this.#manager = manager;
|
|
273
|
-
this.descriptor = descriptor;
|
|
274
|
-
this.#nameInternal = descriptor.name;
|
|
275
|
-
this.#loadedForTest = false;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
name(): string {
|
|
279
|
-
return this.#nameInternal;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
enabled(): boolean {
|
|
283
|
-
return Runtime.isDescriptorEnabled(this.descriptor);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
resource(name: string): string {
|
|
287
|
-
const fullName = this.#nameInternal + '/' + name;
|
|
288
|
-
const content = cachedResources.get(fullName);
|
|
289
|
-
if (!content) {
|
|
290
|
-
throw new Error(fullName + ' not preloaded. Check module.json');
|
|
291
|
-
}
|
|
292
|
-
return content;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
loadPromise(): Promise<boolean> {
|
|
296
|
-
if (!this.enabled()) {
|
|
297
|
-
return Promise.reject(new Error('Module ' + this.#nameInternal + ' is not enabled'));
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
if (this.#pendingLoadPromise) {
|
|
301
|
-
return this.#pendingLoadPromise;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
const dependencies = this.descriptor.dependencies;
|
|
305
|
-
const dependencyPromises = [];
|
|
306
|
-
for (let i = 0; dependencies && i < dependencies.length; ++i) {
|
|
307
|
-
dependencyPromises.push(this.#manager.getModulesMap()[dependencies[i]].loadPromise());
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
this.#pendingLoadPromise = Promise.all(dependencyPromises).then(this.loadModules.bind(this)).then(() => {
|
|
311
|
-
this.#loadedForTest = true;
|
|
312
|
-
return this.#loadedForTest;
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
return this.#pendingLoadPromise;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
private async loadModules(): Promise<void> {
|
|
319
|
-
const containingFolderName = computeContainingFolderName(this.#nameInternal);
|
|
320
|
-
|
|
321
|
-
const moduleFileName = `${containingFolderName}_module.js`;
|
|
322
|
-
const entrypointFileName = `${containingFolderName}.js`;
|
|
323
|
-
|
|
324
|
-
// If a module has resources, they are part of the `_module.js` files that are generated
|
|
325
|
-
// by `build_release_applications`. These need to be loaded before any other code is
|
|
326
|
-
// loaded, to make sure that the resource content is properly cached in `cachedResources`.
|
|
327
|
-
if (this.descriptor.modules && this.descriptor.modules.includes(moduleFileName)) {
|
|
328
|
-
await import(`../../${this.#nameInternal}/${moduleFileName}`);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
await import(`../../${this.#nameInternal}/${entrypointFileName}`);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
private modularizeURL(resourceName: string): string {
|
|
335
|
-
return Runtime.normalizePath(this.#nameInternal + '/' + resourceName);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
fetchResource(resourceName: string): Promise<string> {
|
|
339
|
-
const sourceURL = getResourceURL(this.modularizeURL(resourceName));
|
|
340
|
-
return loadResourcePromise(sourceURL);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
164
|
export class ExperimentsSupport {
|
|
345
165
|
#experiments: Experiment[];
|
|
346
166
|
#experimentNames: Set<string>;
|
|
@@ -514,37 +334,9 @@ export function loadResourcePromise(url: string): Promise<string> {
|
|
|
514
334
|
}
|
|
515
335
|
}
|
|
516
336
|
|
|
517
|
-
function getResourceURL(scriptName: string, base?: string): string {
|
|
518
|
-
const sourceURL = (base || importScriptPathPrefix) + scriptName;
|
|
519
|
-
const schemaIndex = sourceURL.indexOf('://') + 3;
|
|
520
|
-
let pathIndex = sourceURL.indexOf('/', schemaIndex);
|
|
521
|
-
if (pathIndex === -1) {
|
|
522
|
-
pathIndex = sourceURL.length;
|
|
523
|
-
}
|
|
524
|
-
return sourceURL.substring(0, pathIndex) + Runtime.normalizePath(sourceURL.substring(pathIndex));
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
(function(): void {
|
|
528
|
-
const baseUrl = self.location ? self.location.origin + self.location.pathname : '';
|
|
529
|
-
importScriptPathPrefix = baseUrl.substring(0, baseUrl.lastIndexOf('/') + 1);
|
|
530
|
-
})();
|
|
531
|
-
|
|
532
337
|
// This must be constructed after the query parameters have been parsed.
|
|
533
338
|
export const experiments = new ExperimentsSupport();
|
|
534
339
|
|
|
535
|
-
export const cachedResources = new Map<string, string>();
|
|
536
|
-
|
|
537
|
-
// Only exported for LightHouse, which uses it in `report-generator.js`.
|
|
538
|
-
// Do not use this global in DevTools' implementation.
|
|
539
|
-
// TODO(crbug.com/1127292): remove this global
|
|
540
|
-
// @ts-ignore
|
|
541
|
-
globalThis.EXPORTED_CACHED_RESOURCES_ONLY_FOR_LIGHTHOUSE = cachedResources;
|
|
542
|
-
|
|
543
|
-
export let appStartedPromiseCallback: () => void;
|
|
544
|
-
export const appStarted = new Promise<void>(fulfill => {
|
|
545
|
-
appStartedPromiseCallback = fulfill;
|
|
546
|
-
});
|
|
547
|
-
|
|
548
340
|
// TODO(crbug.com/1167717): Make this a const enum again
|
|
549
341
|
// eslint-disable-next-line rulesdir/const_enum
|
|
550
342
|
export enum ExperimentName {
|
|
@@ -27,7 +27,6 @@ export interface CoreOrProtocolAxProperty {
|
|
|
27
27
|
|
|
28
28
|
export class AccessibilityNode {
|
|
29
29
|
readonly #accessibilityModelInternal: AccessibilityModel;
|
|
30
|
-
readonly #agent: ProtocolProxyApi.AccessibilityApi;
|
|
31
30
|
readonly #idInternal: Protocol.Accessibility.AXNodeId;
|
|
32
31
|
readonly #backendDOMNodeIdInternal: Protocol.DOM.BackendNodeId|null;
|
|
33
32
|
readonly #deferredDOMNodeInternal: DeferredDOMNode|null;
|
|
@@ -44,7 +43,6 @@ export class AccessibilityNode {
|
|
|
44
43
|
|
|
45
44
|
constructor(accessibilityModel: AccessibilityModel, payload: Protocol.Accessibility.AXNode) {
|
|
46
45
|
this.#accessibilityModelInternal = accessibilityModel;
|
|
47
|
-
this.#agent = accessibilityModel.getAgent();
|
|
48
46
|
|
|
49
47
|
this.#idInternal = payload.nodeId;
|
|
50
48
|
accessibilityModel.setAXNodeForAXId(this.#idInternal, this);
|
|
@@ -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';
|
|
@@ -27,7 +27,6 @@ export class CSSProperty {
|
|
|
27
27
|
#active: boolean;
|
|
28
28
|
#nameRangeInternal: TextUtils.TextRange.TextRange|null;
|
|
29
29
|
#valueRangeInternal: TextUtils.TextRange.TextRange|null;
|
|
30
|
-
readonly #invalidProperty: string|null;
|
|
31
30
|
#invalidString?: Common.UIString.LocalizedString;
|
|
32
31
|
|
|
33
32
|
constructor(
|
|
@@ -46,7 +45,6 @@ export class CSSProperty {
|
|
|
46
45
|
this.#active = true;
|
|
47
46
|
this.#nameRangeInternal = null;
|
|
48
47
|
this.#valueRangeInternal = null;
|
|
49
|
-
this.#invalidProperty = null;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
static parsePayload(ownerStyle: CSSStyleDeclaration, index: number, payload: Protocol.CSS.CSSProperty): CSSProperty {
|
|
@@ -178,7 +176,7 @@ export class CSSProperty {
|
|
|
178
176
|
|
|
179
177
|
static formatStyle(
|
|
180
178
|
styleText: string, indentation: string, endIndentation: string,
|
|
181
|
-
tokenizerFactory: TextUtils.TextUtils.TokenizerFactory
|
|
179
|
+
tokenizerFactory: TextUtils.TextUtils.TokenizerFactory): string {
|
|
182
180
|
const doubleIndent = indentation.substring(endIndentation.length) + indentation;
|
|
183
181
|
if (indentation) {
|
|
184
182
|
indentation = '\n' + indentation;
|
|
@@ -188,7 +186,7 @@ export class CSSProperty {
|
|
|
188
186
|
let propertyText = '';
|
|
189
187
|
let insideProperty = false;
|
|
190
188
|
let needsSemi = false;
|
|
191
|
-
const tokenize = tokenizerFactory.createTokenizer('text/css'
|
|
189
|
+
const tokenize = tokenizerFactory.createTokenizer('text/css');
|
|
192
190
|
|
|
193
191
|
tokenize('*{' + styleText + '}', processToken);
|
|
194
192
|
if (insideProperty) {
|
|
@@ -199,10 +197,10 @@ export class CSSProperty {
|
|
|
199
197
|
|
|
200
198
|
function processToken(token: string, tokenType: string|null, _column: number, _newColumn: number): void {
|
|
201
199
|
if (!insideProperty) {
|
|
202
|
-
const disabledProperty = tokenType && tokenType.includes('
|
|
200
|
+
const disabledProperty = tokenType && tokenType.includes('comment') && isDisabledProperty(token);
|
|
203
201
|
const isPropertyStart = tokenType &&
|
|
204
|
-
(tokenType.includes('
|
|
205
|
-
tokenType.includes('
|
|
202
|
+
(tokenType.includes('string') || tokenType.includes('meta') || tokenType.includes('property') ||
|
|
203
|
+
tokenType.includes('variable-2'));
|
|
206
204
|
if (disabledProperty) {
|
|
207
205
|
result = result.trimRight() + indentation + token;
|
|
208
206
|
} else if (isPropertyStart) {
|
|
@@ -210,7 +208,7 @@ export class CSSProperty {
|
|
|
210
208
|
propertyText = token;
|
|
211
209
|
} else if (token !== ';' || needsSemi) {
|
|
212
210
|
result += token;
|
|
213
|
-
if (token.trim() && !(tokenType && tokenType.includes('
|
|
211
|
+
if (token.trim() && !(tokenType && tokenType.includes('comment'))) {
|
|
214
212
|
needsSemi = token !== ';';
|
|
215
213
|
}
|
|
216
214
|
}
|
|
@@ -227,11 +225,18 @@ export class CSSProperty {
|
|
|
227
225
|
// implementation takes special care to restore a single
|
|
228
226
|
// whitespace token in this edge case. https://crbug.com/1071296
|
|
229
227
|
const trimmedPropertyText = propertyText.trim();
|
|
230
|
-
result =
|
|
231
|
-
(trimmedPropertyText.endsWith(':') ? ' ' : '')
|
|
228
|
+
result =
|
|
229
|
+
result.trimRight() + indentation + trimmedPropertyText + (trimmedPropertyText.endsWith(':') ? ' ' : '');
|
|
232
230
|
needsSemi = false;
|
|
233
231
|
insideProperty = false;
|
|
234
232
|
propertyName = '';
|
|
233
|
+
if (Root.Runtime.experiments.isEnabled('preciseChanges')) {
|
|
234
|
+
result += token;
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
// We preserve the legacy behavior to always add semicolon to
|
|
238
|
+
// declarations regardless of its original text.
|
|
239
|
+
result += ';';
|
|
235
240
|
if (token === '}') {
|
|
236
241
|
result += '}';
|
|
237
242
|
}
|
|
@@ -203,11 +203,9 @@ export class CSSStyleRule extends CSSRule {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
export class CSSKeyframesRule {
|
|
206
|
-
readonly #cssModel: CSSModel;
|
|
207
206
|
readonly #animationName: CSSValue;
|
|
208
207
|
readonly #keyframesInternal: CSSKeyframeRule[];
|
|
209
208
|
constructor(cssModel: CSSModel, payload: Protocol.CSS.CSSKeyframesRule) {
|
|
210
|
-
this.#cssModel = cssModel;
|
|
211
209
|
this.#animationName = new CSSValue(payload.animationName);
|
|
212
210
|
this.#keyframesInternal = payload.keyframes.map(keyframeRule => new CSSKeyframeRule(cssModel, keyframeRule));
|
|
213
211
|
}
|