chrome-devtools-frontend 1.0.937244 → 1.0.939066
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/.stylelintrc.json +15 -11
- package/config/gni/all_devtools_files.gni +0 -19
- package/config/gni/devtools_grd_files.gni +2 -9
- package/front_end/Images/whatsnew.avif +0 -0
- package/front_end/Tests.js +30 -30
- package/front_end/core/host/InspectorFrontendHost.ts +16 -30
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
- package/front_end/core/host/UserMetrics.ts +25 -0
- package/front_end/core/i18n/locales/en-US.json +4 -1
- package/front_end/core/i18n/locales/en-XL.json +4 -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/EmulationModel.ts +11 -0
- package/front_end/core/sdk/NetworkManager.ts +1 -0
- package/front_end/core/sdk/sdk-meta.ts +30 -1
- package/front_end/entrypoints/devtools_app/devtools_app.json +0 -4
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +9 -2
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +0 -3
- package/front_end/entrypoints/inspector_main/renderingOptions.css +2 -2
- package/front_end/entrypoints/lighthouse_worker/LighthouseService.ts +3 -1
- package/front_end/entrypoints/main/MainImpl.ts +15 -0
- package/front_end/entrypoints/main/main-meta.ts +0 -2
- 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/node_main/nodeConnectionsPanel.css +2 -2
- package/front_end/entrypoints/shell/shell.json +3 -7
- package/front_end/entrypoints/worker_app/worker_app.json +0 -2
- 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/legacy_test_runner/test_runner/test_runner.js +2 -4
- 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/models/persistence/editFileSystemView.css +1 -1
- package/front_end/models/persistence/workspaceSettingsTab.css +1 -1
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +8 -1
- package/front_end/panels/accessibility/accessibility-meta.ts +0 -3
- package/front_end/panels/accessibility/accessibilityNode.css +2 -2
- package/front_end/panels/accessibility/axBreadcrumbs.css +1 -1
- package/front_end/panels/animation/animationTimeline.css +5 -5
- package/front_end/panels/application/components/ReportsGrid.ts +38 -4
- package/front_end/panels/application/components/frameDetailsReportView.css +1 -1
- package/front_end/panels/application/components/reportingApiGrid.css +4 -0
- package/front_end/panels/application/module.json +1 -3
- package/front_end/panels/application/resourcesPanel.css +1 -1
- package/front_end/panels/application/resourcesSidebar.css +1 -1
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +0 -5
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +2 -5
- package/front_end/panels/changes/changesSidebar.css +1 -1
- package/front_end/panels/changes/changesView.css +2 -2
- package/front_end/panels/console/console-meta.ts +1 -3
- package/front_end/panels/console/consolePrompt.css +1 -1
- package/front_end/panels/console/consoleSidebar.css +4 -4
- package/front_end/panels/console/consoleView.css +2 -2
- 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/components/cssOverviewStartView.css +1 -1
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +8 -8
- package/front_end/panels/elements/StylePropertyTreeElement.ts +3 -0
- package/front_end/panels/elements/classesPaneWidget.css +1 -1
- package/front_end/panels/elements/components/adornerSettingsPane.css +1 -1
- package/front_end/panels/elements/computedStyleWidgetTree.css +1 -1
- package/front_end/panels/elements/elements-meta.ts +0 -2
- package/front_end/panels/elements/elementsPanel.css +1 -1
- package/front_end/panels/elements/elementsTreeOutline.css +1 -1
- package/front_end/panels/elements/layoutPane.css +1 -1
- package/front_end/panels/elements/platformFontsWidget.css +1 -1
- package/front_end/panels/elements/stylesSectionTree.css +1 -1
- package/front_end/panels/elements/stylesSidebarPane.css +8 -0
- package/front_end/panels/event_listeners/EventListenersView.ts +5 -4
- package/front_end/panels/event_listeners/eventListenersView.css +3 -2
- package/front_end/panels/help/ReleaseNoteText.ts +28 -0
- package/front_end/panels/issues/IssueKindView.ts +0 -6
- package/front_end/panels/issues/IssueView.ts +19 -27
- package/front_end/panels/issues/components/HideIssuesMenu.ts +7 -11
- package/front_end/panels/issues/components/hideIssuesMenu.css +8 -0
- package/front_end/panels/issues/issuesTree.css +28 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +2 -2
- package/front_end/panels/lighthouse/module.json +0 -1
- package/front_end/panels/media/module.json +0 -1
- package/front_end/panels/media/playerListView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +1 -1
- package/front_end/panels/network/NetworkSearchScope.ts +3 -1
- package/front_end/panels/network/blockedURLsPane.css +1 -1
- package/front_end/panels/network/module.json +0 -1
- package/front_end/panels/network/networkConfigView.css +1 -1
- package/front_end/panels/network/networkLogView.css +3 -3
- package/front_end/panels/profiler/profileLauncherView.css +3 -3
- 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/security/mainView.css +2 -2
- package/front_end/panels/security/originView.css +1 -1
- package/front_end/panels/sensors/sensors.css +2 -2
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -1
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +4 -4
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +1 -1
- package/front_end/panels/settings/settingsScreen.css +2 -2
- package/front_end/panels/sources/CoveragePlugin.ts +7 -2
- package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +14 -17
- package/front_end/panels/sources/callStackSidebarPane.css +1 -1
- package/front_end/panels/sources/dialog.css +1 -1
- package/front_end/panels/sources/javaScriptBreakpointsSidebarPane.css +19 -45
- package/front_end/panels/sources/navigatorTree.css +4 -4
- package/front_end/panels/sources/sources-meta.ts +0 -2
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/sources/threadsSidebarPane.css +1 -1
- package/front_end/panels/timeline/components/WebVitalsTooltip.css +1 -1
- package/front_end/panels/timeline/historyToolbarButton.css +1 -1
- package/front_end/panels/timeline/module.json +0 -1
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +2 -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/adorners/adorner.css +1 -1
- 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/expandable_list/expandableList.css +1 -1
- package/front_end/ui/components/icon_button/iconButton.css +1 -0
- package/front_end/ui/components/linear_memory_inspector/valueInterpreterDisplay.css +1 -2
- package/front_end/ui/components/linear_memory_inspector/valueInterpreterSettings.css +1 -1
- package/front_end/ui/components/report_view/reportKey.css +1 -1
- package/front_end/ui/components/report_view/reportValue.css +1 -1
- package/front_end/ui/components/settings/settingCheckbox.css +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +10 -3
- package/front_end/ui/legacy/ListWidget.ts +2 -4
- package/front_end/ui/legacy/SoftContextMenu.ts +9 -2
- package/front_end/ui/legacy/XLink.ts +6 -6
- package/front_end/ui/legacy/checkboxTextLabel.css +2 -2
- package/front_end/ui/legacy/components/color_picker/spectrum.css +9 -9
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -2
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -3
- package/front_end/ui/legacy/components/inline_editor/cssLength.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/fontEditor.css +1 -1
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -2
- package/front_end/ui/legacy/components/perf_ui/module.json +1 -3
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +13 -7
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
- package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
- package/front_end/ui/legacy/components/source_frame/module.json +0 -1
- package/front_end/ui/legacy/components/text_editor/cmdevtools.css +6 -14
- package/front_end/ui/legacy/emptyWidget.css +1 -1
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/infobar.css +2 -2
- package/front_end/ui/legacy/inspectorCommon.css +46 -46
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +4 -4
- package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +1 -1
- package/front_end/ui/legacy/inspectorViewTabbedPane.css +1 -1
- package/front_end/ui/legacy/searchableView.css +1 -1
- package/front_end/ui/legacy/softContextMenu.css +11 -1
- package/front_end/ui/legacy/tabbedPane.css +5 -0
- package/front_end/ui/legacy/textPrompt.css +1 -1
- package/front_end/ui/legacy/themeColors.css +1 -0
- package/front_end/ui/legacy/toolbar.css +8 -8
- package/front_end/ui/legacy/treeoutline.css +20 -4
- package/front_end/ui/legacy/viewContainers.css +6 -1
- package/inspector_overlay/common.css +2 -2
- package/inspector_overlay/tool_highlight.css +1 -1
- package/inspector_overlay/tool_paused.css +2 -2
- 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/lib/es_modules_import.js +21 -20
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -3
- package/scripts/eslint_rules/lib/migrate_create_shadow_root_with_styles.js +2 -2
- package/scripts/eslint_rules/lib/migrate_register_required_css.js +1 -1
- package/scripts/eslint_rules/tests/check_test_definitions_test.js +34 -0
- package/scripts/eslint_rules/tests/es_modules_import_test.js +3 -2
- 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/browser_debugger/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/elements/module.json +0 -6
- package/front_end/panels/protocol_monitor/module.json +0 -6
- package/front_end/panels/sources/module.json +0 -7
package/.stylelintrc.json
CHANGED
|
@@ -12,15 +12,6 @@
|
|
|
12
12
|
"declaration-no-important": true,
|
|
13
13
|
"color-named": "never",
|
|
14
14
|
"max-empty-lines": 1,
|
|
15
|
-
"property-no-vendor-prefix": [
|
|
16
|
-
true,
|
|
17
|
-
{
|
|
18
|
-
"ignoreProperties": [
|
|
19
|
-
"border-image",
|
|
20
|
-
"/^mask-/"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
15
|
"selector-type-no-unknown": [
|
|
25
16
|
true,
|
|
26
17
|
{
|
|
@@ -28,6 +19,19 @@
|
|
|
28
19
|
"/^devtools-/"
|
|
29
20
|
]
|
|
30
21
|
}
|
|
31
|
-
]
|
|
32
|
-
|
|
22
|
+
],
|
|
23
|
+
"max-line-length": null,
|
|
24
|
+
"selector-class-pattern": null,
|
|
25
|
+
"keyframes-name-pattern": null,
|
|
26
|
+
"selector-no-vendor-prefix": null,
|
|
27
|
+
"property-no-vendor-prefix": null,
|
|
28
|
+
"value-no-vendor-prefix": null,
|
|
29
|
+
"media-feature-name-no-vendor-prefix": null
|
|
30
|
+
},
|
|
31
|
+
"overrides": [
|
|
32
|
+
{
|
|
33
|
+
"files": ["**/*.ts"],
|
|
34
|
+
"customSyntax": "html"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
33
37
|
}
|
|
@@ -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",
|
|
@@ -34,17 +30,9 @@ all_devtools_files = [
|
|
|
34
30
|
"front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js",
|
|
35
31
|
"front_end/legacy_test_runner/bindings_test_runner/OverridesTestRunner.js",
|
|
36
32
|
"front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js",
|
|
37
|
-
"front_end/panels/browser_debugger/module.json",
|
|
38
33
|
"front_end/third_party/codemirror/codemirror.css",
|
|
39
34
|
"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
35
|
"front_end/legacy_test_runner/coverage_test_runner/coverage_test_runner.js",
|
|
47
|
-
"front_end/panels/coverage/module.json",
|
|
48
36
|
"front_end/legacy_test_runner/cpu_profiler_test_runner/cpu_profiler_test_runner.js",
|
|
49
37
|
"front_end/legacy_test_runner/data_grid_test_runner/data_grid_test_runner.js",
|
|
50
38
|
"front_end/legacy_test_runner/device_mode_test_runner/device_mode_test_runner.js",
|
|
@@ -54,7 +42,6 @@ all_devtools_files = [
|
|
|
54
42
|
"front_end/legacy_test_runner/elements_test_runner/ElementsTestRunner.js",
|
|
55
43
|
"front_end/legacy_test_runner/elements_test_runner/SetOuterHTMLTestRunner.js",
|
|
56
44
|
"front_end/legacy_test_runner/elements_test_runner/StylesUpdateLinksTestRunner.js",
|
|
57
|
-
"front_end/panels/elements/module.json",
|
|
58
45
|
"front_end/emulated_devices/module.json",
|
|
59
46
|
"front_end/panels/emulation/deviceModeToolbar.css",
|
|
60
47
|
"front_end/panels/emulation/deviceModeView.css",
|
|
@@ -65,9 +52,6 @@ all_devtools_files = [
|
|
|
65
52
|
"front_end/legacy_test_runner/extensions_test_runner/ExtensionsNetworkTestRunner.js",
|
|
66
53
|
"front_end/legacy_test_runner/extensions_test_runner/ExtensionsTestRunner.js",
|
|
67
54
|
"front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js",
|
|
68
|
-
"front_end/entrypoints/inspector_main/module.json",
|
|
69
|
-
"front_end/entrypoints/inspector_main/nodeIcon.css",
|
|
70
|
-
"front_end/entrypoints/inspector_main/renderingOptions.css",
|
|
71
55
|
"front_end/entrypoints/inspector/inspector.js",
|
|
72
56
|
"front_end/entrypoints/inspector/inspector.json",
|
|
73
57
|
"front_end/panels/js_profiler/module.json",
|
|
@@ -87,7 +71,6 @@ all_devtools_files = [
|
|
|
87
71
|
"front_end/ui/legacy/components/perf_ui/overviewGrid.css",
|
|
88
72
|
"front_end/ui/legacy/components/perf_ui/timelineGrid.css",
|
|
89
73
|
"front_end/ui/legacy/components/perf_ui/timelineOverviewInfo.css",
|
|
90
|
-
"front_end/panels/protocol_monitor/module.json",
|
|
91
74
|
"front_end/legacy_test_runner/performance_test_runner/performance_test_runner.js",
|
|
92
75
|
"front_end/legacy_test_runner/performance_test_runner/TimelineDataTestRunner.js",
|
|
93
76
|
"front_end/legacy_test_runner/performance_test_runner/TimelineTestRunner.js",
|
|
@@ -150,7 +133,6 @@ all_devtools_files = [
|
|
|
150
133
|
"front_end/models/issues_manager/descriptions/TwaDigitalAssetLinksFailed.md",
|
|
151
134
|
"front_end/models/issues_manager/descriptions/TwaHttpError.md",
|
|
152
135
|
"front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
|
|
153
|
-
"front_end/panels/protocol_monitor/module.json",
|
|
154
136
|
"front_end/panels/application/module.json",
|
|
155
137
|
"front_end/panels/screencast/module.json",
|
|
156
138
|
"front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js",
|
|
@@ -172,7 +154,6 @@ all_devtools_files = [
|
|
|
172
154
|
"front_end/legacy_test_runner/sources_test_runner/LiveEditTestRunner.js",
|
|
173
155
|
"front_end/legacy_test_runner/sources_test_runner/SearchTestRunner.js",
|
|
174
156
|
"front_end/legacy_test_runner/sources_test_runner/SourcesTestRunner.js",
|
|
175
|
-
"front_end/panels/sources/module.json",
|
|
176
157
|
"front_end/ui/legacy/components/text_editor/autocompleteTooltip.css",
|
|
177
158
|
"front_end/ui/legacy/components/text_editor/cmdevtools.css",
|
|
178
159
|
"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",
|
|
@@ -340,20 +340,17 @@ grd_files_release_sources = [
|
|
|
340
340
|
"front_end/panels/browser_debugger/browser_debugger-legacy.js",
|
|
341
341
|
"front_end/panels/browser_debugger/browser_debugger-meta.js",
|
|
342
342
|
"front_end/panels/browser_debugger/browser_debugger.js",
|
|
343
|
-
"front_end/panels/browser_debugger/browser_debugger_module.js",
|
|
344
343
|
"front_end/panels/changes/changes-legacy.js",
|
|
345
344
|
"front_end/panels/changes/changes-meta.js",
|
|
346
345
|
"front_end/panels/changes/changes.js",
|
|
347
346
|
"front_end/panels/console/console-legacy.js",
|
|
348
347
|
"front_end/panels/console/console-meta.js",
|
|
349
348
|
"front_end/panels/console/console.js",
|
|
350
|
-
"front_end/panels/console/console_module.js",
|
|
351
349
|
"front_end/panels/console_counters/console_counters-meta.js",
|
|
352
350
|
"front_end/panels/console_counters/console_counters.js",
|
|
353
351
|
"front_end/panels/coverage/coverage-legacy.js",
|
|
354
352
|
"front_end/panels/coverage/coverage-meta.js",
|
|
355
353
|
"front_end/panels/coverage/coverage.js",
|
|
356
|
-
"front_end/panels/coverage/coverage_module.js",
|
|
357
354
|
"front_end/panels/css_overview/components/components.js",
|
|
358
355
|
"front_end/panels/css_overview/css_overview-meta.js",
|
|
359
356
|
"front_end/panels/css_overview/css_overview.js",
|
|
@@ -363,7 +360,6 @@ grd_files_release_sources = [
|
|
|
363
360
|
"front_end/panels/elements/elements-legacy.js",
|
|
364
361
|
"front_end/panels/elements/elements-meta.js",
|
|
365
362
|
"front_end/panels/elements/elements.js",
|
|
366
|
-
"front_end/panels/elements/elements_module.js",
|
|
367
363
|
"front_end/panels/emulation/components/components.js",
|
|
368
364
|
"front_end/panels/emulation/emulation-legacy.js",
|
|
369
365
|
"front_end/panels/emulation/emulation-meta.js",
|
|
@@ -411,7 +407,6 @@ grd_files_release_sources = [
|
|
|
411
407
|
"front_end/panels/profiler/profiler_module.js",
|
|
412
408
|
"front_end/panels/protocol_monitor/protocol_monitor-meta.js",
|
|
413
409
|
"front_end/panels/protocol_monitor/protocol_monitor.js",
|
|
414
|
-
"front_end/panels/protocol_monitor/protocol_monitor_module.js",
|
|
415
410
|
"front_end/panels/screencast/screencast-meta.js",
|
|
416
411
|
"front_end/panels/screencast/screencast.js",
|
|
417
412
|
"front_end/panels/search/search-legacy.js",
|
|
@@ -435,7 +430,6 @@ grd_files_release_sources = [
|
|
|
435
430
|
"front_end/panels/sources/sources-legacy.js",
|
|
436
431
|
"front_end/panels/sources/sources-meta.js",
|
|
437
432
|
"front_end/panels/sources/sources.js",
|
|
438
|
-
"front_end/panels/sources/sources_module.js",
|
|
439
433
|
"front_end/panels/timeline/components/components.js",
|
|
440
434
|
"front_end/panels/timeline/timeline-legacy.js",
|
|
441
435
|
"front_end/panels/timeline/timeline-meta.js",
|
|
@@ -517,10 +511,8 @@ grd_files_release_sources = [
|
|
|
517
511
|
"front_end/ui/legacy/components/source_frame/source_frame-legacy.js",
|
|
518
512
|
"front_end/ui/legacy/components/source_frame/source_frame-meta.js",
|
|
519
513
|
"front_end/ui/legacy/components/source_frame/source_frame.js",
|
|
520
|
-
"front_end/ui/legacy/components/source_frame/source_frame_module.js",
|
|
521
514
|
"front_end/ui/legacy/components/text_editor/text_editor-legacy.js",
|
|
522
515
|
"front_end/ui/legacy/components/text_editor/text_editor.js",
|
|
523
|
-
"front_end/ui/legacy/components/text_editor/text_editor_module.js",
|
|
524
516
|
"front_end/ui/legacy/components/utils/utils-legacy.js",
|
|
525
517
|
"front_end/ui/legacy/components/utils/utils.js",
|
|
526
518
|
"front_end/ui/legacy/legacy-legacy.js",
|
|
@@ -724,6 +716,7 @@ grd_files_debug_sources = [
|
|
|
724
716
|
"front_end/models/issues_manager/ContrastCheckTrigger.js",
|
|
725
717
|
"front_end/models/issues_manager/CorsIssue.js",
|
|
726
718
|
"front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.js",
|
|
719
|
+
"front_end/models/issues_manager/DeprecationIssue.js",
|
|
727
720
|
"front_end/models/issues_manager/GenericIssue.js",
|
|
728
721
|
"front_end/models/issues_manager/HeavyAdIssue.js",
|
|
729
722
|
"front_end/models/issues_manager/Issue.js",
|
|
Binary file
|
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
|
}
|
|
@@ -1332,8 +1331,8 @@
|
|
|
1332
1331
|
const browserContextIds = [];
|
|
1333
1332
|
const targetAgent = self.SDK.targetManager.mainTarget().targetAgent();
|
|
1334
1333
|
|
|
1335
|
-
const target1 = await createIsolatedTarget(url);
|
|
1336
|
-
const target2 = await createIsolatedTarget(url);
|
|
1334
|
+
const target1 = await createIsolatedTarget(url, browserContextIds);
|
|
1335
|
+
const target2 = await createIsolatedTarget(url, browserContextIds);
|
|
1337
1336
|
|
|
1338
1337
|
const response = await targetAgent.invoke_getBrowserContexts();
|
|
1339
1338
|
this.assertEquals(response.browserContextIds.length, 2);
|
|
@@ -1357,34 +1356,37 @@
|
|
|
1357
1356
|
this.assertEquals(removedTargets.indexOf(target2) !== -1, true);
|
|
1358
1357
|
|
|
1359
1358
|
this.releaseControl();
|
|
1359
|
+
};
|
|
1360
1360
|
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1361
|
+
/**
|
|
1362
|
+
* @param {string} url
|
|
1363
|
+
* @return {!Promise<!SDK.Target>}
|
|
1364
|
+
*/
|
|
1365
|
+
async function createIsolatedTarget(url, opt_browserContextIds) {
|
|
1366
|
+
const targetAgent = self.SDK.targetManager.mainTarget().targetAgent();
|
|
1367
|
+
const {browserContextId} = await targetAgent.invoke_createBrowserContext();
|
|
1368
|
+
if (opt_browserContextIds) {
|
|
1369
|
+
opt_browserContextIds.push(browserContextId);
|
|
1370
|
+
}
|
|
1368
1371
|
|
|
1369
|
-
|
|
1370
|
-
|
|
1372
|
+
const {targetId} = await targetAgent.invoke_createTarget({url: 'about:blank', browserContextId});
|
|
1373
|
+
await targetAgent.invoke_attachToTarget({targetId, flatten: true});
|
|
1371
1374
|
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1375
|
+
const target = self.SDK.targetManager.targets().find(target => target.id() === targetId);
|
|
1376
|
+
const pageAgent = target.pageAgent();
|
|
1377
|
+
await pageAgent.invoke_enable();
|
|
1378
|
+
await pageAgent.invoke_navigate({url});
|
|
1379
|
+
return target;
|
|
1380
|
+
}
|
|
1378
1381
|
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1382
|
+
async function disposeBrowserContext(browserContextId) {
|
|
1383
|
+
const targetAgent = self.SDK.targetManager.mainTarget().targetAgent();
|
|
1384
|
+
await targetAgent.invoke_disposeBrowserContext({browserContextId});
|
|
1385
|
+
}
|
|
1383
1386
|
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
};
|
|
1387
|
+
async function evalCode(target, code) {
|
|
1388
|
+
return (await target.runtimeAgent().invoke_evaluate({expression: code})).result.value;
|
|
1389
|
+
}
|
|
1388
1390
|
|
|
1389
1391
|
TestSuite.prototype.testInputDispatchEventsToOOPIF = async function() {
|
|
1390
1392
|
this.takeControl();
|
|
@@ -1392,14 +1394,12 @@
|
|
|
1392
1394
|
await new Promise(callback => this._waitForTargets(2, callback));
|
|
1393
1395
|
|
|
1394
1396
|
async function takeLogs(target) {
|
|
1395
|
-
|
|
1397
|
+
return await evalCode(target, `
|
|
1396
1398
|
(function() {
|
|
1397
1399
|
var result = window.logs.join(' ');
|
|
1398
1400
|
window.logs = [];
|
|
1399
1401
|
return result;
|
|
1400
|
-
})()
|
|
1401
|
-
`;
|
|
1402
|
-
return (await target.runtimeAgent().invoke_evaluate({expression: code})).result.value;
|
|
1402
|
+
})()`);
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
let parentFrameOutput;
|
|
@@ -364,13 +364,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
|
|
364
364
|
export let InspectorFrontendHostInstance: InspectorFrontendHostStub = window.InspectorFrontendHost;
|
|
365
365
|
|
|
366
366
|
class InspectorFrontendAPIImpl {
|
|
367
|
-
readonly #debugFrontend: boolean;
|
|
368
|
-
|
|
369
367
|
constructor() {
|
|
370
|
-
this.#debugFrontend = (Boolean(Root.Runtime.Runtime.queryParam('debugFrontend'))) ||
|
|
371
|
-
// @ts-ignore Compatibility hacks
|
|
372
|
-
(window['InspectorTest'] && window['InspectorTest']['debugTest']);
|
|
373
|
-
|
|
374
368
|
for (const descriptor of EventDescriptors) {
|
|
375
369
|
// @ts-ignore Dispatcher magic
|
|
376
370
|
this[descriptor[1]] = this.dispatch.bind(this, descriptor[0], descriptor[2], descriptor[3]);
|
|
@@ -378,35 +372,27 @@ class InspectorFrontendAPIImpl {
|
|
|
378
372
|
}
|
|
379
373
|
|
|
380
374
|
private dispatch(name: symbol, signature: string[], runOnceLoaded: boolean, ...params: string[]): void {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
} else {
|
|
384
|
-
innerDispatch();
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
function innerDispatch(): void {
|
|
388
|
-
// Single argument methods get dispatched with the param.
|
|
389
|
-
if (signature.length < 2) {
|
|
390
|
-
try {
|
|
391
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
392
|
-
InspectorFrontendHostInstance.events.dispatchEventToListeners<any>(name, params[0]);
|
|
393
|
-
} catch (error) {
|
|
394
|
-
console.error(error + ' ' + error.stack);
|
|
395
|
-
}
|
|
396
|
-
return;
|
|
397
|
-
}
|
|
398
|
-
const data: {
|
|
399
|
-
[x: string]: string,
|
|
400
|
-
} = {};
|
|
401
|
-
for (let i = 0; i < signature.length; ++i) {
|
|
402
|
-
data[signature[i]] = params[i];
|
|
403
|
-
}
|
|
375
|
+
// Single argument methods get dispatched with the param.
|
|
376
|
+
if (signature.length < 2) {
|
|
404
377
|
try {
|
|
405
378
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
406
|
-
InspectorFrontendHostInstance.events.dispatchEventToListeners<any>(name,
|
|
379
|
+
InspectorFrontendHostInstance.events.dispatchEventToListeners<any>(name, params[0]);
|
|
407
380
|
} catch (error) {
|
|
408
381
|
console.error(error + ' ' + error.stack);
|
|
409
382
|
}
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
const data: {
|
|
386
|
+
[x: string]: string,
|
|
387
|
+
} = {};
|
|
388
|
+
for (let i = 0; i < signature.length; ++i) {
|
|
389
|
+
data[signature[i]] = params[i];
|
|
390
|
+
}
|
|
391
|
+
try {
|
|
392
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
393
|
+
InspectorFrontendHostInstance.events.dispatchEventToListeners<any>(name, data);
|
|
394
|
+
} catch (error) {
|
|
395
|
+
console.error(error + ' ' + error.stack);
|
|
410
396
|
}
|
|
411
397
|
}
|
|
412
398
|
|
|
@@ -245,6 +245,22 @@ export class UserMetrics {
|
|
|
245
245
|
InspectorFrontendHostInstance.recordEnumeratedHistogram(
|
|
246
246
|
EnumeratedHistogram.ConsoleShowsCorsErrors, Number(show), 2);
|
|
247
247
|
}
|
|
248
|
+
|
|
249
|
+
syncSetting(devtoolsSyncSettingEnabled: boolean): void {
|
|
250
|
+
const size = Object.keys(SyncSetting).length + 1;
|
|
251
|
+
|
|
252
|
+
InspectorFrontendHostInstance.getSyncInformation(syncInfo => {
|
|
253
|
+
let settingValue = SyncSetting.ChromeSyncDisabled;
|
|
254
|
+
if (syncInfo.isSyncActive && !syncInfo.arePreferencesSynced) {
|
|
255
|
+
settingValue = SyncSetting.ChromeSyncSettingsDisabled;
|
|
256
|
+
} else if (syncInfo.isSyncActive && syncInfo.arePreferencesSynced) {
|
|
257
|
+
settingValue = devtoolsSyncSettingEnabled ? SyncSetting.DevToolsSyncSettingEnabled :
|
|
258
|
+
SyncSetting.DevToolsSyncSettingDisabled;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
InspectorFrontendHostInstance.recordEnumeratedHistogram(EnumeratedHistogram.SyncSetting, settingValue, size);
|
|
262
|
+
});
|
|
263
|
+
}
|
|
248
264
|
}
|
|
249
265
|
|
|
250
266
|
// Codes below are used to collect UMA histograms in the Chromium port.
|
|
@@ -800,3 +816,12 @@ export const Language: Record<string, number> = {
|
|
|
800
816
|
'zh-TW': 81,
|
|
801
817
|
'zu': 82,
|
|
802
818
|
};
|
|
819
|
+
|
|
820
|
+
// TODO(crbug.com/1167717): Make this a const enum again
|
|
821
|
+
// eslint-disable-next-line rulesdir/const_enum
|
|
822
|
+
export enum SyncSetting {
|
|
823
|
+
ChromeSyncDisabled = 1,
|
|
824
|
+
ChromeSyncSettingsDisabled = 2,
|
|
825
|
+
DevToolsSyncSettingDisabled = 3,
|
|
826
|
+
DevToolsSyncSettingEnabled = 4,
|
|
827
|
+
}
|
|
@@ -935,6 +935,9 @@
|
|
|
935
935
|
"entrypoints/inspector_main/RenderingOptions.ts | forcesCssColorgamutMediaFeature": {
|
|
936
936
|
"message": "Forces CSS color-gamut media feature"
|
|
937
937
|
},
|
|
938
|
+
"entrypoints/inspector_main/RenderingOptions.ts | forcesCssForcedColors": {
|
|
939
|
+
"message": "Forces CSS forced-colors media feature"
|
|
940
|
+
},
|
|
938
941
|
"entrypoints/inspector_main/RenderingOptions.ts | forcesCssPreferscolorschemeMedia": {
|
|
939
942
|
"message": "Forces CSS prefers-color-scheme media feature"
|
|
940
943
|
},
|
|
@@ -9147,7 +9150,7 @@
|
|
|
9147
9150
|
"message": "Coverage: n/a"
|
|
9148
9151
|
},
|
|
9149
9152
|
"panels/sources/CoveragePlugin.ts | coverageS": {
|
|
9150
|
-
"message": "Coverage: {PH1}
|
|
9153
|
+
"message": "Coverage: {PH1}"
|
|
9151
9154
|
},
|
|
9152
9155
|
"panels/sources/CoveragePlugin.ts | showDetails": {
|
|
9153
9156
|
"message": "Show Details"
|
|
@@ -935,6 +935,9 @@
|
|
|
935
935
|
"entrypoints/inspector_main/RenderingOptions.ts | forcesCssColorgamutMediaFeature": {
|
|
936
936
|
"message": "F̂ór̂ćêś ĈŚŜ color-gamut ḿêd́îá f̂éât́ûŕê"
|
|
937
937
|
},
|
|
938
|
+
"entrypoints/inspector_main/RenderingOptions.ts | forcesCssForcedColors": {
|
|
939
|
+
"message": "F̂ór̂ćêś ĈŚŜ f́ôŕĉéd̂-ćôĺôŕŝ ḿêd́îá f̂éât́ûŕê"
|
|
940
|
+
},
|
|
938
941
|
"entrypoints/inspector_main/RenderingOptions.ts | forcesCssPreferscolorschemeMedia": {
|
|
939
942
|
"message": "F̂ór̂ćêś ĈŚŜ prefers-color-scheme ḿêd́îá f̂éât́ûŕê"
|
|
940
943
|
},
|
|
@@ -9147,7 +9150,7 @@
|
|
|
9147
9150
|
"message": "Ĉóv̂ér̂áĝé: n̂/á"
|
|
9148
9151
|
},
|
|
9149
9152
|
"panels/sources/CoveragePlugin.ts | coverageS": {
|
|
9150
|
-
"message": "Ĉóv̂ér̂áĝé: {PH1}
|
|
9153
|
+
"message": "Ĉóv̂ér̂áĝé: {PH1}"
|
|
9151
9154
|
},
|
|
9152
9155
|
"panels/sources/CoveragePlugin.ts | showDetails": {
|
|
9153
9156
|
"message": "Ŝh́ôẃ D̂ét̂áîĺŝ"
|
|
@@ -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;
|
|
@@ -76,6 +76,8 @@ export class EmulationModel extends SDKModel<void> {
|
|
|
76
76
|
Common.Settings.Settings.instance().moduleSetting<string>('emulatedCSSMediaFeatureColorGamut');
|
|
77
77
|
const mediaFeaturePrefersColorSchemeSetting =
|
|
78
78
|
Common.Settings.Settings.instance().moduleSetting<string>('emulatedCSSMediaFeaturePrefersColorScheme');
|
|
79
|
+
const mediaFeatureForcedColorsSetting =
|
|
80
|
+
Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeatureForcedColors');
|
|
79
81
|
const mediaFeaturePrefersContrastSetting =
|
|
80
82
|
Common.Settings.Settings.instance().moduleSetting<string>('emulatedCSSMediaFeaturePrefersContrast');
|
|
81
83
|
const mediaFeaturePrefersReducedDataSetting =
|
|
@@ -90,6 +92,7 @@ export class EmulationModel extends SDKModel<void> {
|
|
|
90
92
|
['type', mediaTypeSetting.get()],
|
|
91
93
|
['color-gamut', mediaFeatureColorGamutSetting.get()],
|
|
92
94
|
['prefers-color-scheme', mediaFeaturePrefersColorSchemeSetting.get()],
|
|
95
|
+
['forced-colors', mediaFeatureForcedColorsSetting.get()],
|
|
93
96
|
['prefers-contrast', mediaFeaturePrefersContrastSetting.get()],
|
|
94
97
|
['prefers-reduced-data', mediaFeaturePrefersReducedDataSetting.get()],
|
|
95
98
|
['prefers-reduced-motion', mediaFeaturePrefersReducedMotionSetting.get()],
|
|
@@ -106,6 +109,10 @@ export class EmulationModel extends SDKModel<void> {
|
|
|
106
109
|
this.#mediaConfiguration.set('prefers-color-scheme', mediaFeaturePrefersColorSchemeSetting.get());
|
|
107
110
|
this.updateCssMedia();
|
|
108
111
|
});
|
|
112
|
+
mediaFeatureForcedColorsSetting.addChangeListener(() => {
|
|
113
|
+
this.#mediaConfiguration.set('forced-colors', mediaFeatureForcedColorsSetting.get());
|
|
114
|
+
this.updateCssMedia();
|
|
115
|
+
});
|
|
109
116
|
mediaFeaturePrefersContrastSetting.addChangeListener(() => {
|
|
110
117
|
this.#mediaConfiguration.set('prefers-contrast', mediaFeaturePrefersContrastSetting.get());
|
|
111
118
|
this.updateCssMedia();
|
|
@@ -367,6 +374,10 @@ export class EmulationModel extends SDKModel<void> {
|
|
|
367
374
|
name: 'prefers-color-scheme',
|
|
368
375
|
value: this.#mediaConfiguration.get('prefers-color-scheme') ?? '',
|
|
369
376
|
},
|
|
377
|
+
{
|
|
378
|
+
name: 'forced-colors',
|
|
379
|
+
value: this.#mediaConfiguration.get('forced-colors') ?? '',
|
|
380
|
+
},
|
|
370
381
|
{
|
|
371
382
|
name: 'prefers-contrast',
|
|
372
383
|
value: this.#mediaConfiguration.get('prefers-contrast') ?? '',
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../common/common.js';
|
|
6
|
-
|
|
7
6
|
import * as i18n from '../i18n/i18n.js';
|
|
7
|
+
|
|
8
8
|
const UIStrings = {
|
|
9
9
|
/**
|
|
10
10
|
*@description Title of a setting under the Console category that can be invoked through the Command Menu
|
|
@@ -746,6 +746,35 @@ Common.Settings.registerSettingExtension({
|
|
|
746
746
|
title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-color-scheme'}),
|
|
747
747
|
});
|
|
748
748
|
|
|
749
|
+
Common.Settings.registerSettingExtension({
|
|
750
|
+
category: Common.Settings.SettingCategory.RENDERING,
|
|
751
|
+
settingName: 'emulatedCSSMediaFeatureForcedColors',
|
|
752
|
+
settingType: Common.Settings.SettingType.ENUM,
|
|
753
|
+
storageType: Common.Settings.SettingStorageType.Session,
|
|
754
|
+
defaultValue: '',
|
|
755
|
+
options: [
|
|
756
|
+
{
|
|
757
|
+
title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'forced-colors'}),
|
|
758
|
+
text: i18nLazyString(UIStrings.noEmulation),
|
|
759
|
+
value: '',
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
title: i18nLazyString(UIStrings.emulateCss, {PH1: 'forced-colors: active'}),
|
|
763
|
+
text: i18n.i18n.lockedLazyString('forced-colors: active'),
|
|
764
|
+
value: 'active',
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
title: i18nLazyString(UIStrings.emulateCss, {PH1: 'forced-colors: none'}),
|
|
768
|
+
text: i18n.i18n.lockedLazyString('forced-colors: none'),
|
|
769
|
+
value: 'none',
|
|
770
|
+
},
|
|
771
|
+
],
|
|
772
|
+
tags: [
|
|
773
|
+
i18nLazyString(UIStrings.query),
|
|
774
|
+
],
|
|
775
|
+
title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'forced-colors'}),
|
|
776
|
+
});
|
|
777
|
+
|
|
749
778
|
Common.Settings.registerSettingExtension({
|
|
750
779
|
category: Common.Settings.SettingCategory.RENDERING,
|
|
751
780
|
settingName: 'emulatedCSSMediaFeaturePrefersReducedMotion',
|
|
@@ -1,12 +1,8 @@
|
|
|
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
|
-
{ "name": "panels/browser_debugger" },
|
|
9
|
-
{ "name": "panels/elements" },
|
|
10
6
|
{ "name": "emulated_devices" },
|
|
11
7
|
{ "name": "panels/issues" },
|
|
12
8
|
{ "name": "panels/layers" },
|
|
@@ -187,6 +187,10 @@ const UIStrings = {
|
|
|
187
187
|
* page from loading images with the WebP format.
|
|
188
188
|
*/
|
|
189
189
|
disableWebpImageFormat: 'Disable `WebP` image format',
|
|
190
|
+
/**
|
|
191
|
+
* @description Explanation text for the 'Forces CSS forced-colors' setting in the Rendering tool.
|
|
192
|
+
*/
|
|
193
|
+
forcesCssForcedColors: 'Forces CSS forced-colors media feature',
|
|
190
194
|
};
|
|
191
195
|
const str_ = i18n.i18n.registerUIStrings('entrypoints/inspector_main/RenderingOptions.ts', UIStrings);
|
|
192
196
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -263,13 +267,16 @@ export class RenderingOptionsView extends UI.Widget.VBox {
|
|
|
263
267
|
i18nString(UIStrings.forcesCssPreferscolorschemeMedia),
|
|
264
268
|
Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeaturePrefersColorScheme'));
|
|
265
269
|
this.appendSelect(
|
|
266
|
-
i18nString(UIStrings.
|
|
267
|
-
Common.Settings.Settings.instance().moduleSetting('
|
|
270
|
+
i18nString(UIStrings.forcesCssForcedColors),
|
|
271
|
+
Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeatureForcedColors'));
|
|
268
272
|
if (supportsPrefersContrast()) {
|
|
269
273
|
this.appendSelect(
|
|
270
274
|
i18nString(UIStrings.forcesCssPreferscontrastMedia),
|
|
271
275
|
Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeaturePrefersContrast'));
|
|
272
276
|
}
|
|
277
|
+
this.appendSelect(
|
|
278
|
+
i18nString(UIStrings.forcesCssPrefersreducedmotion),
|
|
279
|
+
Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeaturePrefersReducedMotion'));
|
|
273
280
|
if (supportsPrefersReducedData()) {
|
|
274
281
|
this.appendSelect(
|
|
275
282
|
i18nString(UIStrings.forcesCssPrefersreduceddataMedia),
|
|
@@ -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;
|