chrome-devtools-frontend 1.0.937775 → 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 -4
- package/config/gni/devtools_grd_files.gni +2 -3
- package/front_end/Tests.js +0 -1
- 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 -1
- 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 +1 -3
- 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/application/module.json +1 -2
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +0 -2
- package/front_end/panels/browser_debugger/module.json +1 -4
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +18 -17
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +31 -10
- package/front_end/panels/elements/elements-meta.ts +0 -2
- package/front_end/panels/elements/stylesSidebarPane.css +8 -0
- package/front_end/panels/issues/issuesTree.css +11 -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/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/icon_button/iconButton.css +1 -0
- package/front_end/ui/legacy/XLink.ts +3 -6
- 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/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/panels/elements/module.json +0 -5
- package/front_end/panels/protocol_monitor/module.json +0 -5
- package/front_end/panels/sources/module.json +0 -5
|
@@ -43,7 +43,6 @@ all_devtools_files = [
|
|
|
43
43
|
"front_end/legacy_test_runner/elements_test_runner/ElementsTestRunner.js",
|
|
44
44
|
"front_end/legacy_test_runner/elements_test_runner/SetOuterHTMLTestRunner.js",
|
|
45
45
|
"front_end/legacy_test_runner/elements_test_runner/StylesUpdateLinksTestRunner.js",
|
|
46
|
-
"front_end/panels/elements/module.json",
|
|
47
46
|
"front_end/emulated_devices/module.json",
|
|
48
47
|
"front_end/panels/emulation/deviceModeToolbar.css",
|
|
49
48
|
"front_end/panels/emulation/deviceModeView.css",
|
|
@@ -73,7 +72,6 @@ all_devtools_files = [
|
|
|
73
72
|
"front_end/ui/legacy/components/perf_ui/overviewGrid.css",
|
|
74
73
|
"front_end/ui/legacy/components/perf_ui/timelineGrid.css",
|
|
75
74
|
"front_end/ui/legacy/components/perf_ui/timelineOverviewInfo.css",
|
|
76
|
-
"front_end/panels/protocol_monitor/module.json",
|
|
77
75
|
"front_end/legacy_test_runner/performance_test_runner/performance_test_runner.js",
|
|
78
76
|
"front_end/legacy_test_runner/performance_test_runner/TimelineDataTestRunner.js",
|
|
79
77
|
"front_end/legacy_test_runner/performance_test_runner/TimelineTestRunner.js",
|
|
@@ -136,7 +134,6 @@ all_devtools_files = [
|
|
|
136
134
|
"front_end/models/issues_manager/descriptions/TwaDigitalAssetLinksFailed.md",
|
|
137
135
|
"front_end/models/issues_manager/descriptions/TwaHttpError.md",
|
|
138
136
|
"front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
|
|
139
|
-
"front_end/panels/protocol_monitor/module.json",
|
|
140
137
|
"front_end/panels/application/module.json",
|
|
141
138
|
"front_end/panels/screencast/module.json",
|
|
142
139
|
"front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js",
|
|
@@ -158,7 +155,6 @@ all_devtools_files = [
|
|
|
158
155
|
"front_end/legacy_test_runner/sources_test_runner/LiveEditTestRunner.js",
|
|
159
156
|
"front_end/legacy_test_runner/sources_test_runner/SearchTestRunner.js",
|
|
160
157
|
"front_end/legacy_test_runner/sources_test_runner/SourcesTestRunner.js",
|
|
161
|
-
"front_end/panels/sources/module.json",
|
|
162
158
|
"front_end/ui/legacy/components/text_editor/autocompleteTooltip.css",
|
|
163
159
|
"front_end/ui/legacy/components/text_editor/cmdevtools.css",
|
|
164
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",
|
|
@@ -360,7 +361,6 @@ grd_files_release_sources = [
|
|
|
360
361
|
"front_end/panels/elements/elements-legacy.js",
|
|
361
362
|
"front_end/panels/elements/elements-meta.js",
|
|
362
363
|
"front_end/panels/elements/elements.js",
|
|
363
|
-
"front_end/panels/elements/elements_module.js",
|
|
364
364
|
"front_end/panels/emulation/components/components.js",
|
|
365
365
|
"front_end/panels/emulation/emulation-legacy.js",
|
|
366
366
|
"front_end/panels/emulation/emulation-meta.js",
|
|
@@ -408,7 +408,6 @@ grd_files_release_sources = [
|
|
|
408
408
|
"front_end/panels/profiler/profiler_module.js",
|
|
409
409
|
"front_end/panels/protocol_monitor/protocol_monitor-meta.js",
|
|
410
410
|
"front_end/panels/protocol_monitor/protocol_monitor.js",
|
|
411
|
-
"front_end/panels/protocol_monitor/protocol_monitor_module.js",
|
|
412
411
|
"front_end/panels/screencast/screencast-meta.js",
|
|
413
412
|
"front_end/panels/screencast/screencast.js",
|
|
414
413
|
"front_end/panels/search/search-legacy.js",
|
|
@@ -432,7 +431,6 @@ grd_files_release_sources = [
|
|
|
432
431
|
"front_end/panels/sources/sources-legacy.js",
|
|
433
432
|
"front_end/panels/sources/sources-meta.js",
|
|
434
433
|
"front_end/panels/sources/sources.js",
|
|
435
|
-
"front_end/panels/sources/sources_module.js",
|
|
436
434
|
"front_end/panels/timeline/components/components.js",
|
|
437
435
|
"front_end/panels/timeline/timeline-legacy.js",
|
|
438
436
|
"front_end/panels/timeline/timeline-meta.js",
|
|
@@ -719,6 +717,7 @@ grd_files_debug_sources = [
|
|
|
719
717
|
"front_end/models/issues_manager/ContrastCheckTrigger.js",
|
|
720
718
|
"front_end/models/issues_manager/CorsIssue.js",
|
|
721
719
|
"front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.js",
|
|
720
|
+
"front_end/models/issues_manager/DeprecationIssue.js",
|
|
722
721
|
"front_end/models/issues_manager/GenericIssue.js",
|
|
723
722
|
"front_end/models/issues_manager/HeavyAdIssue.js",
|
|
724
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
|
}
|
|
@@ -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;
|
|
@@ -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');
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
{ "name": "ui/legacy/components/source_frame", "type": "autostart" },
|
|
7
7
|
|
|
8
8
|
{ "name": "ui/legacy/components/perf_ui" },
|
|
9
|
-
{ "name": "panels/profiler" }
|
|
10
|
-
{ "name": "panels/protocol_monitor"},
|
|
11
|
-
{ "name": "panels/sources" }
|
|
9
|
+
{ "name": "panels/profiler" }
|
|
12
10
|
]
|
|
13
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
|
+
}
|
|
@@ -11,6 +11,7 @@ import {AttributionReportingIssue} from './AttributionReportingIssue.js';
|
|
|
11
11
|
import {ContentSecurityPolicyIssue} from './ContentSecurityPolicyIssue.js';
|
|
12
12
|
import {CorsIssue} from './CorsIssue.js';
|
|
13
13
|
import {CrossOriginEmbedderPolicyIssue, isCrossOriginEmbedderPolicyIssue} from './CrossOriginEmbedderPolicyIssue.js';
|
|
14
|
+
import {DeprecationIssue} from './DeprecationIssue.js';
|
|
14
15
|
import {GenericIssue} from './GenericIssue.js';
|
|
15
16
|
import {HeavyAdIssue} from './HeavyAdIssue.js';
|
|
16
17
|
import type {Issue, IssueKind} from './Issue.js';
|
|
@@ -99,6 +100,10 @@ const issueCodeHandlers = new Map<
|
|
|
99
100
|
Protocol.Audits.InspectorIssueCode.GenericIssue,
|
|
100
101
|
GenericIssue.fromInspectorIssue,
|
|
101
102
|
],
|
|
103
|
+
[
|
|
104
|
+
Protocol.Audits.InspectorIssueCode.DeprecationIssue,
|
|
105
|
+
DeprecationIssue.fromInspectorIssue,
|
|
106
|
+
],
|
|
102
107
|
]);
|
|
103
108
|
|
|
104
109
|
/**
|
|
@@ -7,6 +7,7 @@ import * as ContentSecurityPolicyIssue from './ContentSecurityPolicyIssue.js';
|
|
|
7
7
|
import * as ContrastCheckTrigger from './ContrastCheckTrigger.js';
|
|
8
8
|
import * as CorsIssue from './CorsIssue.js';
|
|
9
9
|
import * as CrossOriginEmbedderPolicyIssue from './CrossOriginEmbedderPolicyIssue.js';
|
|
10
|
+
import * as DeprecationIssue from './DeprecationIssue.js';
|
|
10
11
|
import * as GenericIssue from './GenericIssue.js';
|
|
11
12
|
import * as HeavyAdIssue from './HeavyAdIssue.js';
|
|
12
13
|
import * as Issue from './Issue.js';
|
|
@@ -30,6 +31,7 @@ export {
|
|
|
30
31
|
ContrastCheckTrigger,
|
|
31
32
|
CorsIssue,
|
|
32
33
|
CrossOriginEmbedderPolicyIssue,
|
|
34
|
+
DeprecationIssue,
|
|
33
35
|
GenericIssue,
|
|
34
36
|
HeavyAdIssue,
|
|
35
37
|
Issue,
|
|
@@ -99,8 +99,6 @@ let loadedSourcesModule: (typeof Sources|undefined);
|
|
|
99
99
|
// collision with node_app as a separate view with the same id is registered in it.
|
|
100
100
|
async function loadSourcesModule(): Promise<typeof Sources> {
|
|
101
101
|
if (!loadedSourcesModule) {
|
|
102
|
-
// Side-effect import resources in module.json
|
|
103
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('sources');
|
|
104
102
|
loadedSourcesModule = await import('../sources/sources.js');
|
|
105
103
|
}
|
|
106
104
|
return loadedSourcesModule;
|
|
@@ -11,12 +11,9 @@ import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
|
11
11
|
import * as DataGrid from '../../ui/legacy/components/data_grid/data_grid.js';
|
|
12
12
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
13
13
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
14
|
-
|
|
15
|
-
import cssOverviewCompletedViewStyles from './cssOverviewCompletedView.css.js';
|
|
16
|
-
|
|
17
|
-
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
18
14
|
import type * as Protocol from '../../generated/protocol.js';
|
|
19
15
|
|
|
16
|
+
import cssOverviewCompletedViewStyles from './cssOverviewCompletedView.css.js';
|
|
20
17
|
import type {OverviewController, PopulateNodesEvent, PopulateNodesEventNodes, PopulateNodesEventNodeTypes} from './CSSOverviewController.js';
|
|
21
18
|
import {Events as CSSOverViewControllerEvents} from './CSSOverviewController.js';
|
|
22
19
|
import {CSSOverviewSidebarPanel, SidebarEvents} from './CSSOverviewSidebarPanel.js';
|
|
@@ -227,15 +224,14 @@ export class CSSOverviewCompletedView extends UI.Panel.PanelWithSidebar {
|
|
|
227
224
|
readonly #resultsContainer: UI.Widget.VBox;
|
|
228
225
|
readonly #elementContainer: DetailsView;
|
|
229
226
|
readonly #sideBar: CSSOverviewSidebarPanel;
|
|
230
|
-
#cssModel
|
|
231
|
-
#domModel
|
|
232
|
-
readonly #domAgent: ProtocolProxyApi.DOMApi;
|
|
227
|
+
#cssModel?: SDK.CSSModel.CSSModel;
|
|
228
|
+
#domModel?: SDK.DOMModel.DOMModel;
|
|
233
229
|
#linkifier: Components.Linkifier.Linkifier;
|
|
234
230
|
#viewMap: Map<string, ElementDetailsView>;
|
|
235
231
|
#data: OverviewData|null;
|
|
236
232
|
#fragment?: UI.Fragment.Fragment;
|
|
237
233
|
|
|
238
|
-
constructor(controller: OverviewController
|
|
234
|
+
constructor(controller: OverviewController) {
|
|
239
235
|
super('css_overview_completed_view');
|
|
240
236
|
|
|
241
237
|
this.#controller = controller;
|
|
@@ -264,14 +260,6 @@ export class CSSOverviewCompletedView extends UI.Panel.PanelWithSidebar {
|
|
|
264
260
|
this.splitWidget().setSidebarWidget(this.#sideBar);
|
|
265
261
|
this.splitWidget().setMainWidget(this.#mainContainer);
|
|
266
262
|
|
|
267
|
-
const cssModel = target.model(SDK.CSSModel.CSSModel);
|
|
268
|
-
const domModel = target.model(SDK.DOMModel.DOMModel);
|
|
269
|
-
if (!cssModel || !domModel) {
|
|
270
|
-
throw new Error('Target must provide CSS and DOM models');
|
|
271
|
-
}
|
|
272
|
-
this.#cssModel = cssModel;
|
|
273
|
-
this.#domModel = domModel;
|
|
274
|
-
this.#domAgent = target.domAgent();
|
|
275
263
|
this.#linkifier = new Components.Linkifier.Linkifier(/* maxLinkLength */ 20, /* useLinkDecorator */ true);
|
|
276
264
|
|
|
277
265
|
this.#viewMap = new Map();
|
|
@@ -300,6 +288,16 @@ export class CSSOverviewCompletedView extends UI.Panel.PanelWithSidebar {
|
|
|
300
288
|
// TODO(paullewis): update the links in the panels in case source has been .
|
|
301
289
|
}
|
|
302
290
|
|
|
291
|
+
initializeModels(target: SDK.Target.Target): void {
|
|
292
|
+
const cssModel = target.model(SDK.CSSModel.CSSModel);
|
|
293
|
+
const domModel = target.model(SDK.DOMModel.DOMModel);
|
|
294
|
+
if (!cssModel || !domModel) {
|
|
295
|
+
throw new Error('Target must provide CSS and DOM models');
|
|
296
|
+
}
|
|
297
|
+
this.#cssModel = cssModel;
|
|
298
|
+
this.#domModel = domModel;
|
|
299
|
+
}
|
|
300
|
+
|
|
303
301
|
private sideBarItemSelected(event: Common.EventTarget.EventTargetEvent<string>): void {
|
|
304
302
|
const {data} = event;
|
|
305
303
|
const section = (this.#fragment as UI.Fragment.Fragment).$(data);
|
|
@@ -650,6 +648,9 @@ export class CSSOverviewCompletedView extends UI.Panel.PanelWithSidebar {
|
|
|
650
648
|
|
|
651
649
|
let view = this.#viewMap.get(id);
|
|
652
650
|
if (!view) {
|
|
651
|
+
if (!this.#domModel || !this.#cssModel) {
|
|
652
|
+
throw new Error('Unable to initialize CSS Overview, missing models');
|
|
653
|
+
}
|
|
653
654
|
view = new ElementDetailsView(this.#controller, this.#domModel, this.#cssModel, this.#linkifier);
|
|
654
655
|
view.populateNodes(payload.nodes);
|
|
655
656
|
this.#viewMap.set(id, view);
|
|
@@ -970,7 +971,7 @@ export class ElementDetailsView extends UI.Widget.Widget {
|
|
|
970
971
|
this.#elementGrid.setStriped(true);
|
|
971
972
|
this.#elementGrid.addEventListener(DataGrid.DataGrid.Events.SortingChanged, this.sortMediaQueryDataGrid.bind(this));
|
|
972
973
|
|
|
973
|
-
this.
|
|
974
|
+
this.#elementGrid.asWidget().show(this.element);
|
|
974
975
|
}
|
|
975
976
|
|
|
976
977
|
private sortMediaQueryDataGrid(): void {
|