chrome-devtools-frontend 1.0.941208 → 1.0.943182
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/WATCHLISTS +1 -1
- package/config/gni/all_devtools_files.gni +0 -64
- package/config/gni/devtools_grd_files.gni +54 -19
- package/config/gni/devtools_image_files.gni +1 -3
- package/front_end/.eslintrc.js +11 -1
- package/front_end/Images/src/{feedback_thin_16x16_icon.svg → survey_feedback_icon.svg} +1 -1
- package/front_end/Tests.js +1 -32
- package/front_end/core/common/Color.ts +5 -0
- package/front_end/core/i18n/locales/en-US.json +17 -29
- package/front_end/core/i18n/locales/en-XL.json +17 -29
- package/front_end/core/sdk/CPUProfilerModel.ts +7 -9
- package/front_end/core/sdk/ConsoleModel.ts +27 -33
- package/front_end/core/sdk/DebuggerModel.ts +4 -14
- package/front_end/core/sdk/sdk-meta.ts +17 -3
- package/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.ts +1 -1
- package/front_end/entrypoints/devtools_app/devtools_app.js +1 -1
- package/front_end/entrypoints/devtools_app/devtools_app.json +1 -12
- package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/inspector/inspector.js +1 -1
- package/front_end/entrypoints/inspector/inspector.json +1 -3
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +2 -3
- package/front_end/entrypoints/js_app/js_app.js +1 -1
- package/front_end/entrypoints/js_app/js_app.json +1 -3
- package/front_end/entrypoints/main/MainImpl.ts +26 -0
- package/front_end/entrypoints/main/main-meta.ts +1 -2
- package/front_end/entrypoints/ndb_app/ndb_app.js +1 -1
- package/front_end/entrypoints/node_app/node_app-meta.ts +0 -2
- package/front_end/entrypoints/node_app/node_app.js +1 -1
- package/front_end/entrypoints/node_app/node_app.json +1 -3
- package/front_end/entrypoints/node_main/node_main-meta.ts +0 -1
- package/front_end/entrypoints/shell/shell.js +0 -11
- package/front_end/entrypoints/shell/shell.json +1 -5
- package/front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/worker_app/worker_app.js +1 -1
- package/front_end/entrypoints/worker_app/worker_app.json +1 -7
- package/front_end/generated/InspectorBackendCommands.js +19 -0
- package/front_end/generated/protocol-mapping.d.ts +31 -1
- package/front_end/generated/protocol-proxy-api.d.ts +34 -2
- package/front_end/generated/protocol.d.ts +81 -6
- package/front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js +2 -2
- package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +5 -1
- package/front_end/legacy_test_runner/legacy_test_runner.ts +10 -1
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +3 -1
- package/front_end/models/formatter/SourceFormatter.ts +0 -10
- package/front_end/models/persistence/persistence-meta.ts +0 -1
- package/front_end/models/workspace/UISourceCode.ts +9 -42
- package/front_end/panels/accessibility/accessibility-meta.ts +0 -1
- package/front_end/panels/animation/AnimationTimeline.ts +3 -3
- package/front_end/panels/animation/animation-meta.ts +0 -1
- package/front_end/panels/application/ApplicationPanelSidebar.ts +3 -3
- package/front_end/panels/application/BackForwardCacheStrings.ts +3 -1
- package/front_end/panels/application/application-meta.ts +0 -4
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.ts +1 -1
- package/front_end/panels/application/components/stackTraceRow.css +8 -0
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +1 -2
- package/front_end/panels/changes/changes-meta.ts +0 -1
- package/front_end/panels/console/ConsolePinPane.ts +23 -32
- package/front_end/panels/console/ConsoleViewMessage.ts +8 -1
- package/front_end/panels/console/console-meta.ts +0 -1
- package/front_end/panels/console_counters/console_counters-meta.ts +0 -1
- package/front_end/panels/coverage/CoverageDecorationManager.ts +4 -5
- package/front_end/panels/coverage/CoverageView.ts +2 -105
- package/front_end/panels/coverage/coverage-meta.ts +0 -1
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +11 -56
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -8
- package/front_end/panels/css_overview/css_overview-meta.ts +0 -1
- package/front_end/panels/developer_resources/developer_resources-meta.ts +0 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +4 -9
- package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -0
- package/front_end/panels/elements/components/adornerSettingsPane.css +0 -4
- package/front_end/panels/elements/elements-meta.ts +0 -1
- package/front_end/panels/emulation/DeviceModeToolbar.ts +3 -1
- package/front_end/panels/emulation/DeviceModeView.ts +2 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +3 -1
- package/front_end/panels/emulation/MediaQueryInspector.ts +3 -1
- package/front_end/panels/emulation/emulation-meta.ts +2 -5
- package/front_end/panels/help/help-meta.ts +0 -1
- package/front_end/panels/input/input-meta.ts +0 -1
- package/front_end/panels/issues/issues-meta.ts +0 -3
- package/front_end/panels/js_profiler/js_profiler-meta.ts +0 -4
- package/front_end/panels/layers/layers-meta.ts +0 -4
- package/front_end/panels/lighthouse/LighthousePanel.ts +2 -4
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -4
- package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -1
- package/front_end/panels/lighthouse/lighthouseStartView.css +4 -0
- package/front_end/panels/lighthouse/module.json +0 -6
- package/front_end/panels/media/media-meta.ts +0 -4
- package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +0 -1
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +2 -1
- package/front_end/panels/network/network-meta.ts +1 -5
- package/front_end/panels/performance_monitor/performance_monitor-meta.ts +0 -1
- package/front_end/panels/profiler/CPUProfileView.ts +10 -3
- package/front_end/panels/profiler/profiler-meta.ts +0 -3
- package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -1
- package/front_end/panels/screencast/screencast-meta.ts +0 -4
- package/front_end/panels/security/security-meta.ts +0 -4
- package/front_end/panels/sensors/sensors-meta.ts +0 -1
- package/front_end/panels/settings/emulation/emulation-meta.ts +0 -1
- package/front_end/panels/settings/settings-meta.ts +0 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +16 -30
- package/front_end/panels/sources/CSSPlugin.ts +310 -331
- package/front_end/panels/sources/CallStackSidebarPane.ts +28 -34
- package/front_end/panels/sources/CoveragePlugin.ts +121 -6
- package/front_end/panels/sources/DebuggerPlugin.ts +1166 -1243
- package/front_end/panels/sources/EditingLocationHistoryManager.ts +71 -101
- package/front_end/panels/sources/GoToLineQuickOpen.ts +4 -3
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +26 -23
- package/front_end/panels/sources/Plugin.ts +20 -4
- package/front_end/panels/sources/ProfilePlugin.ts +185 -0
- package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/ScriptOriginPlugin.ts +0 -10
- package/front_end/panels/sources/SnippetsPlugin.ts +1 -10
- package/front_end/panels/sources/SourcesPanel.ts +6 -5
- package/front_end/panels/sources/SourcesView.ts +10 -8
- package/front_end/panels/sources/TabbedEditorContainer.ts +31 -27
- package/front_end/panels/sources/UISourceCodeFrame.ts +335 -470
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
- package/front_end/panels/sources/sources-legacy.ts +0 -6
- package/front_end/panels/sources/sources-meta.ts +2 -6
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/panels/timeline/timeline-meta.ts +2 -9
- package/front_end/panels/web_audio/web_audio-meta.ts +0 -1
- package/front_end/panels/webauthn/webauthn-meta.ts +0 -1
- package/front_end/third_party/codemirror.next/bundle.ts +9 -13
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/javascript.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -6
- package/front_end/third_party/codemirror.next/chunk/php.js +2 -6
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +2 -2
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +279 -198
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +13 -11
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1128 -1158
- package/front_end/third_party/lighthouse/locales/ar-XB.json +211 -79
- package/front_end/third_party/lighthouse/locales/ar.json +213 -81
- package/front_end/third_party/lighthouse/locales/bg.json +211 -79
- package/front_end/third_party/lighthouse/locales/ca.json +212 -80
- package/front_end/third_party/lighthouse/locales/cs.json +211 -79
- package/front_end/third_party/lighthouse/locales/da.json +211 -79
- package/front_end/third_party/lighthouse/locales/de.json +211 -79
- package/front_end/third_party/lighthouse/locales/el.json +213 -81
- package/front_end/third_party/lighthouse/locales/en-GB.json +211 -79
- package/front_end/third_party/lighthouse/locales/en-US.json +186 -75
- package/front_end/third_party/lighthouse/locales/en-XA.json +211 -79
- package/front_end/third_party/lighthouse/locales/en-XL.json +186 -75
- package/front_end/third_party/lighthouse/locales/es-419.json +211 -79
- package/front_end/third_party/lighthouse/locales/es.json +212 -80
- package/front_end/third_party/lighthouse/locales/fi.json +211 -79
- package/front_end/third_party/lighthouse/locales/fil.json +211 -79
- package/front_end/third_party/lighthouse/locales/fr.json +211 -79
- package/front_end/third_party/lighthouse/locales/he.json +212 -80
- package/front_end/third_party/lighthouse/locales/hi.json +214 -82
- package/front_end/third_party/lighthouse/locales/hr.json +211 -79
- package/front_end/third_party/lighthouse/locales/hu.json +211 -79
- package/front_end/third_party/lighthouse/locales/id.json +211 -79
- package/front_end/third_party/lighthouse/locales/it.json +211 -79
- package/front_end/third_party/lighthouse/locales/ja.json +211 -79
- package/front_end/third_party/lighthouse/locales/ko.json +211 -79
- package/front_end/third_party/lighthouse/locales/lt.json +211 -79
- package/front_end/third_party/lighthouse/locales/lv.json +214 -82
- package/front_end/third_party/lighthouse/locales/nl.json +211 -79
- package/front_end/third_party/lighthouse/locales/no.json +211 -79
- package/front_end/third_party/lighthouse/locales/pl.json +211 -79
- package/front_end/third_party/lighthouse/locales/pt-PT.json +211 -79
- package/front_end/third_party/lighthouse/locales/pt.json +211 -79
- package/front_end/third_party/lighthouse/locales/ro.json +212 -80
- package/front_end/third_party/lighthouse/locales/ru.json +211 -79
- package/front_end/third_party/lighthouse/locales/sk.json +211 -79
- package/front_end/third_party/lighthouse/locales/sl.json +211 -79
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +211 -79
- package/front_end/third_party/lighthouse/locales/sr.json +211 -79
- package/front_end/third_party/lighthouse/locales/sv.json +211 -79
- package/front_end/third_party/lighthouse/locales/ta.json +218 -86
- package/front_end/third_party/lighthouse/locales/te.json +251 -119
- package/front_end/third_party/lighthouse/locales/th.json +211 -79
- package/front_end/third_party/lighthouse/locales/tr.json +211 -79
- package/front_end/third_party/lighthouse/locales/uk.json +212 -80
- package/front_end/third_party/lighthouse/locales/vi.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh-HK.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh-TW.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh.json +211 -79
- package/front_end/third_party/lighthouse/report/bundle.d.ts +72 -34
- package/front_end/third_party/lighthouse/report/bundle.js +698 -492
- package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -2
- package/front_end/third_party/lighthouse/report-assets/report.js +40 -35
- package/front_end/third_party/lighthouse/report-assets/standalone-template.html +2 -4
- package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +60 -68
- package/front_end/ui/components/data_grid/dataGrid.css +12 -10
- package/front_end/ui/components/docs/component_docs.ts +14 -0
- package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
- package/front_end/ui/components/docs/css_overview/start_view.html +25 -0
- package/front_end/ui/components/docs/css_overview/start_view.ts +14 -0
- package/front_end/ui/components/docs/icon_button/basic.ts +3 -3
- package/front_end/ui/components/docs/toggle_dark_mode.ts +1 -0
- package/front_end/ui/components/docs/toggle_fonts.ts +2 -0
- package/front_end/ui/components/helpers/get-stylesheet.ts +0 -15
- package/front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.ts +1 -2
- package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/text_editor/TextEditor.ts +79 -36
- package/front_end/ui/components/text_editor/config.ts +42 -26
- package/front_end/ui/components/text_editor/javascript.ts +2 -3
- package/front_end/ui/components/text_editor/position.ts +17 -0
- package/front_end/ui/components/text_editor/text_editor.ts +1 -0
- package/front_end/ui/components/text_editor/theme.ts +5 -1
- package/front_end/ui/components/tree_outline/TreeOutline.ts +63 -8
- package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +8 -6
- package/front_end/ui/legacy/Dialog.ts +3 -1
- package/front_end/ui/legacy/DropTarget.ts +2 -1
- package/front_end/ui/legacy/EmptyWidget.ts +2 -1
- package/front_end/ui/legacy/FilterBar.ts +2 -1
- package/front_end/ui/legacy/GlassPane.ts +4 -2
- package/front_end/ui/legacy/Infobar.ts +5 -8
- package/front_end/ui/legacy/InspectorView.ts +6 -1
- package/front_end/ui/legacy/ListWidget.ts +2 -1
- package/front_end/ui/legacy/PopoverHelper.ts +2 -1
- package/front_end/ui/legacy/ProgressIndicator.ts +2 -1
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -1
- package/front_end/ui/legacy/ReportView.ts +2 -1
- package/front_end/ui/legacy/RootView.ts +2 -1
- package/front_end/ui/legacy/SearchableView.ts +2 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +11 -7
- package/front_end/ui/legacy/SoftContextMenu.ts +3 -2
- package/front_end/ui/legacy/SoftDropDown.ts +4 -2
- package/front_end/ui/legacy/SplitWidget.ts +2 -1
- package/front_end/ui/legacy/SuggestBox.ts +2 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -1
- package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -1
- package/front_end/ui/legacy/TextPrompt.ts +2 -1
- package/front_end/ui/legacy/Toolbar.ts +3 -2
- package/front_end/ui/legacy/Treeoutline.ts +4 -3
- package/front_end/ui/legacy/UIUtils.ts +17 -14
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -2
- package/front_end/ui/legacy/components/inline_editor/cssAngle.css +4 -0
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +2 -2
- package/front_end/ui/legacy/components/object_ui/object_ui-meta.ts +0 -4
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +35 -131
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +0 -3
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
- package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -3
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +3 -6
- package/front_end/ui/legacy/components/source_frame/FontView.ts +4 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +4 -1
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +4 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +21 -15
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +501 -252
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +7 -2
- package/front_end/ui/legacy/components/source_frame/source_frame-legacy.ts +0 -11
- package/front_end/ui/legacy/components/source_frame/source_frame.ts +0 -2
- package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +2 -0
- package/front_end/ui/legacy/components/text_editor/cmdevtools.css +3 -1
- package/front_end/ui/legacy/components/text_editor/module.json +0 -3
- package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -15
- package/front_end/ui/legacy/radioButton.css +1 -13
- package/front_end/ui/legacy/textButton.css +5 -4
- package/front_end/ui/legacy/themeColors.css +36 -0
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +7 -9
- package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +2 -2
- package/front_end/ui/legacy/utils/inject-core-styles.ts +7 -4
- package/package.json +1 -1
- package/scripts/check_gn.js +0 -35
- package/scripts/eslint_rules/lib/es_modules_import.js +15 -8
- package/scripts/eslint_rules/tests/es_modules_import_test.js +8 -0
- package/front_end/Images/radioDot-dark-theme.png +0 -0
- package/front_end/Images/radioDot.png +0 -0
- package/front_end/emulated_devices/module.json +0 -6
- package/front_end/panels/application/module.json +0 -6
- package/front_end/panels/emulation/module.json +0 -11
- package/front_end/panels/issues/module.json +0 -6
- package/front_end/panels/js_profiler/module.json +0 -5
- package/front_end/panels/layer_viewer/module.json +0 -5
- package/front_end/panels/layers/module.json +0 -5
- package/front_end/panels/media/module.json +0 -5
- package/front_end/panels/network/module.json +0 -5
- package/front_end/panels/profiler/module.json +0 -5
- package/front_end/panels/screencast/module.json +0 -6
- package/front_end/panels/security/module.json +0 -5
- package/front_end/panels/timeline/module.json +0 -7
- package/front_end/third_party/lighthouse/report-assets/report.css +0 -1774
- package/front_end/ui/legacy/components/source_frame/SourcesTextEditor.ts +0 -1030
- package/front_end/ui/legacy/components/source_frame/messagesPopover.css +0 -32
- package/front_end/ui/legacy/components/source_frame/module.json +0 -14
- package/front_end/ui/legacy/module.json +0 -41
|
@@ -632,6 +632,9 @@
|
|
|
632
632
|
"core/sdk/sdk-meta.ts | doNotShowGridTrackSizes": {
|
|
633
633
|
"message": "D̂ó n̂ót̂ śĥóŵ ǵr̂íd̂ t́r̂áĉḱ ŝíẑéŝ"
|
|
634
634
|
},
|
|
635
|
+
"core/sdk/sdk-meta.ts | doNotShowRulersOnHover": {
|
|
636
|
+
"message": "D̂ó n̂ót̂ śĥóŵ ŕûĺêŕŝ ón̂ h́ôv́êŕ"
|
|
637
|
+
},
|
|
635
638
|
"core/sdk/sdk-meta.ts | emulateAchromatopsia": {
|
|
636
639
|
"message": "Êḿûĺât́ê áĉh́r̂óm̂át̂óp̂śîá"
|
|
637
640
|
},
|
|
@@ -785,8 +788,8 @@
|
|
|
785
788
|
"core/sdk/sdk-meta.ts | showPaintFlashingRectangles": {
|
|
786
789
|
"message": "Ŝh́ôẃ p̂áîńt̂ f́l̂áŝh́îńĝ ŕêćt̂án̂ǵl̂éŝ"
|
|
787
790
|
},
|
|
788
|
-
"core/sdk/sdk-meta.ts |
|
|
789
|
-
"message": "Ŝh́ôẃ r̂úl̂ér̂ś"
|
|
791
|
+
"core/sdk/sdk-meta.ts | showRulersOnHover": {
|
|
792
|
+
"message": "Ŝh́ôẃ r̂úl̂ér̂ś ôń ĥóv̂ér̂"
|
|
790
793
|
},
|
|
791
794
|
"core/sdk/sdk-meta.ts | showScrollPerformanceBottlenecks": {
|
|
792
795
|
"message": "Ŝh́ôẃ ŝćr̂ól̂ĺ p̂ér̂f́ôŕm̂án̂ćê b́ôt́t̂ĺêńêćk̂ś"
|
|
@@ -2574,7 +2577,7 @@
|
|
|
2574
2577
|
"message": "P̂áĝéŝ t́ĥát̂ śĥóŵ Ṕr̂ín̂t́îńĝ ÚÎ ár̂é n̂ót̂ ćûŕr̂én̂t́l̂ý êĺîǵîb́l̂é f̂ór̂ b́âćk̂/f́ôŕŵár̂d́ ĉáĉh́ê."
|
|
2575
2578
|
},
|
|
2576
2579
|
"panels/application/BackForwardCacheStrings.ts | relatedActiveContentsExist": {
|
|
2577
|
-
"message": "T̂h́ê ṕâǵê ẃâś ôṕêńêd́ ûśîńĝ window.open() án̂d́ âńôt́ĥér̂ t́âb́ ĥáŝ á r̂éf̂ér̂én̂ćê t́ô ít̂, ór̂ t́ĥé p̂áĝé ôṕêńêd́ â ẃîńd̂óŵ."
|
|
2580
|
+
"message": "T̂h́ê ṕâǵê ẃâś ôṕêńêd́ ûśîńĝ 'window.open()' án̂d́ âńôt́ĥér̂ t́âb́ ĥáŝ á r̂éf̂ér̂én̂ćê t́ô ít̂, ór̂ t́ĥé p̂áĝé ôṕêńêd́ â ẃîńd̂óŵ."
|
|
2578
2581
|
},
|
|
2579
2582
|
"panels/application/BackForwardCacheStrings.ts | rendererProcessCrashed": {
|
|
2580
2583
|
"message": "T̂h́ê ŕêńd̂ér̂ér̂ ṕr̂óĉéŝś f̂ór̂ t́ĥé p̂áĝé îń b̂áĉḱ/f̂ór̂ẃâŕd̂ ćâćĥé ĉŕâśĥéd̂."
|
|
@@ -4115,21 +4118,12 @@
|
|
|
4115
4118
|
"panels/coverage/CoverageView.ts | urlFilter": {
|
|
4116
4119
|
"message": "ÛŔL̂ f́îĺt̂ér̂"
|
|
4117
4120
|
},
|
|
4118
|
-
"panels/css_overview/components/CSSOverviewStartView.ts | activelyWorkingAndLookingForS": {
|
|
4119
|
-
"message": "Ôúr̂ t́êám̂ íŝ áĉt́îv́êĺŷ ẃôŕk̂ín̂ǵ ôń t̂h́îś f̂éât́ûŕê án̂d́ ŵé âŕê ĺôók̂ín̂ǵ f̂ór̂ ýôúr̂ {PH1}!"
|
|
4120
|
-
},
|
|
4121
4121
|
"panels/css_overview/components/CSSOverviewStartView.ts | captureOverview": {
|
|
4122
4122
|
"message": "Ĉáp̂t́ûŕê óv̂ér̂v́îéŵ"
|
|
4123
4123
|
},
|
|
4124
4124
|
"panels/css_overview/components/CSSOverviewStartView.ts | capturePageCSSOverview": {
|
|
4125
4125
|
"message": "Ĉáp̂t́ûŕê án̂ óv̂ér̂v́îéŵ óf̂ ýôúr̂ ṕâǵê’ś ĈŚŜ"
|
|
4126
4126
|
},
|
|
4127
|
-
"panels/css_overview/components/CSSOverviewStartView.ts | feedbackInline": {
|
|
4128
|
-
"message": "f̂éêd́b̂áĉḱ"
|
|
4129
|
-
},
|
|
4130
|
-
"panels/css_overview/components/CSSOverviewStartView.ts | feedbackStandalone": {
|
|
4131
|
-
"message": "F̂éêd́b̂áĉḱ"
|
|
4132
|
-
},
|
|
4133
4127
|
"panels/css_overview/components/CSSOverviewStartView.ts | identifyCSSImprovements": {
|
|
4134
4128
|
"message": "Îd́êńt̂íf̂ý p̂ót̂én̂t́îál̂ ĆŜŚ îḿp̂ŕôv́êḿêńt̂ś"
|
|
4135
4129
|
},
|
|
@@ -4139,15 +4133,9 @@
|
|
|
4139
4133
|
"panels/css_overview/components/CSSOverviewStartView.ts | locateAffectedElements": {
|
|
4140
4134
|
"message": "L̂óĉát̂é t̂h́ê áf̂f́êćt̂éd̂ él̂ém̂én̂t́ŝ ín̂ t́ĥé Êĺêḿêńt̂ś p̂án̂él̂"
|
|
4141
4135
|
},
|
|
4142
|
-
"panels/css_overview/components/CSSOverviewStartView.ts | previewFeature": {
|
|
4143
|
-
"message": "P̂ŕêv́îéŵ f́êát̂úr̂é"
|
|
4144
|
-
},
|
|
4145
4136
|
"panels/css_overview/components/CSSOverviewStartView.ts | quickStartWithCSSOverview": {
|
|
4146
4137
|
"message": "Q̂úîćk̂ śt̂ár̂t́: ĝét̂ śt̂ár̂t́êd́ ŵít̂h́ t̂h́ê ńêẃ ĈŚŜ Óv̂ér̂v́îéŵ ṕâńêĺ"
|
|
4147
4138
|
},
|
|
4148
|
-
"panels/css_overview/components/CSSOverviewStartView.ts | videoAndDocumentation": {
|
|
4149
|
-
"message": "V̂íd̂éô án̂d́ d̂óĉúm̂én̂t́ât́îón̂"
|
|
4150
|
-
},
|
|
4151
4139
|
"panels/css_overview/css_overview-meta.ts | cssOverview": {
|
|
4152
4140
|
"message": "ĈŚŜ Óv̂ér̂v́îéŵ"
|
|
4153
4141
|
},
|
|
@@ -4995,7 +4983,7 @@
|
|
|
4995
4983
|
"message": "Ĥíd̂é m̂éd̂íâ q́ûér̂íêś"
|
|
4996
4984
|
},
|
|
4997
4985
|
"panels/emulation/emulation-meta.ts | hideRulers": {
|
|
4998
|
-
"message": "Ĥíd̂é r̂úl̂ér̂ś"
|
|
4986
|
+
"message": "Ĥíd̂é r̂úl̂ér̂ś îń t̂h́ê D́êv́îćê Ḿôd́ê t́ôól̂b́âŕ"
|
|
4999
4987
|
},
|
|
5000
4988
|
"panels/emulation/emulation-meta.ts | showDeviceFrame": {
|
|
5001
4989
|
"message": "Ŝh́ôẃ d̂év̂íĉé f̂ŕâḿê"
|
|
@@ -5004,7 +4992,7 @@
|
|
|
5004
4992
|
"message": "Ŝh́ôẃ m̂éd̂íâ q́ûér̂íêś"
|
|
5005
4993
|
},
|
|
5006
4994
|
"panels/emulation/emulation-meta.ts | showRulers": {
|
|
5007
|
-
"message": "Ŝh́ôẃ r̂úl̂ér̂ś"
|
|
4995
|
+
"message": "Ŝh́ôẃ r̂úl̂ér̂ś îń t̂h́ê D́êv́îćê Ḿôd́ê t́ôól̂b́âŕ"
|
|
5008
4996
|
},
|
|
5009
4997
|
"panels/emulation/emulation-meta.ts | toggleDeviceToolbar": {
|
|
5010
4998
|
"message": "T̂óĝǵl̂é d̂év̂íĉé t̂óôĺb̂ár̂"
|
|
@@ -9437,6 +9425,15 @@
|
|
|
9437
9425
|
"panels/sources/OutlineQuickOpen.ts | openAJavascriptOrCssFileToSee": {
|
|
9438
9426
|
"message": "Ôṕêń â J́âv́âŚĉŕîṕt̂ ór̂ ĆŜŚ f̂íl̂é t̂ó ŝéê śŷḿb̂ól̂ś"
|
|
9439
9427
|
},
|
|
9428
|
+
"panels/sources/ProfilePlugin.ts | kb": {
|
|
9429
|
+
"message": "k̂B́"
|
|
9430
|
+
},
|
|
9431
|
+
"panels/sources/ProfilePlugin.ts | mb": {
|
|
9432
|
+
"message": "M̂B́"
|
|
9433
|
+
},
|
|
9434
|
+
"panels/sources/ProfilePlugin.ts | ms": {
|
|
9435
|
+
"message": "m̂ś"
|
|
9436
|
+
},
|
|
9440
9437
|
"panels/sources/ScopeChainSidebarPane.ts | closure": {
|
|
9441
9438
|
"message": "Ĉĺôśûŕê"
|
|
9442
9439
|
},
|
|
@@ -11849,15 +11846,6 @@
|
|
|
11849
11846
|
"ui/legacy/components/perf_ui/FlameChart.ts | sSelected": {
|
|
11850
11847
|
"message": "{PH1} ŝél̂éĉt́êd́"
|
|
11851
11848
|
},
|
|
11852
|
-
"ui/legacy/components/perf_ui/LineLevelProfile.ts | kb": {
|
|
11853
|
-
"message": "k̂B́"
|
|
11854
|
-
},
|
|
11855
|
-
"ui/legacy/components/perf_ui/LineLevelProfile.ts | mb": {
|
|
11856
|
-
"message": "M̂B́"
|
|
11857
|
-
},
|
|
11858
|
-
"ui/legacy/components/perf_ui/LineLevelProfile.ts | ms": {
|
|
11859
|
-
"message": "m̂ś"
|
|
11860
|
-
},
|
|
11861
11849
|
"ui/legacy/components/perf_ui/NetworkPriorities.ts | high": {
|
|
11862
11850
|
"message": "Ĥíĝh́"
|
|
11863
11851
|
},
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
import * as i18n from '../i18n/i18n.js';
|
|
32
|
-
import * as Root from '../root/root.js';
|
|
33
32
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
34
33
|
import type * as Protocol from '../../generated/protocol.js';
|
|
35
34
|
|
|
@@ -57,6 +56,7 @@ export class CPUProfilerModel extends SDKModel<EventTypes> implements ProtocolPr
|
|
|
57
56
|
#preciseCoverageDeltaUpdateCallback:
|
|
58
57
|
((arg0: number, arg1: string, arg2: Array<Protocol.Profiler.ScriptCoverage>) => void)|null;
|
|
59
58
|
readonly #debuggerModelInternal: DebuggerModel;
|
|
59
|
+
readonly registeredConsoleProfileMessages: ProfileFinishedData[] = [];
|
|
60
60
|
|
|
61
61
|
constructor(target: Target) {
|
|
62
62
|
super(target);
|
|
@@ -92,14 +92,12 @@ export class CPUProfilerModel extends SDKModel<EventTypes> implements ProtocolPr
|
|
|
92
92
|
title = this.#anonymousConsoleProfileIdToTitle.get(id);
|
|
93
93
|
this.#anonymousConsoleProfileIdToTitle.delete(id);
|
|
94
94
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
this.dispatchEventToListeners(Events.ConsoleProfileFinished, eventData);
|
|
102
|
-
});
|
|
95
|
+
const eventData: ProfileFinishedData = {
|
|
96
|
+
...this.createEventDataFrom(id, location, title),
|
|
97
|
+
cpuProfile: profile,
|
|
98
|
+
};
|
|
99
|
+
this.registeredConsoleProfileMessages.push(eventData);
|
|
100
|
+
this.dispatchEventToListeners(Events.ConsoleProfileFinished, eventData);
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
private createEventDataFrom(id: string, scriptLocation: Protocol.Debugger.Location, title?: string): EventData {
|
|
@@ -491,6 +491,30 @@ function areAffectedResourcesEquivalent(a?: AffectedResources, b?: AffectedResou
|
|
|
491
491
|
return a?.requestId === b?.requestId;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
+
function areStackTracesEquivalent(
|
|
495
|
+
stackTrace1?: Protocol.Runtime.StackTrace, stackTrace2?: Protocol.Runtime.StackTrace): boolean {
|
|
496
|
+
if (!stackTrace1 !== !stackTrace2) {
|
|
497
|
+
return false;
|
|
498
|
+
}
|
|
499
|
+
if (!stackTrace1 || !stackTrace2) {
|
|
500
|
+
return true;
|
|
501
|
+
}
|
|
502
|
+
const callFrames1 = stackTrace1.callFrames;
|
|
503
|
+
const callFrames2 = stackTrace2.callFrames;
|
|
504
|
+
if (callFrames1.length !== callFrames2.length) {
|
|
505
|
+
return false;
|
|
506
|
+
}
|
|
507
|
+
for (let i = 0, n = callFrames1.length; i < n; ++i) {
|
|
508
|
+
if (callFrames1[i].scriptId !== callFrames2[i].scriptId ||
|
|
509
|
+
callFrames1[i].functionName !== callFrames2[i].functionName ||
|
|
510
|
+
callFrames1[i].lineNumber !== callFrames2[i].lineNumber ||
|
|
511
|
+
callFrames1[i].columnNumber !== callFrames2[i].columnNumber) {
|
|
512
|
+
return false;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
return areStackTracesEquivalent(stackTrace1.parent, stackTrace2.parent);
|
|
516
|
+
}
|
|
517
|
+
|
|
494
518
|
export interface ConsoleMessageDetails {
|
|
495
519
|
type?: MessageType;
|
|
496
520
|
url?: string;
|
|
@@ -659,10 +683,6 @@ export class ConsoleMessage {
|
|
|
659
683
|
return false;
|
|
660
684
|
}
|
|
661
685
|
|
|
662
|
-
if (!this.isEqualStackTraces(this.stackTrace, msg.stackTrace)) {
|
|
663
|
-
return false;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
686
|
if (this.parameters) {
|
|
667
687
|
if (!msg.parameters || this.parameters.length !== msg.parameters.length) {
|
|
668
688
|
return false;
|
|
@@ -687,38 +707,12 @@ export class ConsoleMessage {
|
|
|
687
707
|
}
|
|
688
708
|
}
|
|
689
709
|
|
|
690
|
-
const watchExpressionRegex = /^watch-expression-\d+.devtools$/;
|
|
691
|
-
const bothAreWatchExpressions =
|
|
692
|
-
watchExpressionRegex.test(this.url || '') && watchExpressionRegex.test(msg.url || '');
|
|
693
|
-
|
|
694
710
|
return (this.runtimeModel() === msg.runtimeModel()) && (this.source === msg.source) && (this.type === msg.type) &&
|
|
695
711
|
(this.level === msg.level) && (this.line === msg.line) && (this.url === msg.url) &&
|
|
696
|
-
(
|
|
712
|
+
(this.scriptId === msg.scriptId) && (this.messageText === msg.messageText) &&
|
|
697
713
|
(this.#executionContextId === msg.#executionContextId) &&
|
|
698
|
-
areAffectedResourcesEquivalent(this.#affectedResources, msg.#affectedResources)
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
private isEqualStackTraces(
|
|
702
|
-
stackTrace1: Protocol.Runtime.StackTrace|undefined, stackTrace2: Protocol.Runtime.StackTrace|undefined): boolean {
|
|
703
|
-
if (!stackTrace1 !== !stackTrace2) {
|
|
704
|
-
return false;
|
|
705
|
-
}
|
|
706
|
-
if (!stackTrace1 || !stackTrace2) {
|
|
707
|
-
return true;
|
|
708
|
-
}
|
|
709
|
-
const callFrames1 = stackTrace1.callFrames;
|
|
710
|
-
const callFrames2 = stackTrace2.callFrames;
|
|
711
|
-
if (callFrames1.length !== callFrames2.length) {
|
|
712
|
-
return false;
|
|
713
|
-
}
|
|
714
|
-
for (let i = 0, n = callFrames1.length; i < n; ++i) {
|
|
715
|
-
if (callFrames1[i].url !== callFrames2[i].url || callFrames1[i].functionName !== callFrames2[i].functionName ||
|
|
716
|
-
callFrames1[i].lineNumber !== callFrames2[i].lineNumber ||
|
|
717
|
-
callFrames1[i].columnNumber !== callFrames2[i].columnNumber) {
|
|
718
|
-
return false;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
return this.isEqualStackTraces(stackTrace1.parent, stackTrace2.parent);
|
|
714
|
+
areAffectedResourcesEquivalent(this.#affectedResources, msg.#affectedResources) &&
|
|
715
|
+
areStackTracesEquivalent(this.stackTrace, msg.stackTrace);
|
|
722
716
|
}
|
|
723
717
|
}
|
|
724
718
|
|
|
@@ -815,20 +815,10 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
|
815
815
|
}
|
|
816
816
|
|
|
817
817
|
createRawLocationsByStackTrace(stackTrace: Protocol.Runtime.StackTrace): Location[] {
|
|
818
|
-
const
|
|
819
|
-
let current:
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
frames.push(frame);
|
|
823
|
-
}
|
|
824
|
-
current = current.parent;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
const rawLocations = [];
|
|
828
|
-
for (const frame of frames) {
|
|
829
|
-
const rawLocation = this.createRawLocationByScriptId(frame.scriptId, frame.lineNumber, frame.columnNumber);
|
|
830
|
-
if (rawLocation) {
|
|
831
|
-
rawLocations.push(rawLocation);
|
|
818
|
+
const rawLocations: Location[] = [];
|
|
819
|
+
for (let current: Protocol.Runtime.StackTrace|undefined = stackTrace; current; current = current.parent) {
|
|
820
|
+
for (const {scriptId, lineNumber, columnNumber} of current.callFrames) {
|
|
821
|
+
rawLocations.push(this.createRawLocationByScriptId(scriptId, lineNumber, columnNumber));
|
|
832
822
|
}
|
|
833
823
|
}
|
|
834
824
|
return rawLocations;
|
|
@@ -43,9 +43,13 @@ const UIStrings = {
|
|
|
43
43
|
*/
|
|
44
44
|
captureAsyncStackTraces: 'Capture async stack traces',
|
|
45
45
|
/**
|
|
46
|
-
*@description Text
|
|
46
|
+
*@description Text of a setting that turn on the measuring rulers when hover over a target
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
showRulersOnHover: 'Show rulers on hover',
|
|
49
|
+
/**
|
|
50
|
+
*@description Text of a setting that do turn off the measuring rulers when hover over a target
|
|
51
|
+
*/
|
|
52
|
+
doNotShowRulersOnHover: 'Do not show rulers on hover',
|
|
49
53
|
/**
|
|
50
54
|
*@description Title of a setting that turns on grid area name labels
|
|
51
55
|
*/
|
|
@@ -436,9 +440,19 @@ Common.Settings.registerSettingExtension({
|
|
|
436
440
|
Common.Settings.registerSettingExtension({
|
|
437
441
|
category: Common.Settings.SettingCategory.ELEMENTS,
|
|
438
442
|
storageType: Common.Settings.SettingStorageType.Synced,
|
|
439
|
-
title: i18nLazyString(UIStrings.
|
|
443
|
+
title: i18nLazyString(UIStrings.showRulersOnHover),
|
|
440
444
|
settingName: 'showMetricsRulers',
|
|
441
445
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
446
|
+
options: [
|
|
447
|
+
{
|
|
448
|
+
value: true,
|
|
449
|
+
title: i18nLazyString(UIStrings.showRulersOnHover),
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
value: false,
|
|
453
|
+
title: i18nLazyString(UIStrings.doNotShowRulersOnHover),
|
|
454
|
+
},
|
|
455
|
+
],
|
|
442
456
|
defaultValue: false,
|
|
443
457
|
});
|
|
444
458
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import '../../core/dom_extension/dom_extension.js';
|
|
6
6
|
import '../../Images/Images.js';
|
|
7
7
|
|
|
8
|
-
import * as Platform from '../../core/platform/platform.js';
|
|
8
|
+
import * as Platform from '../../core/platform/platform.js';
|
|
9
9
|
|
|
10
10
|
Platform.runOnWindowLoad(() => {
|
|
11
11
|
if (!window.opener) {
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
import '../shell/shell.js';
|
|
5
5
|
import './devtools_app-meta-files.js';
|
|
6
|
-
import * as Startup from '../startup/startup.js';
|
|
6
|
+
import * as Startup from '../startup/startup.js';
|
|
7
7
|
|
|
8
8
|
Startup.RuntimeInstantiator.startApplication('devtools_app');
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"modules" : [
|
|
3
|
-
{ "name": "panels/
|
|
4
|
-
|
|
5
|
-
{ "name": "panels/lighthouse" },
|
|
6
|
-
{ "name": "emulated_devices" },
|
|
7
|
-
{ "name": "panels/issues" },
|
|
8
|
-
{ "name": "panels/layers" },
|
|
9
|
-
{ "name": "panels/layer_viewer" },
|
|
10
|
-
{ "name": "panels/network" },
|
|
11
|
-
{ "name": "panels/application" },
|
|
12
|
-
{ "name": "panels/security" },
|
|
13
|
-
{ "name": "panels/timeline" },
|
|
14
|
-
{ "name": "panels/media" }
|
|
3
|
+
{ "name": "panels/lighthouse" }
|
|
15
4
|
],
|
|
16
5
|
"extends": "shell"
|
|
17
6
|
}
|
|
@@ -8,7 +8,7 @@ import '../../third_party/codemirror/package/mode/xml/xml.js';
|
|
|
8
8
|
import '../../third_party/codemirror/package/mode/javascript/javascript.js';
|
|
9
9
|
|
|
10
10
|
import * as Platform from '../../core/platform/platform.js';
|
|
11
|
-
import * as FormatterWorker from './formatter_worker.js';
|
|
11
|
+
import * as FormatterWorker from './formatter_worker.js';
|
|
12
12
|
|
|
13
13
|
import {FormatterActions} from './FormatterActions.js';
|
|
14
14
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import * as HeapSnapshotWorker from './heap_snapshot_worker.js';
|
|
5
|
+
import * as HeapSnapshotWorker from './heap_snapshot_worker.js';
|
|
6
6
|
|
|
7
7
|
// We need to force the worker context
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
import '../devtools_app/devtools_app.js';
|
|
5
5
|
import '../../panels/screencast/screencast-meta.js';
|
|
6
|
-
import * as Startup from '../startup/startup.js';
|
|
6
|
+
import * as Startup from '../startup/startup.js';
|
|
7
7
|
|
|
8
8
|
Startup.RuntimeInstantiator.startApplication('inspector');
|
|
@@ -6,6 +6,8 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
+
import type * as InspectorMain from './inspector_main.js';
|
|
10
|
+
|
|
9
11
|
const UIStrings = {
|
|
10
12
|
/**
|
|
11
13
|
* @description Title of the Rendering tool. The rendering tool is a collection of settings that
|
|
@@ -101,9 +103,6 @@ const UIStrings = {
|
|
|
101
103
|
const str_ = i18n.i18n.registerUIStrings('entrypoints/inspector_main/inspector_main-meta.ts', UIStrings);
|
|
102
104
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
103
105
|
|
|
104
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
105
|
-
import type * as InspectorMain from './inspector_main.js';
|
|
106
|
-
|
|
107
106
|
let loadedInspectorMainModule: (typeof InspectorMain|undefined);
|
|
108
107
|
|
|
109
108
|
async function loadInspectorMainModule(): Promise<typeof InspectorMain> {
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
import '../shell/shell.js';
|
|
5
5
|
import '../../panels/js_profiler/js_profiler-meta.js';
|
|
6
6
|
import './JsMain.js';
|
|
7
|
-
import * as Startup from '../startup/startup.js';
|
|
7
|
+
import * as Startup from '../startup/startup.js';
|
|
8
8
|
|
|
9
9
|
Startup.RuntimeInstantiator.startApplication('js_app');
|
|
@@ -146,6 +146,7 @@ export class MainImpl {
|
|
|
146
146
|
});
|
|
147
147
|
|
|
148
148
|
console.timeStamp('Main._gotPreferences');
|
|
149
|
+
this.initializeGlobalsForLayoutTests();
|
|
149
150
|
this.createSettings(prefs);
|
|
150
151
|
await this.requestAndRegisterLocaleData();
|
|
151
152
|
|
|
@@ -157,6 +158,31 @@ export class MainImpl {
|
|
|
157
158
|
this.createAppUI();
|
|
158
159
|
}
|
|
159
160
|
|
|
161
|
+
private initializeGlobalsForLayoutTests(): void {
|
|
162
|
+
// @ts-ignore layout test global
|
|
163
|
+
self.Common = self.Common || {};
|
|
164
|
+
// @ts-ignore layout test global
|
|
165
|
+
self.UI = self.UI || {};
|
|
166
|
+
// @ts-ignore layout test global
|
|
167
|
+
self.UI.panels = self.UI.panels || {};
|
|
168
|
+
// @ts-ignore layout test global
|
|
169
|
+
self.SDK = self.SDK || {};
|
|
170
|
+
// @ts-ignore layout test global
|
|
171
|
+
self.Bindings = self.Bindings || {};
|
|
172
|
+
// @ts-ignore layout test global
|
|
173
|
+
self.Persistence = self.Persistence || {};
|
|
174
|
+
// @ts-ignore layout test global
|
|
175
|
+
self.Workspace = self.Workspace || {};
|
|
176
|
+
// @ts-ignore layout test global
|
|
177
|
+
self.Extensions = self.Extensions || {};
|
|
178
|
+
// @ts-ignore e2e test global
|
|
179
|
+
self.Host = self.Host || {};
|
|
180
|
+
// @ts-ignore e2e test global
|
|
181
|
+
self.Host.userMetrics = self.Host.userMetrics || Host.userMetrics;
|
|
182
|
+
// @ts-ignore e2e test global
|
|
183
|
+
self.Host.UserMetrics = self.Host.UserMetrics || Host.UserMetrics;
|
|
184
|
+
}
|
|
185
|
+
|
|
160
186
|
async requestAndRegisterLocaleData(): Promise<void> {
|
|
161
187
|
const settingLanguage = Common.Settings.Settings.instance().moduleSetting<string>('language').get();
|
|
162
188
|
const devToolsLocale = i18n.DevToolsLocale.DevToolsLocale.instance({
|
|
@@ -8,10 +8,9 @@ import * as SDK from '../../core/sdk/sdk.js';
|
|
|
8
8
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
9
9
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
10
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
11
|
+
import type * as InspectorMain from '../inspector_main/inspector_main.js';
|
|
11
12
|
|
|
12
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
13
13
|
import type * as Main from './main.js';
|
|
14
|
-
import type * as InspectorMain from '../inspector_main/inspector_main.js';
|
|
15
14
|
|
|
16
15
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
17
16
|
const UIStrings = {
|
|
@@ -2,6 +2,6 @@
|
|
|
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
|
import '../shell/shell.js';
|
|
5
|
-
import * as Startup from '../startup/startup.js';
|
|
5
|
+
import * as Startup from '../startup/startup.js';
|
|
6
6
|
|
|
7
7
|
Startup.RuntimeInstantiator.startApplication('ndb_app');
|
|
@@ -5,7 +5,7 @@ import '../shell/shell.js';
|
|
|
5
5
|
import '../../panels/js_profiler/js_profiler-meta.js';
|
|
6
6
|
import '../node_main/node_main-meta.js';
|
|
7
7
|
import './node_app-meta.js';
|
|
8
|
-
import * as Startup from '../startup/startup.js';
|
|
8
|
+
import * as Startup from '../startup/startup.js';
|
|
9
9
|
|
|
10
10
|
// Side-effect start the `node_main` module, which implements runnables in
|
|
11
11
|
// the NodeMain class
|
|
@@ -6,18 +6,7 @@ import '../../Images/Images.js';
|
|
|
6
6
|
import '../startup/startup.js';
|
|
7
7
|
import '../../core/root/root-legacy.js';
|
|
8
8
|
import '../../core/platform/platform.js';
|
|
9
|
-
import '../../core/common/common-legacy.js';
|
|
10
|
-
import '../../models/text_utils/text_utils-legacy.js';
|
|
11
9
|
import '../../core/dom_extension/dom_extension.js';
|
|
12
|
-
import '../../core/host/host-legacy.js';
|
|
13
|
-
import '../../core/protocol_client/protocol_client-legacy.js';
|
|
14
|
-
import '../../core/sdk/sdk-legacy.js';
|
|
15
|
-
import '../../ui/legacy/legacy-legacy.js';
|
|
16
|
-
import '../../models/workspace/workspace-legacy.js';
|
|
17
|
-
import '../../models/bindings/bindings-legacy.js';
|
|
18
|
-
import '../../ui/legacy/components/utils/utils-legacy.js';
|
|
19
|
-
import '../../models/persistence/persistence-legacy.js';
|
|
20
|
-
import '../../models/extensions/extensions-legacy.js';
|
|
21
10
|
|
|
22
11
|
import './shell-meta-files.js';
|
|
23
12
|
import '../main/main.js';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"modules": [
|
|
3
|
-
{ "name": "ui/legacy", "type": "autostart" }
|
|
4
|
-
{ "name": "ui/legacy/components/text_editor", "type": "autostart" },
|
|
5
|
-
{ "name": "ui/legacy/components/source_frame", "type": "autostart" },
|
|
6
|
-
|
|
7
|
-
{ "name": "panels/profiler" }
|
|
3
|
+
{ "name": "ui/legacy/components/text_editor", "type": "autostart" }
|
|
8
4
|
]
|
|
9
5
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import * as WasmParserWorker from './wasmparser_worker.js';
|
|
5
|
+
import * as WasmParserWorker from './wasmparser_worker.js';
|
|
6
6
|
|
|
7
7
|
self.onmessage = (event: {data: {method: string, params: {content: string}}}): void => {
|
|
8
8
|
const method = event.data.method;
|
|
@@ -13,6 +13,6 @@ import '../../panels/network/network-meta.js';
|
|
|
13
13
|
import '../../panels/application/application-meta.js';
|
|
14
14
|
import '../../panels/timeline/timeline-meta.js';
|
|
15
15
|
import './WorkerMain.js';
|
|
16
|
-
import * as Startup from '../startup/startup.js';
|
|
16
|
+
import * as Startup from '../startup/startup.js';
|
|
17
17
|
|
|
18
18
|
Startup.RuntimeInstantiator.startApplication('worker_app');
|
|
@@ -98,6 +98,8 @@ export function registerCommands(inspectorBackend) {
|
|
|
98
98
|
Labelledby: 'labelledby',
|
|
99
99
|
Owns: 'owns'
|
|
100
100
|
});
|
|
101
|
+
inspectorBackend.registerEvent('Accessibility.loadComplete', ['root']);
|
|
102
|
+
inspectorBackend.registerEvent('Accessibility.nodesUpdated', ['nodes']);
|
|
101
103
|
inspectorBackend.registerCommand('Accessibility.disable', [], []);
|
|
102
104
|
inspectorBackend.registerCommand('Accessibility.enable', [], []);
|
|
103
105
|
inspectorBackend.registerCommand(
|
|
@@ -117,6 +119,16 @@ export function registerCommands(inspectorBackend) {
|
|
|
117
119
|
{'name': 'frameId', 'type': 'string', 'optional': true}
|
|
118
120
|
],
|
|
119
121
|
['nodes']);
|
|
122
|
+
inspectorBackend.registerCommand(
|
|
123
|
+
'Accessibility.getRootAXNode', [{'name': 'frameId', 'type': 'string', 'optional': true}], ['node']);
|
|
124
|
+
inspectorBackend.registerCommand(
|
|
125
|
+
'Accessibility.getAXNodeAndAncestors',
|
|
126
|
+
[
|
|
127
|
+
{'name': 'nodeId', 'type': 'number', 'optional': true},
|
|
128
|
+
{'name': 'backendNodeId', 'type': 'number', 'optional': true},
|
|
129
|
+
{'name': 'objectId', 'type': 'string', 'optional': true}
|
|
130
|
+
],
|
|
131
|
+
['nodes']);
|
|
120
132
|
inspectorBackend.registerCommand(
|
|
121
133
|
'Accessibility.getChildAXNodes',
|
|
122
134
|
[{'name': 'id', 'type': 'string', 'optional': false}, {'name': 'frameId', 'type': 'string', 'optional': true}],
|
|
@@ -1970,6 +1982,7 @@ export function registerCommands(inspectorBackend) {
|
|
|
1970
1982
|
ChUaModel: 'ch-ua-model',
|
|
1971
1983
|
ChUaMobile: 'ch-ua-mobile',
|
|
1972
1984
|
ChUaFullVersion: 'ch-ua-full-version',
|
|
1985
|
+
ChUaFullVersionList: 'ch-ua-full-version-list',
|
|
1973
1986
|
ChUaPlatformVersion: 'ch-ua-platform-version',
|
|
1974
1987
|
ChUaReduced: 'ch-ua-reduced',
|
|
1975
1988
|
ChViewportHeight: 'ch-viewport-height',
|
|
@@ -1993,6 +2006,7 @@ export function registerCommands(inspectorBackend) {
|
|
|
1993
2006
|
Hid: 'hid',
|
|
1994
2007
|
IdleDetection: 'idle-detection',
|
|
1995
2008
|
InterestCohort: 'interest-cohort',
|
|
2009
|
+
JoinAdInterestGroup: 'join-ad-interest-group',
|
|
1996
2010
|
KeyboardMap: 'keyboard-map',
|
|
1997
2011
|
Magnetometer: 'magnetometer',
|
|
1998
2012
|
Microphone: 'microphone',
|
|
@@ -2001,6 +2015,7 @@ export function registerCommands(inspectorBackend) {
|
|
|
2001
2015
|
Payment: 'payment',
|
|
2002
2016
|
PictureInPicture: 'picture-in-picture',
|
|
2003
2017
|
PublickeyCredentialsGet: 'publickey-credentials-get',
|
|
2018
|
+
RunAdAuction: 'run-ad-auction',
|
|
2004
2019
|
ScreenWakeLock: 'screen-wake-lock',
|
|
2005
2020
|
Serial: 'serial',
|
|
2006
2021
|
SharedAutofill: 'shared-autofill',
|
|
@@ -2452,6 +2467,10 @@ export function registerCommands(inspectorBackend) {
|
|
|
2452
2467
|
[{'name': 'url', 'type': 'string', 'optional': false}, {'name': 'data', 'type': 'string', 'optional': false}],
|
|
2453
2468
|
[]);
|
|
2454
2469
|
inspectorBackend.registerCommand('Page.clearCompilationCache', [], []);
|
|
2470
|
+
inspectorBackend.registerEnum(
|
|
2471
|
+
'Page.SetSPCTransactionModeRequestMode', {None: 'none', Autoaccept: 'autoaccept', Autoreject: 'autoreject'});
|
|
2472
|
+
inspectorBackend.registerCommand(
|
|
2473
|
+
'Page.setSPCTransactionMode', [{'name': 'mode', 'type': 'string', 'optional': false}], []);
|
|
2455
2474
|
inspectorBackend.registerCommand(
|
|
2456
2475
|
'Page.generateTestReport',
|
|
2457
2476
|
[{'name': 'message', 'type': 'string', 'optional': false}, {'name': 'group', 'type': 'string', 'optional': true}],
|