chrome-devtools-frontend 1.0.942095 → 1.0.943709
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 -58
- package/config/gni/devtools_grd_files.gni +48 -7
- package/config/gni/devtools_image_files.gni +1 -1
- 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 +0 -32
- package/front_end/core/i18n/locales/af.json +455 -44
- package/front_end/core/i18n/locales/am.json +455 -44
- package/front_end/core/i18n/locales/ar.json +455 -44
- package/front_end/core/i18n/locales/as.json +455 -44
- package/front_end/core/i18n/locales/az.json +455 -44
- package/front_end/core/i18n/locales/be.json +456 -45
- package/front_end/core/i18n/locales/bg.json +455 -44
- package/front_end/core/i18n/locales/bn.json +455 -44
- package/front_end/core/i18n/locales/bs.json +455 -44
- package/front_end/core/i18n/locales/ca.json +457 -46
- package/front_end/core/i18n/locales/cs.json +458 -47
- package/front_end/core/i18n/locales/cy.json +455 -44
- package/front_end/core/i18n/locales/da.json +455 -44
- package/front_end/core/i18n/locales/de.json +455 -44
- package/front_end/core/i18n/locales/el.json +455 -44
- package/front_end/core/i18n/locales/en-GB.json +449 -38
- package/front_end/core/i18n/locales/en-US.json +8 -8
- package/front_end/core/i18n/locales/en-XL.json +8 -8
- package/front_end/core/i18n/locales/es-419.json +455 -44
- package/front_end/core/i18n/locales/es.json +455 -44
- package/front_end/core/i18n/locales/et.json +455 -44
- package/front_end/core/i18n/locales/eu.json +462 -51
- package/front_end/core/i18n/locales/fa.json +455 -44
- package/front_end/core/i18n/locales/fi.json +455 -44
- package/front_end/core/i18n/locales/fil.json +454 -43
- package/front_end/core/i18n/locales/fr-CA.json +455 -44
- package/front_end/core/i18n/locales/fr.json +456 -45
- package/front_end/core/i18n/locales/gl.json +455 -44
- package/front_end/core/i18n/locales/gu.json +456 -45
- package/front_end/core/i18n/locales/he.json +455 -44
- package/front_end/core/i18n/locales/hi.json +455 -44
- package/front_end/core/i18n/locales/hr.json +455 -44
- package/front_end/core/i18n/locales/hu.json +455 -44
- package/front_end/core/i18n/locales/hy.json +455 -44
- package/front_end/core/i18n/locales/id.json +455 -44
- package/front_end/core/i18n/locales/is.json +455 -44
- package/front_end/core/i18n/locales/it.json +502 -91
- package/front_end/core/i18n/locales/ja.json +456 -45
- package/front_end/core/i18n/locales/ka.json +455 -44
- package/front_end/core/i18n/locales/kk.json +456 -45
- package/front_end/core/i18n/locales/km.json +455 -44
- package/front_end/core/i18n/locales/kn.json +455 -44
- package/front_end/core/i18n/locales/ko.json +455 -44
- package/front_end/core/i18n/locales/ky.json +456 -45
- package/front_end/core/i18n/locales/lo.json +454 -43
- package/front_end/core/i18n/locales/lt.json +455 -44
- package/front_end/core/i18n/locales/lv.json +458 -47
- package/front_end/core/i18n/locales/mk.json +455 -44
- package/front_end/core/i18n/locales/ml.json +461 -50
- package/front_end/core/i18n/locales/mn.json +455 -44
- package/front_end/core/i18n/locales/mr.json +455 -44
- package/front_end/core/i18n/locales/ms.json +455 -44
- package/front_end/core/i18n/locales/my.json +456 -45
- package/front_end/core/i18n/locales/ne.json +456 -45
- package/front_end/core/i18n/locales/nl.json +532 -121
- package/front_end/core/i18n/locales/no.json +455 -44
- package/front_end/core/i18n/locales/or.json +455 -44
- package/front_end/core/i18n/locales/pa.json +455 -44
- package/front_end/core/i18n/locales/pl.json +455 -44
- package/front_end/core/i18n/locales/pt-PT.json +504 -93
- package/front_end/core/i18n/locales/pt.json +454 -43
- package/front_end/core/i18n/locales/ro.json +455 -44
- package/front_end/core/i18n/locales/ru.json +455 -44
- package/front_end/core/i18n/locales/si.json +455 -44
- package/front_end/core/i18n/locales/sk.json +456 -45
- package/front_end/core/i18n/locales/sl.json +455 -44
- package/front_end/core/i18n/locales/sq.json +455 -44
- package/front_end/core/i18n/locales/sr-Latn.json +455 -44
- package/front_end/core/i18n/locales/sr.json +455 -44
- package/front_end/core/i18n/locales/sv.json +456 -45
- package/front_end/core/i18n/locales/sw.json +455 -44
- package/front_end/core/i18n/locales/ta.json +456 -45
- package/front_end/core/i18n/locales/te.json +454 -43
- package/front_end/core/i18n/locales/th.json +455 -44
- package/front_end/core/i18n/locales/tr.json +455 -44
- package/front_end/core/i18n/locales/uk.json +455 -44
- package/front_end/core/i18n/locales/ur.json +455 -44
- package/front_end/core/i18n/locales/uz.json +455 -44
- package/front_end/core/i18n/locales/vi.json +455 -44
- package/front_end/core/i18n/locales/zh-HK.json +459 -48
- package/front_end/core/i18n/locales/zh-TW.json +457 -46
- package/front_end/core/i18n/locales/zh.json +460 -49
- package/front_end/core/i18n/locales/zu.json +455 -44
- package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
- package/front_end/core/sdk/AccessibilityModel.ts +99 -78
- 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/NetworkManager.ts +3 -0
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
- 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 -6
- 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 +2 -2
- 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.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 -3
- package/front_end/generated/InspectorBackendCommands.js +21 -1
- package/front_end/generated/protocol-mapping.d.ts +32 -1
- package/front_end/generated/protocol-proxy-api.d.ts +36 -2
- package/front_end/generated/protocol.d.ts +120 -7
- 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/test_runner/TestRunner.js +3 -1
- package/front_end/models/persistence/persistence-meta.ts +0 -1
- package/front_end/panels/accessibility/accessibility-meta.ts +0 -1
- package/front_end/panels/animation/animation-meta.ts +0 -1
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -1
- package/front_end/panels/application/BackForwardCacheStrings.ts +3 -1
- package/front_end/panels/application/BackForwardCacheView.ts +26 -26
- package/front_end/panels/application/application-meta.ts +0 -1
- 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 +2 -6
- 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/coverage-meta.ts +0 -1
- 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/AccessibilityTreeUtils.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +4 -3
- package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -0
- 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 +0 -3
- 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 -1
- 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/module.json +0 -6
- package/front_end/panels/media/media-meta.ts +0 -1
- package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +0 -1
- package/front_end/panels/network/network-meta.ts +1 -2
- 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 -1
- 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/Plugin.ts +0 -3
- package/front_end/panels/sources/UISourceCodeFrame.ts +23 -49
- package/front_end/panels/sources/sources-meta.ts +2 -6
- 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/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +1 -1
- 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/docs/component_docs.ts +14 -0
- package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
- 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/tree_outline/TreeOutline.ts +71 -8
- package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +8 -6
- package/front_end/ui/legacy/Dialog.ts +11 -4
- 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 +3 -2
- 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/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/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/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 +3 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +6 -6
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +7 -2
- package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +2 -0
- 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/textButton.css +5 -4
- 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/inspector_overlay/css_grid_label_helpers.ts +1 -1
- package/inspector_overlay/highlight_common.ts +1 -1
- package/inspector_overlay/tool_highlight.ts +1 -1
- package/package.json +1 -1
- package/scripts/check_gn.js +0 -35
- package/scripts/eslint_rules/lib/es_modules_import.js +15 -24
- package/scripts/eslint_rules/tests/es_modules_import_test.js +8 -16
- package/front_end/emulated_devices/module.json +0 -6
- package/front_end/panels/emulation/module.json +0 -11
- package/front_end/panels/js_profiler/module.json +0 -5
- package/front_end/panels/layers/module.json +0 -4
- package/front_end/panels/profiler/module.json +0 -5
- package/front_end/panels/screencast/module.json +0 -6
- package/front_end/panels/timeline/module.json +0 -6
- package/front_end/third_party/lighthouse/report-assets/report.css +0 -1774
- 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
|
@@ -17,67 +17,67 @@ import backForwardCacheViewStyles from './backForwardCacheView.css.js';
|
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
20
|
-
* @description Title text in
|
|
20
|
+
* @description Title text in back/forward cache view of the Application panel
|
|
21
21
|
*/
|
|
22
22
|
mainFrame: 'Main Frame',
|
|
23
23
|
/**
|
|
24
|
-
* @description Title text in
|
|
24
|
+
* @description Title text in back/forward cache view of the Application panel
|
|
25
25
|
*/
|
|
26
|
-
backForwardCacheTitle: 'Back
|
|
26
|
+
backForwardCacheTitle: 'Back/forward cache',
|
|
27
27
|
/**
|
|
28
28
|
* @description Status text for the status of the main frame
|
|
29
29
|
*/
|
|
30
30
|
unavailable: 'unavailable',
|
|
31
31
|
/**
|
|
32
|
-
* @description Entry name text in the
|
|
32
|
+
* @description Entry name text in the back/forward cache view of the Application panel
|
|
33
33
|
*/
|
|
34
34
|
url: 'URL',
|
|
35
35
|
/**
|
|
36
|
-
* @description Entry name text in the
|
|
36
|
+
* @description Entry name text in the back/forward cache view of the Application panel
|
|
37
37
|
*/
|
|
38
|
-
bfcacheStatus: 'Back
|
|
38
|
+
bfcacheStatus: 'Back/forward cache Status',
|
|
39
39
|
/**
|
|
40
|
-
* @description Status text for the status of the
|
|
40
|
+
* @description Status text for the status of the back/forward cache status
|
|
41
41
|
*/
|
|
42
42
|
unknown: 'unknown',
|
|
43
43
|
/**
|
|
44
|
-
* @description Status text for the status of the
|
|
45
|
-
* the
|
|
44
|
+
* @description Status text for the status of the back/forward cache status indicating that
|
|
45
|
+
* the back/forward cache was not used and a normal navigation occured instead.
|
|
46
46
|
*/
|
|
47
|
-
normalNavigation: 'Normal navigation (Not restored from
|
|
47
|
+
normalNavigation: 'Normal navigation (Not restored from back/forward cache)',
|
|
48
48
|
/**
|
|
49
|
-
* @description Status text for the status of the
|
|
50
|
-
* the
|
|
49
|
+
* @description Status text for the status of the back/forward cache status indicating that
|
|
50
|
+
* the back/forward cache was used to restore the page instead of reloading it.
|
|
51
51
|
*/
|
|
52
|
-
restoredFromBFCache: 'Restored from
|
|
52
|
+
restoredFromBFCache: 'Restored from back/forward cache',
|
|
53
53
|
/**
|
|
54
54
|
* @description Label for a list of reasons which prevent the page from being eligible for
|
|
55
|
-
*
|
|
56
|
-
* page eligible for
|
|
55
|
+
* back/forward cache. These reasons are actionable i.e. they can be cleaned up to make the
|
|
56
|
+
* page eligible for back/forward cache.
|
|
57
57
|
*/
|
|
58
58
|
pageSupportNeeded: 'Actionable',
|
|
59
59
|
/**
|
|
60
60
|
* @description Explanation for actionable items which prevent the page from being eligible
|
|
61
|
-
* for
|
|
61
|
+
* for back/forward cache.
|
|
62
62
|
*/
|
|
63
63
|
pageSupportNeededExplanation:
|
|
64
|
-
'These reasons are actionable i.e. they can be cleaned up to make the page eligible for
|
|
64
|
+
'These reasons are actionable i.e. they can be cleaned up to make the page eligible for back/forward cache.',
|
|
65
65
|
/**
|
|
66
66
|
* @description Label for a list of reasons which prevent the page from being eligible for
|
|
67
|
-
*
|
|
68
|
-
* cleaned up by developers to make the page eligible for
|
|
67
|
+
* back/forward cache. These reasons are circumstantial / not actionable i.e. they cannot be
|
|
68
|
+
* cleaned up by developers to make the page eligible for back/forward cache.
|
|
69
69
|
*/
|
|
70
70
|
circumstantial: 'Not Actionable',
|
|
71
71
|
/**
|
|
72
72
|
* @description Explanation for circumstantial/non-actionable items which prevent the page from being eligible
|
|
73
|
-
* for
|
|
73
|
+
* for back/forward cache.
|
|
74
74
|
*/
|
|
75
75
|
circumstantialExplanation:
|
|
76
76
|
'These reasons are not actionable i.e. caching was prevented by something outside of the direct control of the page.',
|
|
77
77
|
/**
|
|
78
78
|
* @description Label for a list of reasons which prevent the page from being eligible for
|
|
79
|
-
*
|
|
80
|
-
* of chrome they will not prevent
|
|
79
|
+
* back/forward cache. These reasons are pending support by chrome i.e. in a future version
|
|
80
|
+
* of chrome they will not prevent back/forward cache usage anymore.
|
|
81
81
|
*/
|
|
82
82
|
supportPending: 'Pending Support',
|
|
83
83
|
/**
|
|
@@ -86,10 +86,10 @@ const UIStrings = {
|
|
|
86
86
|
runTest: 'Run Test',
|
|
87
87
|
/**
|
|
88
88
|
* @description Explanation for 'pending support' items which prevent the page from being eligible
|
|
89
|
-
* for
|
|
89
|
+
* for back/forward cache.
|
|
90
90
|
*/
|
|
91
91
|
supportPendingExplanation:
|
|
92
|
-
'Chrome support for these reasons is pending i.e. they will not prevent the page from being eligible for
|
|
92
|
+
'Chrome support for these reasons is pending i.e. they will not prevent the page from being eligible for back/forward cache in a future version of Chrome.',
|
|
93
93
|
};
|
|
94
94
|
const str_ = i18n.i18n.registerUIStrings('panels/application/BackForwardCacheView.ts', UIStrings);
|
|
95
95
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -168,9 +168,9 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
168
168
|
|
|
169
169
|
// We can know whether the current page can use BFCache
|
|
170
170
|
// as the browser navigates to another unrelated page and goes back to the current page.
|
|
171
|
-
// We chose "chrome://
|
|
171
|
+
// We chose "chrome://terms" because it must be cross-site.
|
|
172
172
|
// Ideally, We want to have our own testing page like "chrome: //bfcache-test".
|
|
173
|
-
resourceTreeModel.navigate('chrome://
|
|
173
|
+
resourceTreeModel.navigate('chrome://terms');
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
|
|
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Resources from './application.js';
|
|
11
10
|
|
|
12
11
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -36,7 +36,7 @@ export class EndpointsGrid extends HTMLElement {
|
|
|
36
36
|
// clang-format off
|
|
37
37
|
render(html`
|
|
38
38
|
<div class="reporting-container">
|
|
39
|
-
<div class="reporting-header"
|
|
39
|
+
<div class="reporting-header">${i18n.i18n.lockedString('Endpoints')}</div>
|
|
40
40
|
<div class="reporting-placeholder">
|
|
41
41
|
<div>${i18nString(UIStrings.noEndpointsToDisplay)}</div>
|
|
42
42
|
</div>
|
|
@@ -136,7 +136,7 @@ export class ReportsGrid extends HTMLElement {
|
|
|
136
136
|
// clang-format off
|
|
137
137
|
render(html`
|
|
138
138
|
<div class="reporting-container">
|
|
139
|
-
<div class="reporting-header"
|
|
139
|
+
<div class="reporting-header">${i18n.i18n.lockedString('Reports')}</div>
|
|
140
140
|
${this.reports.length > 0 ? html`
|
|
141
141
|
<${DataGrid.DataGridController.DataGridController.litTagName} .data=${
|
|
142
142
|
reportsGridData as DataGrid.DataGridController.DataGridControllerData}>
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
6
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
7
|
+
import type * as Sources from '../sources/sources.js';
|
|
7
8
|
|
|
8
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
9
9
|
import type * as BrowserDebugger from './browser_debugger.js';
|
|
10
|
-
import type * as Sources from '../sources/sources.js';
|
|
11
10
|
|
|
12
11
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
13
12
|
const UIStrings = {
|
|
@@ -7,7 +7,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
7
7
|
import * as WorkspaceDiff from '../../models/workspace_diff/workspace_diff.js';
|
|
8
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
11
10
|
import type * as Changes from './changes.js';
|
|
12
11
|
|
|
13
12
|
let loadedChangesModule: (typeof Changes|undefined);
|
|
@@ -164,8 +164,6 @@ export class ConsolePinPane extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
let consolePinNumber = 0;
|
|
168
|
-
|
|
169
167
|
export class ConsolePin {
|
|
170
168
|
private readonly pinElement: Element;
|
|
171
169
|
private readonly pinPreview: HTMLElement;
|
|
@@ -175,11 +173,9 @@ export class ConsolePin {
|
|
|
175
173
|
private committedExpression: string;
|
|
176
174
|
private hovered: boolean;
|
|
177
175
|
private lastNode: SDK.RemoteObject.RemoteObject|null;
|
|
178
|
-
private consolePinNumber: number;
|
|
179
176
|
private deletePinIcon: UI.UIUtils.DevToolsCloseButton;
|
|
180
177
|
|
|
181
178
|
constructor(expression: string, private readonly pinPane: ConsolePinPane, private readonly focusOut: () => void) {
|
|
182
|
-
this.consolePinNumber = ++consolePinNumber;
|
|
183
179
|
this.deletePinIcon = document.createElement('div', {is: 'dt-close-button'}) as UI.UIUtils.DevToolsCloseButton;
|
|
184
180
|
this.deletePinIcon.gray = true;
|
|
185
181
|
this.deletePinIcon.classList.add('close-button');
|
|
@@ -325,8 +321,8 @@ export class ConsolePin {
|
|
|
325
321
|
const executionContext = UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext);
|
|
326
322
|
const preprocessedExpression = ObjectUI.JavaScriptREPL.JavaScriptREPL.preprocessExpression(text);
|
|
327
323
|
const {preview, result} = await ObjectUI.JavaScriptREPL.JavaScriptREPL.evaluateAndBuildPreview(
|
|
328
|
-
|
|
329
|
-
|
|
324
|
+
preprocessedExpression, throwOnSideEffect, false /* replMode */, timeout, !isEditing /* allowErrors */,
|
|
325
|
+
'console', true /* awaitPromise */);
|
|
330
326
|
if (this.lastResult && this.lastExecutionContext) {
|
|
331
327
|
this.lastExecutionContext.runtimeModel.releaseEvaluationResult(this.lastResult);
|
|
332
328
|
}
|
|
@@ -50,9 +50,12 @@ import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
|
|
|
50
50
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
51
51
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
52
52
|
import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
|
|
53
|
+
// eslint-disable-next-line rulesdir/es_modules_import
|
|
54
|
+
import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.css.js';
|
|
53
55
|
import type {Chrome} from '../../../extension-api/ExtensionAPI.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
54
56
|
|
|
55
57
|
import type {ConsoleViewportElement} from './ConsoleViewport.js';
|
|
58
|
+
import consoleViewStyles from './consoleView.css.js';
|
|
56
59
|
|
|
57
60
|
const UIStrings = {
|
|
58
61
|
/**
|
|
@@ -2067,7 +2070,11 @@ export class ConsoleTableMessageView extends ConsoleViewMessage {
|
|
|
2067
2070
|
const tableElement = formattedResult.createChild('div', 'console-message-formatted-table');
|
|
2068
2071
|
const dataGridContainer = tableElement.createChild('span');
|
|
2069
2072
|
tableElement.appendChild(this.formatParameter(actualTable, true, false));
|
|
2070
|
-
dataGridContainer.
|
|
2073
|
+
const shadowRoot = dataGridContainer.attachShadow({mode: 'open'});
|
|
2074
|
+
const dataGridWidget = this.dataGrid.asWidget();
|
|
2075
|
+
dataGridWidget.markAsRoot();
|
|
2076
|
+
dataGridWidget.show(shadowRoot as unknown as Element);
|
|
2077
|
+
dataGridWidget.registerCSSFiles([consoleViewStyles, objectValueStyles]);
|
|
2071
2078
|
formattedMessage.appendChild(formattedResult);
|
|
2072
2079
|
this.dataGrid.renderInline();
|
|
2073
2080
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
9
8
|
import type * as Console from './console.js';
|
|
10
9
|
|
|
11
10
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -6,7 +6,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as DeveloperResources from './developer_resources.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -44,7 +44,7 @@ export function sdkNodeToAXTreeNode(sdkNode: SDK.AccessibilityModel.Accessibilit
|
|
|
44
44
|
let localRoot = axmodel.axNodeForDOMNode(document);
|
|
45
45
|
if (!localRoot && frameId) {
|
|
46
46
|
// Request the root node of the iframe document:
|
|
47
|
-
localRoot = await axmodel.requestRootNode(
|
|
47
|
+
localRoot = await axmodel.requestRootNode(frameId) || null;
|
|
48
48
|
}
|
|
49
49
|
if (!localRoot) {
|
|
50
50
|
throw new Error('Could not find root node');
|
|
@@ -104,7 +104,7 @@ export class AccessibilityTreeView extends UI.Widget.VBox {
|
|
|
104
104
|
|
|
105
105
|
async update(node: SDK.DOMModel.DOMNode): Promise<void> {
|
|
106
106
|
const axModel = node.domModel().target().model(SDK.AccessibilityModel.AccessibilityModel);
|
|
107
|
-
await axModel?.
|
|
107
|
+
await axModel?.requestAndLoadSubTreeToNode(node);
|
|
108
108
|
this.renderTree();
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -140,7 +140,7 @@ export class AccessibilityTreeView extends UI.Widget.VBox {
|
|
|
140
140
|
|
|
141
141
|
async refreshAccessibilityTree(accessibilityModel: SDK.AccessibilityModel.AccessibilityModel): Promise<void> {
|
|
142
142
|
// We always expand the root node so we might as well fetch one level of children immediately.
|
|
143
|
-
const root = await accessibilityModel.requestRootNode(
|
|
143
|
+
const root = await accessibilityModel.requestRootNode();
|
|
144
144
|
if (!root) {
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
@@ -169,7 +169,8 @@ export class AccessibilityTreeView extends UI.Widget.VBox {
|
|
|
169
169
|
// E
|
|
170
170
|
// Where only A is already loaded into the model, calling requestAndLoadSubTreeToNode(C) will
|
|
171
171
|
// load [A, B, D, C] into the model, and return C.
|
|
172
|
-
|
|
172
|
+
await this.accessibilityModel.requestAndLoadSubTreeToNode(selectedNode);
|
|
173
|
+
const inspectedAXNode = this.accessibilityModel.axNodeForDOMNode(selectedNode);
|
|
173
174
|
if (!inspectedAXNode) {
|
|
174
175
|
return;
|
|
175
176
|
}
|
|
@@ -7,7 +7,6 @@ import * as Root from '../../core/root/root.js';
|
|
|
7
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
11
10
|
import type * as Elements from './elements.js';
|
|
12
11
|
|
|
13
12
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -11,6 +11,8 @@ import * as UI from '../../ui/legacy/legacy.js';
|
|
|
11
11
|
import * as MobileThrottling from '../mobile_throttling/mobile_throttling.js';
|
|
12
12
|
import * as EmulationComponents from './components/components.js';
|
|
13
13
|
|
|
14
|
+
import deviceModeToolbarStyles from './deviceModeToolbar.css.legacy.js';
|
|
15
|
+
|
|
14
16
|
const UIStrings = {
|
|
15
17
|
/**
|
|
16
18
|
* @description Title of the device dimensions selection iteam in the Device Mode Toolbar.
|
|
@@ -518,7 +520,7 @@ export class DeviceModeToolbar {
|
|
|
518
520
|
private wrapToolbarItem(element: Element): UI.Toolbar.ToolbarItem {
|
|
519
521
|
const container = document.createElement('div');
|
|
520
522
|
const shadowRoot = UI.Utils.createShadowRootWithCoreStyles(
|
|
521
|
-
container, {cssFile:
|
|
523
|
+
container, {cssFile: deviceModeToolbarStyles, delegatesFocus: undefined});
|
|
522
524
|
shadowRoot.appendChild(element);
|
|
523
525
|
return new UI.Toolbar.ToolbarItem(container);
|
|
524
526
|
}
|
|
@@ -12,6 +12,7 @@ import * as EmulationModel from '../../models/emulation/emulation.js';
|
|
|
12
12
|
|
|
13
13
|
import {DeviceModeToolbar} from './DeviceModeToolbar.js';
|
|
14
14
|
import {MediaQueryInspector} from './MediaQueryInspector.js';
|
|
15
|
+
import deviceModeViewStyles from './deviceModeView.css.legacy.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/**
|
|
@@ -98,7 +99,7 @@ export class DeviceModeView extends UI.Widget.VBox {
|
|
|
98
99
|
|
|
99
100
|
this.setMinimumSize(150, 150);
|
|
100
101
|
this.element.classList.add('device-mode-view');
|
|
101
|
-
this.registerRequiredCSS(
|
|
102
|
+
this.registerRequiredCSS(deviceModeViewStyles);
|
|
102
103
|
|
|
103
104
|
this.model = EmulationModel.DeviceModeModel.DeviceModeModel.instance();
|
|
104
105
|
this.model.addEventListener(EmulationModel.DeviceModeModel.Events.Updated, this.updateUI, this);
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
7
7
|
|
|
8
|
+
import inspectedPagePlaceholderStyles from './inspectedPagePlaceholder.css.legacy.js';
|
|
9
|
+
|
|
8
10
|
let inspectedPagePlaceholderInstance: InspectedPagePlaceholder;
|
|
9
11
|
|
|
10
12
|
export class InspectedPagePlaceholder extends Common.ObjectWrapper.eventMixin<EventTypes, typeof UI.Widget.Widget>(
|
|
@@ -12,7 +14,7 @@ export class InspectedPagePlaceholder extends Common.ObjectWrapper.eventMixin<Ev
|
|
|
12
14
|
private updateId?: number;
|
|
13
15
|
constructor() {
|
|
14
16
|
super(true);
|
|
15
|
-
this.registerRequiredCSS(
|
|
17
|
+
this.registerRequiredCSS(inspectedPagePlaceholderStyles);
|
|
16
18
|
UI.ZoomManager.ZoomManager.instance().addEventListener(UI.ZoomManager.Events.ZoomChanged, this.onResize, this);
|
|
17
19
|
this.restoreMinimumSize();
|
|
18
20
|
}
|
|
@@ -10,6 +10,8 @@ import * as Bindings from '../../models/bindings/bindings.js';
|
|
|
10
10
|
import type * as Workspace from '../../models/workspace/workspace.js';
|
|
11
11
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
12
12
|
|
|
13
|
+
import mediaQueryInspectorStyles from './mediaQueryInspector.css.legacy.js';
|
|
14
|
+
|
|
13
15
|
const UIStrings = {
|
|
14
16
|
/**
|
|
15
17
|
* @description A context menu item/command in the Media Query Inspector of the Device Toolbar.
|
|
@@ -32,7 +34,7 @@ export class MediaQueryInspector extends UI.Widget.Widget implements
|
|
|
32
34
|
|
|
33
35
|
constructor(getWidthCallback: () => number, setWidthCallback: (arg0: number) => void) {
|
|
34
36
|
super(true);
|
|
35
|
-
this.registerRequiredCSS(
|
|
37
|
+
this.registerRequiredCSS(mediaQueryInspectorStyles);
|
|
36
38
|
this.contentElement.classList.add('media-inspector-view');
|
|
37
39
|
this.contentElement.addEventListener('click', this.onMediaQueryClicked.bind(this), false);
|
|
38
40
|
this.contentElement.addEventListener('contextmenu', this.onContextMenu.bind(this), false);
|
|
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Emulation from './emulation.js';
|
|
11
10
|
|
|
12
11
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -69,8 +68,6 @@ let loadedEmulationModule: (typeof Emulation|undefined);
|
|
|
69
68
|
|
|
70
69
|
async function loadEmulationModule(): Promise<typeof Emulation> {
|
|
71
70
|
if (!loadedEmulationModule) {
|
|
72
|
-
// Side-effect import resources in module.json
|
|
73
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/emulation');
|
|
74
71
|
loadedEmulationModule = await import('./emulation.js');
|
|
75
72
|
}
|
|
76
73
|
return loadedEmulationModule;
|
|
@@ -6,7 +6,6 @@ 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
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Help from './help.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -6,7 +6,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Input from './input.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -7,7 +7,6 @@ import * as Root from '../../core/root/root.js';
|
|
|
7
7
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
8
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
11
10
|
import type * as Issues from './issues.js';
|
|
12
11
|
|
|
13
12
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import * as Root from '../../core/root/root.js';
|
|
7
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
7
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
8
|
import type * as Profiler from '../profiler/profiler.js';
|
|
11
9
|
|
|
12
10
|
const UIStrings = {
|
|
@@ -30,8 +28,6 @@ let loadedProfilerModule: (typeof Profiler|undefined);
|
|
|
30
28
|
|
|
31
29
|
async function loadProfilerModule(): Promise<typeof Profiler> {
|
|
32
30
|
if (!loadedProfilerModule) {
|
|
33
|
-
// Side-effect import resources in module.json
|
|
34
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/profiler');
|
|
35
31
|
loadedProfilerModule = await import('../profiler/profiler.js');
|
|
36
32
|
}
|
|
37
33
|
return loadedProfilerModule;
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import * as Root from '../../core/root/root.js';
|
|
7
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
7
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
8
|
import type * as Layers from './layers.js';
|
|
11
9
|
|
|
12
10
|
const UIStrings = {
|
|
@@ -26,8 +24,6 @@ let loadedLayersModule: (typeof Layers|undefined);
|
|
|
26
24
|
|
|
27
25
|
async function loadLayersModule(): Promise<typeof Layers> {
|
|
28
26
|
if (!loadedLayersModule) {
|
|
29
|
-
// Side-effect import resources in module.json
|
|
30
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/layers');
|
|
31
27
|
loadedLayersModule = await import('./layers.js');
|
|
32
28
|
}
|
|
33
29
|
return loadedLayersModule;
|
|
@@ -7,8 +7,6 @@ import * as Host from '../../core/host/host.js';
|
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import * as EmulationModel from '../../models/emulation/emulation.js';
|
|
10
|
-
/* eslint-disable rulesdir/es_modules_import */
|
|
11
|
-
import reportStyles from '../../third_party/lighthouse/report-assets/report.css.js';
|
|
12
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
11
|
import * as Emulation from '../emulation/emulation.js';
|
|
14
12
|
|
|
@@ -263,7 +261,6 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
|
263
261
|
|
|
264
262
|
const reportContainer = this.auditResultsElement.createChild('div', 'lh-vars lh-root lh-devtools');
|
|
265
263
|
|
|
266
|
-
// @ts-ignore: Second argument will soon be required.
|
|
267
264
|
const dom = new LighthouseReport.DOM(this.auditResultsElement.ownerDocument as Document, reportContainer);
|
|
268
265
|
const renderer = new LighthouseReportRenderer(dom) as LighthouseReport.ReportRenderer;
|
|
269
266
|
|
|
@@ -451,8 +448,9 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
|
451
448
|
const inspectedURL = await this.controller.getInspectedURL();
|
|
452
449
|
await resourceTreeModel.navigate(inspectedURL);
|
|
453
450
|
}
|
|
451
|
+
|
|
454
452
|
wasShown(): void {
|
|
455
453
|
super.wasShown();
|
|
456
|
-
this.registerCSSFiles([lighthousePanelStyles
|
|
454
|
+
this.registerCSSFiles([lighthousePanelStyles]);
|
|
457
455
|
}
|
|
458
456
|
}
|
|
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
|
9
|
-
import * as Root from '../../core/root/root.js';
|
|
10
9
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
10
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
12
11
|
import * as LighthouseReport from '../../third_party/lighthouse/report/report.js';
|
|
@@ -202,9 +201,7 @@ export class LighthouseReportUIFeatures extends LighthouseReport.ReportUIFeature
|
|
|
202
201
|
if (!printWindow) {
|
|
203
202
|
return;
|
|
204
203
|
}
|
|
205
|
-
|
|
206
|
-
style.textContent = Root.Runtime.cachedResources.get('third_party/lighthouse/report-assets/report.css') || '';
|
|
207
|
-
printWindow.document.head.appendChild(style);
|
|
204
|
+
|
|
208
205
|
printWindow.document.body.replaceWith(clonedReport);
|
|
209
206
|
// Linkified nodes are shadow elements, which aren't exposed via `cloneNode`.
|
|
210
207
|
await LighthouseReportRenderer.linkifyNodeDetails(clonedReport as HTMLElement);
|
|
@@ -6,7 +6,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Lighthouse from './lighthouse.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dependencies": [
|
|
3
|
-
"panels/emulation",
|
|
4
|
-
"panels/timeline",
|
|
5
|
-
"ui/legacy"
|
|
6
|
-
],
|
|
7
2
|
"resources": [
|
|
8
3
|
"../../third_party/lighthouse/report-assets/standalone-template.html",
|
|
9
|
-
"../../third_party/lighthouse/report-assets/report.css",
|
|
10
4
|
"../../third_party/lighthouse/report-assets/report.js"
|
|
11
5
|
]
|
|
12
6
|
}
|
|
@@ -6,7 +6,6 @@ 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
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as MobileThrottling from './mobile_throttling.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
|
+
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
7
8
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
8
9
|
import * as NetworkForward from '../../panels/network/forward/forward.js';
|
|
9
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
11
|
|
|
11
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
12
12
|
import type * as Network from './network.js';
|
|
13
13
|
|
|
14
|
-
import * as i18n from '../../core/i18n/i18n.js';
|
|
15
14
|
const UIStrings = {
|
|
16
15
|
/**
|
|
17
16
|
*@description Command for showing the 'Network' tool
|