chrome-devtools-frontend 1.0.936736 → 1.0.938150
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/config/gni/all_devtools_files.gni +0 -19
- package/config/gni/devtools_grd_files.gni +2 -9
- package/front_end/Tests.js +0 -1
- package/front_end/core/platform/string-utilities.ts +23 -0
- package/front_end/core/sdk/DOMModel.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +1 -0
- package/front_end/entrypoints/devtools_app/devtools_app.json +0 -4
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +0 -3
- package/front_end/entrypoints/lighthouse_worker/LighthouseService.ts +3 -1
- package/front_end/entrypoints/main/MainImpl.ts +1 -0
- package/front_end/entrypoints/node_app/node_app-meta.ts +0 -3
- package/front_end/entrypoints/node_app/node_app.js +3 -0
- package/front_end/entrypoints/shell/shell.json +3 -7
- package/front_end/entrypoints/worker_app/worker_app.json +0 -1
- package/front_end/generated/InspectorBackendCommands.js +14 -5
- package/front_end/generated/SupportedCSSProperties.js +8 -4
- package/front_end/generated/protocol-mapping.d.ts +10 -0
- package/front_end/generated/protocol-proxy-api.d.ts +19 -0
- package/front_end/generated/protocol.d.ts +56 -1
- package/front_end/models/issues_manager/DeprecationIssue.ts +67 -0
- package/front_end/models/issues_manager/IssuesManager.ts +5 -0
- package/front_end/models/issues_manager/descriptions/deprecation.md +3 -0
- package/front_end/models/issues_manager/issues_manager.ts +2 -0
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +8 -1
- package/front_end/panels/accessibility/accessibility-meta.ts +0 -3
- package/front_end/panels/application/components/ReportsGrid.ts +38 -4
- package/front_end/panels/application/components/reportingApiGrid.css +4 -0
- package/front_end/panels/application/module.json +1 -3
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +0 -2
- package/front_end/panels/browser_debugger/module.json +1 -5
- package/front_end/panels/console/console-meta.ts +1 -3
- package/front_end/panels/coverage/coverage-meta.ts +0 -3
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +18 -17
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +31 -10
- package/front_end/panels/css_overview/css_overview-meta.ts +0 -3
- package/front_end/panels/elements/StylePropertyTreeElement.ts +3 -0
- package/front_end/panels/elements/elements-meta.ts +0 -2
- package/front_end/panels/elements/stylesSidebarPane.css +8 -0
- package/front_end/panels/event_listeners/EventListenersView.ts +2 -0
- package/front_end/panels/issues/issuesTree.css +11 -0
- package/front_end/panels/lighthouse/module.json +0 -1
- package/front_end/panels/media/module.json +0 -1
- package/front_end/panels/network/module.json +0 -1
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -0
- package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -2
- package/front_end/panels/sources/sources-meta.ts +0 -2
- package/front_end/panels/timeline/module.json +0 -1
- package/front_end/third_party/puppeteer/package/CHANGELOG.md +29 -0
- package/front_end/third_party/puppeteer/package/README.md +12 -14
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +13 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +25 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +6 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +16 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +9 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +8 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +21 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +155 -72
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +32 -29
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +14 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +13 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +2 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +33 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +92 -46
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts +21 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js +30 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +14 -14
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +11 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +30 -15
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +9 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +22 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +6 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +21 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +150 -68
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +22 -19
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +15 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +1 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +33 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +69 -23
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts +21 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js +26 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +7 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +27 -12
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +3862 -3771
- package/front_end/third_party/puppeteer/package/package.json +33 -40
- package/front_end/ui/components/data_grid/DataGrid.ts +3 -1
- package/front_end/ui/components/data_grid/DataGridUtils.ts +8 -5
- package/front_end/ui/components/data_grid/dataGrid.css +0 -5
- package/front_end/ui/components/icon_button/iconButton.css +1 -0
- package/front_end/ui/components/settings/settingCheckbox.css +0 -5
- package/front_end/ui/legacy/ListWidget.ts +2 -4
- package/front_end/ui/legacy/XLink.ts +6 -6
- package/front_end/ui/legacy/checkboxTextLabel.css +0 -4
- package/front_end/ui/legacy/components/perf_ui/module.json +1 -3
- package/front_end/ui/legacy/components/source_frame/module.json +0 -1
- package/front_end/ui/legacy/inspectorCommon.css +0 -4
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +1 -1
- package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +5 -0
- package/front_end/ui/legacy/treeoutline.css +16 -0
- package/front_end/ui/legacy/viewContainers.css +6 -1
- package/package.json +1 -1
- package/scripts/build/ninja/copy-file.js +10 -1
- package/scripts/build/ninja/copy-files.js +10 -1
- package/scripts/eslint_rules/lib/check_test_definitions.js +2 -1
- package/scripts/eslint_rules/tests/check_test_definitions_test.js +34 -0
- package/scripts/eslint_rules/tests/migrate_create_shadow_root_with_styles_test.js +1 -1
- package/scripts/eslint_rules/tests/migrate_register_required_css_test.js +1 -1
- package/front_end/entrypoints/inspector_main/module.json +0 -9
- package/front_end/panels/accessibility/module.json +0 -7
- package/front_end/panels/console/module.json +0 -6
- package/front_end/panels/coverage/module.json +0 -6
- package/front_end/panels/css_overview/module.json +0 -4
- package/front_end/panels/elements/module.json +0 -6
- package/front_end/panels/protocol_monitor/module.json +0 -6
- package/front_end/panels/sources/module.json +0 -7
|
@@ -13,10 +13,6 @@ all_devtools_files = [
|
|
|
13
13
|
"front_end/entrypoints/node_app/node_app.js",
|
|
14
14
|
"front_end/entrypoints/worker_app/worker_app.js",
|
|
15
15
|
"front_end/legacy_test_runner/accessibility_test_runner/accessibility_test_runner.js",
|
|
16
|
-
"front_end/panels/accessibility/accessibilityNode.css",
|
|
17
|
-
"front_end/panels/accessibility/accessibilityProperties.css",
|
|
18
|
-
"front_end/panels/accessibility/axBreadcrumbs.css",
|
|
19
|
-
"front_end/panels/accessibility/module.json",
|
|
20
16
|
"front_end/legacy_test_runner/application_test_runner/application_test_runner.js",
|
|
21
17
|
"front_end/legacy_test_runner/bindings_test_runner/bindings_test_runner.js",
|
|
22
18
|
"front_end/legacy_test_runner/application_test_runner/CacheStorageTestRunner.js",
|
|
@@ -37,16 +33,8 @@ all_devtools_files = [
|
|
|
37
33
|
"front_end/panels/browser_debugger/module.json",
|
|
38
34
|
"front_end/third_party/codemirror/codemirror.css",
|
|
39
35
|
"front_end/legacy_test_runner/console_test_runner/console_test_runner.js",
|
|
40
|
-
"front_end/panels/console/consoleContextSelector.css",
|
|
41
|
-
"front_end/panels/console/consolePinPane.css",
|
|
42
|
-
"front_end/panels/console/consolePrompt.css",
|
|
43
|
-
"front_end/panels/console/consoleSidebar.css",
|
|
44
|
-
"front_end/panels/console/consoleView.css",
|
|
45
|
-
"front_end/panels/console/module.json",
|
|
46
36
|
"front_end/legacy_test_runner/coverage_test_runner/coverage_test_runner.js",
|
|
47
|
-
"front_end/panels/coverage/module.json",
|
|
48
37
|
"front_end/legacy_test_runner/cpu_profiler_test_runner/cpu_profiler_test_runner.js",
|
|
49
|
-
"front_end/panels/css_overview/module.json",
|
|
50
38
|
"front_end/legacy_test_runner/data_grid_test_runner/data_grid_test_runner.js",
|
|
51
39
|
"front_end/legacy_test_runner/device_mode_test_runner/device_mode_test_runner.js",
|
|
52
40
|
"front_end/legacy_test_runner/elements_test_runner/elements_test_runner.js",
|
|
@@ -55,7 +43,6 @@ all_devtools_files = [
|
|
|
55
43
|
"front_end/legacy_test_runner/elements_test_runner/ElementsTestRunner.js",
|
|
56
44
|
"front_end/legacy_test_runner/elements_test_runner/SetOuterHTMLTestRunner.js",
|
|
57
45
|
"front_end/legacy_test_runner/elements_test_runner/StylesUpdateLinksTestRunner.js",
|
|
58
|
-
"front_end/panels/elements/module.json",
|
|
59
46
|
"front_end/emulated_devices/module.json",
|
|
60
47
|
"front_end/panels/emulation/deviceModeToolbar.css",
|
|
61
48
|
"front_end/panels/emulation/deviceModeView.css",
|
|
@@ -66,9 +53,6 @@ all_devtools_files = [
|
|
|
66
53
|
"front_end/legacy_test_runner/extensions_test_runner/ExtensionsNetworkTestRunner.js",
|
|
67
54
|
"front_end/legacy_test_runner/extensions_test_runner/ExtensionsTestRunner.js",
|
|
68
55
|
"front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js",
|
|
69
|
-
"front_end/entrypoints/inspector_main/module.json",
|
|
70
|
-
"front_end/entrypoints/inspector_main/nodeIcon.css",
|
|
71
|
-
"front_end/entrypoints/inspector_main/renderingOptions.css",
|
|
72
56
|
"front_end/entrypoints/inspector/inspector.js",
|
|
73
57
|
"front_end/entrypoints/inspector/inspector.json",
|
|
74
58
|
"front_end/panels/js_profiler/module.json",
|
|
@@ -88,7 +72,6 @@ all_devtools_files = [
|
|
|
88
72
|
"front_end/ui/legacy/components/perf_ui/overviewGrid.css",
|
|
89
73
|
"front_end/ui/legacy/components/perf_ui/timelineGrid.css",
|
|
90
74
|
"front_end/ui/legacy/components/perf_ui/timelineOverviewInfo.css",
|
|
91
|
-
"front_end/panels/protocol_monitor/module.json",
|
|
92
75
|
"front_end/legacy_test_runner/performance_test_runner/performance_test_runner.js",
|
|
93
76
|
"front_end/legacy_test_runner/performance_test_runner/TimelineDataTestRunner.js",
|
|
94
77
|
"front_end/legacy_test_runner/performance_test_runner/TimelineTestRunner.js",
|
|
@@ -151,7 +134,6 @@ all_devtools_files = [
|
|
|
151
134
|
"front_end/models/issues_manager/descriptions/TwaDigitalAssetLinksFailed.md",
|
|
152
135
|
"front_end/models/issues_manager/descriptions/TwaHttpError.md",
|
|
153
136
|
"front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
|
|
154
|
-
"front_end/panels/protocol_monitor/module.json",
|
|
155
137
|
"front_end/panels/application/module.json",
|
|
156
138
|
"front_end/panels/screencast/module.json",
|
|
157
139
|
"front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js",
|
|
@@ -173,7 +155,6 @@ all_devtools_files = [
|
|
|
173
155
|
"front_end/legacy_test_runner/sources_test_runner/LiveEditTestRunner.js",
|
|
174
156
|
"front_end/legacy_test_runner/sources_test_runner/SearchTestRunner.js",
|
|
175
157
|
"front_end/legacy_test_runner/sources_test_runner/SourcesTestRunner.js",
|
|
176
|
-
"front_end/panels/sources/module.json",
|
|
177
158
|
"front_end/ui/legacy/components/text_editor/autocompleteTooltip.css",
|
|
178
159
|
"front_end/ui/legacy/components/text_editor/cmdevtools.css",
|
|
179
160
|
"front_end/ui/legacy/components/text_editor/module.json",
|
|
@@ -302,6 +302,7 @@ grd_files_release_sources = [
|
|
|
302
302
|
"front_end/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md",
|
|
303
303
|
"front_end/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md",
|
|
304
304
|
"front_end/models/issues_manager/descriptions/cspURLViolation.md",
|
|
305
|
+
"front_end/models/issues_manager/descriptions/deprecation.md",
|
|
305
306
|
"front_end/models/issues_manager/descriptions/deprecationNavigatorUserAgent.md",
|
|
306
307
|
"front_end/models/issues_manager/descriptions/genericCrossOriginPortalPostMessageError.md",
|
|
307
308
|
"front_end/models/issues_manager/descriptions/heavyAd.md",
|
|
@@ -328,7 +329,6 @@ grd_files_release_sources = [
|
|
|
328
329
|
"front_end/panels/accessibility/accessibility-legacy.js",
|
|
329
330
|
"front_end/panels/accessibility/accessibility-meta.js",
|
|
330
331
|
"front_end/panels/accessibility/accessibility.js",
|
|
331
|
-
"front_end/panels/accessibility/accessibility_module.js",
|
|
332
332
|
"front_end/panels/animation/animation-legacy.js",
|
|
333
333
|
"front_end/panels/animation/animation-meta.js",
|
|
334
334
|
"front_end/panels/animation/animation.js",
|
|
@@ -347,24 +347,20 @@ grd_files_release_sources = [
|
|
|
347
347
|
"front_end/panels/console/console-legacy.js",
|
|
348
348
|
"front_end/panels/console/console-meta.js",
|
|
349
349
|
"front_end/panels/console/console.js",
|
|
350
|
-
"front_end/panels/console/console_module.js",
|
|
351
350
|
"front_end/panels/console_counters/console_counters-meta.js",
|
|
352
351
|
"front_end/panels/console_counters/console_counters.js",
|
|
353
352
|
"front_end/panels/coverage/coverage-legacy.js",
|
|
354
353
|
"front_end/panels/coverage/coverage-meta.js",
|
|
355
354
|
"front_end/panels/coverage/coverage.js",
|
|
356
|
-
"front_end/panels/coverage/coverage_module.js",
|
|
357
355
|
"front_end/panels/css_overview/components/components.js",
|
|
358
356
|
"front_end/panels/css_overview/css_overview-meta.js",
|
|
359
357
|
"front_end/panels/css_overview/css_overview.js",
|
|
360
|
-
"front_end/panels/css_overview/css_overview_module.js",
|
|
361
358
|
"front_end/panels/developer_resources/developer_resources-meta.js",
|
|
362
359
|
"front_end/panels/developer_resources/developer_resources.js",
|
|
363
360
|
"front_end/panels/elements/components/components.js",
|
|
364
361
|
"front_end/panels/elements/elements-legacy.js",
|
|
365
362
|
"front_end/panels/elements/elements-meta.js",
|
|
366
363
|
"front_end/panels/elements/elements.js",
|
|
367
|
-
"front_end/panels/elements/elements_module.js",
|
|
368
364
|
"front_end/panels/emulation/components/components.js",
|
|
369
365
|
"front_end/panels/emulation/emulation-legacy.js",
|
|
370
366
|
"front_end/panels/emulation/emulation-meta.js",
|
|
@@ -412,7 +408,6 @@ grd_files_release_sources = [
|
|
|
412
408
|
"front_end/panels/profiler/profiler_module.js",
|
|
413
409
|
"front_end/panels/protocol_monitor/protocol_monitor-meta.js",
|
|
414
410
|
"front_end/panels/protocol_monitor/protocol_monitor.js",
|
|
415
|
-
"front_end/panels/protocol_monitor/protocol_monitor_module.js",
|
|
416
411
|
"front_end/panels/screencast/screencast-meta.js",
|
|
417
412
|
"front_end/panels/screencast/screencast.js",
|
|
418
413
|
"front_end/panels/search/search-legacy.js",
|
|
@@ -436,7 +431,6 @@ grd_files_release_sources = [
|
|
|
436
431
|
"front_end/panels/sources/sources-legacy.js",
|
|
437
432
|
"front_end/panels/sources/sources-meta.js",
|
|
438
433
|
"front_end/panels/sources/sources.js",
|
|
439
|
-
"front_end/panels/sources/sources_module.js",
|
|
440
434
|
"front_end/panels/timeline/components/components.js",
|
|
441
435
|
"front_end/panels/timeline/timeline-legacy.js",
|
|
442
436
|
"front_end/panels/timeline/timeline-meta.js",
|
|
@@ -518,10 +512,8 @@ grd_files_release_sources = [
|
|
|
518
512
|
"front_end/ui/legacy/components/source_frame/source_frame-legacy.js",
|
|
519
513
|
"front_end/ui/legacy/components/source_frame/source_frame-meta.js",
|
|
520
514
|
"front_end/ui/legacy/components/source_frame/source_frame.js",
|
|
521
|
-
"front_end/ui/legacy/components/source_frame/source_frame_module.js",
|
|
522
515
|
"front_end/ui/legacy/components/text_editor/text_editor-legacy.js",
|
|
523
516
|
"front_end/ui/legacy/components/text_editor/text_editor.js",
|
|
524
|
-
"front_end/ui/legacy/components/text_editor/text_editor_module.js",
|
|
525
517
|
"front_end/ui/legacy/components/utils/utils-legacy.js",
|
|
526
518
|
"front_end/ui/legacy/components/utils/utils.js",
|
|
527
519
|
"front_end/ui/legacy/legacy-legacy.js",
|
|
@@ -725,6 +717,7 @@ grd_files_debug_sources = [
|
|
|
725
717
|
"front_end/models/issues_manager/ContrastCheckTrigger.js",
|
|
726
718
|
"front_end/models/issues_manager/CorsIssue.js",
|
|
727
719
|
"front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.js",
|
|
720
|
+
"front_end/models/issues_manager/DeprecationIssue.js",
|
|
728
721
|
"front_end/models/issues_manager/GenericIssue.js",
|
|
729
722
|
"front_end/models/issues_manager/HeavyAdIssue.js",
|
|
730
723
|
"front_end/models/issues_manager/Issue.js",
|
package/front_end/Tests.js
CHANGED
|
@@ -1290,7 +1290,6 @@
|
|
|
1290
1290
|
|
|
1291
1291
|
TestSuite.prototype.testInspectedElementIs = async function(nodeName) {
|
|
1292
1292
|
this.takeControl();
|
|
1293
|
-
await self.runtime.loadModulePromise('elements');
|
|
1294
1293
|
if (!Elements.ElementsPanel.firstInspectElementNodeNameForTest) {
|
|
1295
1294
|
await new Promise(f => this.addSniffer(Elements.ElementsPanel, 'firstInspectElementCompletedForTest', f));
|
|
1296
1295
|
}
|
|
@@ -579,3 +579,26 @@ export const base64ToSize = function(content: string|null): number {
|
|
|
579
579
|
}
|
|
580
580
|
return size;
|
|
581
581
|
};
|
|
582
|
+
|
|
583
|
+
export const SINGLE_QUOTE = '\'';
|
|
584
|
+
export const DOUBLE_QUOTE = '"';
|
|
585
|
+
const BACKSLASH = '\\';
|
|
586
|
+
|
|
587
|
+
export const findUnclosedCssQuote = function(str: string): string {
|
|
588
|
+
let unmatchedQuote = '';
|
|
589
|
+
for (let i = 0; i < str.length; ++i) {
|
|
590
|
+
const char = str[i];
|
|
591
|
+
if (char === BACKSLASH) {
|
|
592
|
+
i++;
|
|
593
|
+
continue;
|
|
594
|
+
}
|
|
595
|
+
if (char === SINGLE_QUOTE || char === DOUBLE_QUOTE) {
|
|
596
|
+
if (unmatchedQuote === char) {
|
|
597
|
+
unmatchedQuote = '';
|
|
598
|
+
} else if (unmatchedQuote === '') {
|
|
599
|
+
unmatchedQuote = char;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
return unmatchedQuote;
|
|
604
|
+
};
|
|
@@ -159,7 +159,7 @@ export class DOMNode {
|
|
|
159
159
|
this.childrenInternal = [];
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
const frameOwnerTags = new Set(['EMBED', 'IFRAME', 'OBJECT', 'PORTAL']);
|
|
162
|
+
const frameOwnerTags = new Set(['EMBED', 'IFRAME', 'OBJECT', 'PORTAL', 'FENCEDFRAME']);
|
|
163
163
|
if (payload.contentDocument) {
|
|
164
164
|
this.contentDocumentInternal = new DOMDocument(this.#domModelInternal, payload.contentDocument);
|
|
165
165
|
this.contentDocumentInternal.parentNode = this;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"modules" : [
|
|
3
3
|
{ "name": "panels/emulation", "type": "autostart" },
|
|
4
|
-
{ "name": "entrypoints/inspector_main", "type": "autostart" },
|
|
5
4
|
|
|
6
|
-
{ "name": "panels/accessibility" },
|
|
7
5
|
{ "name": "panels/lighthouse" },
|
|
8
6
|
{ "name": "panels/browser_debugger" },
|
|
9
|
-
{ "name": "panels/css_overview" },
|
|
10
|
-
{ "name": "panels/elements" },
|
|
11
7
|
{ "name": "emulated_devices" },
|
|
12
8
|
{ "name": "panels/issues" },
|
|
13
9
|
{ "name": "panels/layers" },
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
|
-
import * as Root from '../../core/root/root.js';
|
|
8
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
8
|
|
|
10
9
|
const UIStrings = {
|
|
@@ -109,8 +108,6 @@ let loadedInspectorMainModule: (typeof InspectorMain|undefined);
|
|
|
109
108
|
|
|
110
109
|
async function loadInspectorMainModule(): Promise<typeof InspectorMain> {
|
|
111
110
|
if (!loadedInspectorMainModule) {
|
|
112
|
-
// Side-effect import resources in module.json
|
|
113
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('entrypoints/inspector_main');
|
|
114
111
|
loadedInspectorMainModule = await import('./inspector_main.js');
|
|
115
112
|
}
|
|
116
113
|
return loadedInspectorMainModule;
|
|
@@ -29,6 +29,8 @@ class LighthousePort {
|
|
|
29
29
|
send(message: string): void {
|
|
30
30
|
notifyFrontendViaWorkerMessage('sendProtocolMessage', {message});
|
|
31
31
|
}
|
|
32
|
+
close(): void {
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
const port = new LighthousePort();
|
|
@@ -59,7 +61,7 @@ async function start(params: any): Promise<unknown> {
|
|
|
59
61
|
const url = params.url;
|
|
60
62
|
|
|
61
63
|
// @ts-expect-error https://github.com/GoogleChrome/lighthouse/issues/11628
|
|
62
|
-
return self.runLighthouse(url, flags, config, connection);
|
|
64
|
+
return await self.runLighthouse(url, flags, config, connection);
|
|
63
65
|
} catch (err) {
|
|
64
66
|
return ({
|
|
65
67
|
fatal: true,
|
|
@@ -3,7 +3,6 @@
|
|
|
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
8
|
// eslint-disable-next-line rulesdir/es_modules_import
|
|
@@ -27,8 +26,6 @@ let loadedSourcesModule: (typeof Sources|undefined);
|
|
|
27
26
|
|
|
28
27
|
async function loadHelpModule(): Promise<typeof Sources> {
|
|
29
28
|
if (!loadedSourcesModule) {
|
|
30
|
-
// Side-effect import resources in module.json
|
|
31
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('sources');
|
|
32
29
|
loadedSourcesModule = await import('../../panels/sources/sources.js');
|
|
33
30
|
}
|
|
34
31
|
return loadedSourcesModule;
|
|
@@ -7,4 +7,7 @@ import '../node_main/node_main-meta.js';
|
|
|
7
7
|
import './node_app-meta.js';
|
|
8
8
|
import * as Startup from '../startup/startup.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
9
9
|
|
|
10
|
+
// Side-effect start the `node_main` module, which implements runnables in
|
|
11
|
+
// the NodeMain class
|
|
12
|
+
await import('../node_main/node_main.js');
|
|
10
13
|
Startup.RuntimeInstantiator.startApplication('node_app');
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
"modules": [
|
|
3
3
|
{ "name": "entrypoints/main", "type": "autostart" },
|
|
4
4
|
{ "name": "ui/legacy", "type": "autostart" },
|
|
5
|
+
{ "name": "ui/legacy/components/text_editor", "type": "autostart" },
|
|
6
|
+
{ "name": "ui/legacy/components/source_frame", "type": "autostart" },
|
|
5
7
|
|
|
6
|
-
{ "name": "panels/console" },
|
|
7
|
-
{ "name": "panels/coverage" },
|
|
8
8
|
{ "name": "ui/legacy/components/perf_ui" },
|
|
9
|
-
{ "name": "panels/profiler" }
|
|
10
|
-
{ "name": "panels/protocol_monitor"},
|
|
11
|
-
{ "name": "ui/legacy/components/source_frame" },
|
|
12
|
-
{ "name": "panels/sources" },
|
|
13
|
-
{ "name": "ui/legacy/components/text_editor" }
|
|
9
|
+
{ "name": "panels/profiler" }
|
|
14
10
|
]
|
|
15
11
|
}
|
|
@@ -276,7 +276,8 @@ export function registerCommands(inspectorBackend) {
|
|
|
276
276
|
QuirksModeIssue: 'QuirksModeIssue',
|
|
277
277
|
NavigatorUserAgentIssue: 'NavigatorUserAgentIssue',
|
|
278
278
|
WasmCrossOriginModuleSharingIssue: 'WasmCrossOriginModuleSharingIssue',
|
|
279
|
-
GenericIssue: 'GenericIssue'
|
|
279
|
+
GenericIssue: 'GenericIssue',
|
|
280
|
+
DeprecationIssue: 'DeprecationIssue'
|
|
280
281
|
});
|
|
281
282
|
inspectorBackend.registerEvent('Audits.issueAdded', ['issue']);
|
|
282
283
|
inspectorBackend.registerEnum('Audits.GetEncodedResponseRequestEncoding', {Webp: 'webp', Jpeg: 'jpeg', Png: 'png'});
|
|
@@ -890,6 +891,14 @@ export function registerCommands(inspectorBackend) {
|
|
|
890
891
|
inspectorBackend.registerCommand(
|
|
891
892
|
'DOMDebugger.setXHRBreakpoint', [{'name': 'url', 'type': 'string', 'optional': false}], []);
|
|
892
893
|
|
|
894
|
+
// EventBreakpoints.
|
|
895
|
+
inspectorBackend.registerCommand(
|
|
896
|
+
'EventBreakpoints.setInstrumentationBreakpoint', [{'name': 'eventName', 'type': 'string', 'optional': false}],
|
|
897
|
+
[]);
|
|
898
|
+
inspectorBackend.registerCommand(
|
|
899
|
+
'EventBreakpoints.removeInstrumentationBreakpoint', [{'name': 'eventName', 'type': 'string', 'optional': false}],
|
|
900
|
+
[]);
|
|
901
|
+
|
|
893
902
|
// DOMSnapshot.
|
|
894
903
|
inspectorBackend.registerCommand('DOMSnapshot.disable', [], []);
|
|
895
904
|
inspectorBackend.registerCommand('DOMSnapshot.enable', [], []);
|
|
@@ -1630,13 +1639,14 @@ export function registerCommands(inspectorBackend) {
|
|
|
1630
1639
|
]);
|
|
1631
1640
|
inspectorBackend.registerEvent('Network.requestServedFromCache', ['requestId']);
|
|
1632
1641
|
inspectorBackend.registerEvent('Network.requestWillBeSent', [
|
|
1633
|
-
'requestId', 'loaderId', 'documentURL', 'request', 'timestamp', 'wallTime', 'initiator', '
|
|
1634
|
-
'frameId', 'hasUserGesture'
|
|
1642
|
+
'requestId', 'loaderId', 'documentURL', 'request', 'timestamp', 'wallTime', 'initiator', 'redirectHasExtraInfo',
|
|
1643
|
+
'redirectResponse', 'type', 'frameId', 'hasUserGesture'
|
|
1635
1644
|
]);
|
|
1636
1645
|
inspectorBackend.registerEvent('Network.resourceChangedPriority', ['requestId', 'newPriority', 'timestamp']);
|
|
1637
1646
|
inspectorBackend.registerEvent('Network.signedExchangeReceived', ['requestId', 'info']);
|
|
1638
1647
|
inspectorBackend.registerEvent(
|
|
1639
|
-
'Network.responseReceived',
|
|
1648
|
+
'Network.responseReceived',
|
|
1649
|
+
['requestId', 'loaderId', 'timestamp', 'type', 'response', 'hasExtraInfo', 'frameId']);
|
|
1640
1650
|
inspectorBackend.registerEvent('Network.webSocketClosed', ['requestId', 'timestamp']);
|
|
1641
1651
|
inspectorBackend.registerEvent('Network.webSocketCreated', ['requestId', 'url', 'initiator']);
|
|
1642
1652
|
inspectorBackend.registerEvent('Network.webSocketFrameError', ['requestId', 'timestamp', 'errorMessage']);
|
|
@@ -2176,7 +2186,6 @@ export function registerCommands(inspectorBackend) {
|
|
|
2176
2186
|
ContentWebUSB: 'ContentWebUSB',
|
|
2177
2187
|
ContentMediaSession: 'ContentMediaSession',
|
|
2178
2188
|
ContentMediaSessionService: 'ContentMediaSessionService',
|
|
2179
|
-
ContentMediaPlay: 'ContentMediaPlay',
|
|
2180
2189
|
EmbedderPopupBlockerTabHelper: 'EmbedderPopupBlockerTabHelper',
|
|
2181
2190
|
EmbedderSafeBrowsingTriggeredPopupBlocker: 'EmbedderSafeBrowsingTriggeredPopupBlocker',
|
|
2182
2191
|
EmbedderSafeBrowsingThreatDetails: 'EmbedderSafeBrowsingThreatDetails',
|
|
@@ -489,7 +489,7 @@ export const generatedProperties = [
|
|
|
489
489
|
},
|
|
490
490
|
{'name': 'font-variation-settings', 'inherited': true, 'keywords': ['normal']},
|
|
491
491
|
{'name': 'font-weight', 'inherited': true, 'keywords': ['normal', 'bold', 'bolder', 'lighter']},
|
|
492
|
-
{'name': 'forced-color-adjust', 'inherited': true, 'keywords': ['auto', 'none']},
|
|
492
|
+
{'name': 'forced-color-adjust', 'inherited': true, 'keywords': ['auto', 'none', 'preserve-parent-color']},
|
|
493
493
|
{'longhands': ['row-gap', 'column-gap'], 'name': 'gap'},
|
|
494
494
|
{
|
|
495
495
|
'longhands': [
|
|
@@ -764,7 +764,10 @@ export const generatedProperties = [
|
|
|
764
764
|
'name': 'text-decoration'
|
|
765
765
|
},
|
|
766
766
|
{'name': 'text-decoration-color', 'keywords': ['currentcolor']},
|
|
767
|
-
{
|
|
767
|
+
{
|
|
768
|
+
'name': 'text-decoration-line',
|
|
769
|
+
'keywords': ['none', 'underline', 'overline', 'line-through', 'blink', 'spelling-error', 'grammar-error']
|
|
770
|
+
},
|
|
768
771
|
{'name': 'text-decoration-skip-ink', 'inherited': true, 'keywords': ['none', 'auto']},
|
|
769
772
|
{'name': 'text-decoration-style', 'keywords': ['solid', 'double', 'dotted', 'dashed', 'wavy']},
|
|
770
773
|
{'name': 'text-decoration-thickness', 'inherited': true, 'keywords': ['auto', 'from-font']},
|
|
@@ -1041,7 +1044,7 @@ export const generatedPropertyValues = {
|
|
|
1041
1044
|
},
|
|
1042
1045
|
'font-variation-settings': {'values': ['normal']},
|
|
1043
1046
|
'font-weight': {'values': ['normal', 'bold', 'bolder', 'lighter']},
|
|
1044
|
-
'forced-color-adjust': {'values': ['auto', 'none']},
|
|
1047
|
+
'forced-color-adjust': {'values': ['auto', 'none', 'preserve-parent-color']},
|
|
1045
1048
|
'grid-auto-columns': {'values': ['auto', 'min-content', 'max-content']},
|
|
1046
1049
|
'grid-auto-flow': {'values': ['row', 'column']},
|
|
1047
1050
|
'grid-auto-rows': {'values': ['auto', 'min-content', 'max-content']},
|
|
@@ -1152,7 +1155,8 @@ export const generatedPropertyValues = {
|
|
|
1152
1155
|
'text-anchor': {'values': ['start', 'middle', 'end']},
|
|
1153
1156
|
'text-combine-upright': {'values': ['none', 'all']},
|
|
1154
1157
|
'text-decoration-color': {'values': ['currentcolor']},
|
|
1155
|
-
'text-decoration-line':
|
|
1158
|
+
'text-decoration-line':
|
|
1159
|
+
{'values': ['none', 'underline', 'overline', 'line-through', 'blink', 'spelling-error', 'grammar-error']},
|
|
1156
1160
|
'text-decoration-skip-ink': {'values': ['none', 'auto']},
|
|
1157
1161
|
'text-decoration-style': {'values': ['solid', 'double', 'dotted', 'dashed', 'wavy']},
|
|
1158
1162
|
'text-decoration-thickness': {'values': ['auto', 'from-font']},
|
|
@@ -1361,6 +1361,16 @@ export namespace ProtocolMapping {
|
|
|
1361
1361
|
* Sets breakpoint on XMLHttpRequest.
|
|
1362
1362
|
*/
|
|
1363
1363
|
'DOMDebugger.setXHRBreakpoint': {paramsType: [Protocol.DOMDebugger.SetXHRBreakpointRequest]; returnType: void;};
|
|
1364
|
+
/**
|
|
1365
|
+
* Sets breakpoint on particular native event.
|
|
1366
|
+
*/
|
|
1367
|
+
'EventBreakpoints.setInstrumentationBreakpoint':
|
|
1368
|
+
{paramsType: [Protocol.EventBreakpoints.SetInstrumentationBreakpointRequest]; returnType: void;};
|
|
1369
|
+
/**
|
|
1370
|
+
* Removes breakpoint on particular native event.
|
|
1371
|
+
*/
|
|
1372
|
+
'EventBreakpoints.removeInstrumentationBreakpoint':
|
|
1373
|
+
{paramsType: [Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest]; returnType: void;};
|
|
1364
1374
|
/**
|
|
1365
1375
|
* Disables DOM snapshot agent for the given page.
|
|
1366
1376
|
*/
|
|
@@ -37,6 +37,8 @@ declare namespace ProtocolProxyApi {
|
|
|
37
37
|
|
|
38
38
|
DOMDebugger: DOMDebuggerApi;
|
|
39
39
|
|
|
40
|
+
EventBreakpoints: EventBreakpointsApi;
|
|
41
|
+
|
|
40
42
|
DOMSnapshot: DOMSnapshotApi;
|
|
41
43
|
|
|
42
44
|
DOMStorage: DOMStorageApi;
|
|
@@ -127,6 +129,8 @@ declare namespace ProtocolProxyApi {
|
|
|
127
129
|
|
|
128
130
|
DOMDebugger: DOMDebuggerDispatcher;
|
|
129
131
|
|
|
132
|
+
EventBreakpoints: EventBreakpointsDispatcher;
|
|
133
|
+
|
|
130
134
|
DOMSnapshot: DOMSnapshotDispatcher;
|
|
131
135
|
|
|
132
136
|
DOMStorage: DOMStorageDispatcher;
|
|
@@ -1164,6 +1168,21 @@ declare namespace ProtocolProxyApi {
|
|
|
1164
1168
|
}
|
|
1165
1169
|
export interface DOMDebuggerDispatcher {}
|
|
1166
1170
|
|
|
1171
|
+
export interface EventBreakpointsApi {
|
|
1172
|
+
/**
|
|
1173
|
+
* Sets breakpoint on particular native event.
|
|
1174
|
+
*/
|
|
1175
|
+
invoke_setInstrumentationBreakpoint(params: Protocol.EventBreakpoints.SetInstrumentationBreakpointRequest):
|
|
1176
|
+
Promise<Protocol.ProtocolResponseWithError>;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Removes breakpoint on particular native event.
|
|
1180
|
+
*/
|
|
1181
|
+
invoke_removeInstrumentationBreakpoint(params: Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest):
|
|
1182
|
+
Promise<Protocol.ProtocolResponseWithError>;
|
|
1183
|
+
}
|
|
1184
|
+
export interface EventBreakpointsDispatcher {}
|
|
1185
|
+
|
|
1167
1186
|
export interface DOMSnapshotApi {
|
|
1168
1187
|
/**
|
|
1169
1188
|
* Disables DOM snapshot agent for the given page.
|
|
@@ -964,6 +964,26 @@ declare namespace Protocol {
|
|
|
964
964
|
frameId?: Page.FrameId;
|
|
965
965
|
}
|
|
966
966
|
|
|
967
|
+
/**
|
|
968
|
+
* This issue tracks information needed to print a deprecation message.
|
|
969
|
+
* The formatting is inherited from the old console.log version, see more at:
|
|
970
|
+
* https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc
|
|
971
|
+
* TODO(crbug.com/1264960): Re-work format to add i18n support per:
|
|
972
|
+
* https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
|
|
973
|
+
*/
|
|
974
|
+
export interface DeprecationIssueDetails {
|
|
975
|
+
affectedFrame?: AffectedFrame;
|
|
976
|
+
sourceCodeLocation: SourceCodeLocation;
|
|
977
|
+
/**
|
|
978
|
+
* The content of the deprecation issue (this won't be translated),
|
|
979
|
+
* e.g. "window.inefficientLegacyStorageMethod will be removed in M97,
|
|
980
|
+
* around January 2022. Please use Web Storage or Indexed Database
|
|
981
|
+
* instead. This standard was abandoned in January, 1970. See
|
|
982
|
+
* https://www.chromestatus.com/feature/5684870116278272 for more details."
|
|
983
|
+
*/
|
|
984
|
+
message?: string;
|
|
985
|
+
}
|
|
986
|
+
|
|
967
987
|
/**
|
|
968
988
|
* A unique identifier for the type of issue. Each type may use one of the
|
|
969
989
|
* optional fields in InspectorIssueDetails to convey more specific
|
|
@@ -984,6 +1004,7 @@ declare namespace Protocol {
|
|
|
984
1004
|
NavigatorUserAgentIssue = 'NavigatorUserAgentIssue',
|
|
985
1005
|
WasmCrossOriginModuleSharingIssue = 'WasmCrossOriginModuleSharingIssue',
|
|
986
1006
|
GenericIssue = 'GenericIssue',
|
|
1007
|
+
DeprecationIssue = 'DeprecationIssue',
|
|
987
1008
|
}
|
|
988
1009
|
|
|
989
1010
|
/**
|
|
@@ -1006,6 +1027,7 @@ declare namespace Protocol {
|
|
|
1006
1027
|
navigatorUserAgentIssueDetails?: NavigatorUserAgentIssueDetails;
|
|
1007
1028
|
wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;
|
|
1008
1029
|
genericIssueDetails?: GenericIssueDetails;
|
|
1030
|
+
deprecationIssueDetails?: DeprecationIssueDetails;
|
|
1009
1031
|
}
|
|
1010
1032
|
|
|
1011
1033
|
/**
|
|
@@ -4074,6 +4096,29 @@ declare namespace Protocol {
|
|
|
4074
4096
|
}
|
|
4075
4097
|
}
|
|
4076
4098
|
|
|
4099
|
+
/**
|
|
4100
|
+
* EventBreakpoints permits setting breakpoints on particular operations and
|
|
4101
|
+
* events in targets that run JavaScript but do not have a DOM.
|
|
4102
|
+
* JavaScript execution will stop on these operations as if there was a regular
|
|
4103
|
+
* breakpoint set.
|
|
4104
|
+
*/
|
|
4105
|
+
export namespace EventBreakpoints {
|
|
4106
|
+
|
|
4107
|
+
export interface SetInstrumentationBreakpointRequest {
|
|
4108
|
+
/**
|
|
4109
|
+
* Instrumentation name to stop on.
|
|
4110
|
+
*/
|
|
4111
|
+
eventName: string;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
export interface RemoveInstrumentationBreakpointRequest {
|
|
4115
|
+
/**
|
|
4116
|
+
* Instrumentation name to stop on.
|
|
4117
|
+
*/
|
|
4118
|
+
eventName: string;
|
|
4119
|
+
}
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4077
4122
|
/**
|
|
4078
4123
|
* This domain facilitates obtaining document snapshots with DOM, layout, and style information.
|
|
4079
4124
|
*/
|
|
@@ -8528,6 +8573,12 @@ declare namespace Protocol {
|
|
|
8528
8573
|
* Request initiator.
|
|
8529
8574
|
*/
|
|
8530
8575
|
initiator: Initiator;
|
|
8576
|
+
/**
|
|
8577
|
+
* In the case that redirectResponse is populated, this flag indicates whether
|
|
8578
|
+
* requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted
|
|
8579
|
+
* for the request which was just redirected.
|
|
8580
|
+
*/
|
|
8581
|
+
redirectHasExtraInfo: boolean;
|
|
8531
8582
|
/**
|
|
8532
8583
|
* Redirect response data.
|
|
8533
8584
|
*/
|
|
@@ -8602,6 +8653,11 @@ declare namespace Protocol {
|
|
|
8602
8653
|
* Response data.
|
|
8603
8654
|
*/
|
|
8604
8655
|
response: Response;
|
|
8656
|
+
/**
|
|
8657
|
+
* Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be
|
|
8658
|
+
* or were emitted for this request.
|
|
8659
|
+
*/
|
|
8660
|
+
hasExtraInfo: boolean;
|
|
8605
8661
|
/**
|
|
8606
8662
|
* Frame identifier.
|
|
8607
8663
|
*/
|
|
@@ -10492,7 +10548,6 @@ declare namespace Protocol {
|
|
|
10492
10548
|
ContentWebUSB = 'ContentWebUSB',
|
|
10493
10549
|
ContentMediaSession = 'ContentMediaSession',
|
|
10494
10550
|
ContentMediaSessionService = 'ContentMediaSessionService',
|
|
10495
|
-
ContentMediaPlay = 'ContentMediaPlay',
|
|
10496
10551
|
EmbedderPopupBlockerTabHelper = 'EmbedderPopupBlockerTabHelper',
|
|
10497
10552
|
EmbedderSafeBrowsingTriggeredPopupBlocker = 'EmbedderSafeBrowsingTriggeredPopupBlocker',
|
|
10498
10553
|
EmbedderSafeBrowsingThreatDetails = 'EmbedderSafeBrowsingThreatDetails',
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Copyright 2021 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import type * as SDK from '../../core/sdk/sdk.js';
|
|
6
|
+
import type * as Protocol from '../../generated/protocol.js';
|
|
7
|
+
|
|
8
|
+
import {Issue, IssueCategory, IssueKind} from './Issue.js';
|
|
9
|
+
import type {MarkdownIssueDescription} from './MarkdownIssueDescription.js';
|
|
10
|
+
|
|
11
|
+
export const enum IssueCode {
|
|
12
|
+
DeprecationIssue = 'DeprecationIssue',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class DeprecationIssue extends Issue<IssueCode> {
|
|
16
|
+
private issueDetails: Protocol.Audits.DeprecationIssueDetails;
|
|
17
|
+
|
|
18
|
+
constructor(issueDetails: Protocol.Audits.DeprecationIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
|
|
19
|
+
super(IssueCode.DeprecationIssue, issuesModel);
|
|
20
|
+
this.issueDetails = issueDetails;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
getCategory(): IssueCategory {
|
|
24
|
+
return IssueCategory.Other;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
details(): Protocol.Audits.DeprecationIssueDetails {
|
|
28
|
+
return this.issueDetails;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
getDescription(): MarkdownIssueDescription|null {
|
|
32
|
+
return {
|
|
33
|
+
file: 'deprecation.md',
|
|
34
|
+
substitutions: new Map([
|
|
35
|
+
// TODO(crbug.com/1264960): Re-work format to add i18n support per:
|
|
36
|
+
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
|
|
37
|
+
['PLACEHOLDER_message', String(this.issueDetails.message)],
|
|
38
|
+
]),
|
|
39
|
+
links: [],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
sources(): Iterable<Protocol.Audits.SourceCodeLocation> {
|
|
44
|
+
if (this.issueDetails.sourceCodeLocation) {
|
|
45
|
+
return [this.issueDetails.sourceCodeLocation];
|
|
46
|
+
}
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
primaryKey(): string {
|
|
51
|
+
return JSON.stringify(this.issueDetails);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
getKind(): IssueKind {
|
|
55
|
+
return IssueKind.BreakingChange;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static fromInspectorIssue(issuesModel: SDK.IssuesModel.IssuesModel, inspectorIssue: Protocol.Audits.InspectorIssue):
|
|
59
|
+
DeprecationIssue[] {
|
|
60
|
+
const details = inspectorIssue.details.deprecationIssueDetails;
|
|
61
|
+
if (!details) {
|
|
62
|
+
console.warn('Deprecation issue without details received.');
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
return [new DeprecationIssue(details, issuesModel)];
|
|
66
|
+
}
|
|
67
|
+
}
|