chrome-devtools-frontend 1.0.1579812 → 1.0.1581449
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/agents/prompts/creating-a-model.md +51 -0
- package/docs/feature-specs/elements-tree-edit-html.md +14 -0
- package/docs/feature-specs/elements-tree-node-title.md +46 -0
- package/front_end/core/host/UserMetrics.ts +3 -7
- package/front_end/core/root/Runtime.ts +0 -1
- package/front_end/core/sdk/NetworkManager.ts +0 -35
- package/front_end/core/sdk/OverlayModel.ts +10 -0
- package/front_end/devtools_compatibility.js +4 -0
- package/front_end/entrypoints/devtools_app/devtools_app.ts +1 -0
- package/front_end/entrypoints/greendev_floaty/FloatyEntrypoint.ts +530 -0
- package/front_end/entrypoints/greendev_floaty/floaty.css +258 -0
- package/front_end/entrypoints/greendev_floaty/floaty.html +31 -0
- package/front_end/entrypoints/greendev_floaty/greendev_floaty.ts +422 -0
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +0 -38
- package/front_end/generated/InspectorBackendCommands.ts +9 -3
- package/front_end/generated/SupportedCSSProperties.js +39 -31
- package/front_end/generated/protocol-mapping.d.ts +12 -0
- package/front_end/generated/protocol-proxy-api.d.ts +12 -0
- package/front_end/generated/protocol.ts +56 -2
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +33 -8
- package/front_end/models/computed_style/computed_style.ts +9 -0
- package/front_end/models/issues_manager/CorsIssue.ts +11 -14
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +3 -5
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +15 -0
- package/front_end/panels/ai_assistance/components/ChatInput.ts +15 -2
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -0
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +0 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +2 -4
- package/front_end/panels/autofill/AutofillView.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +0 -1
- package/front_end/panels/changes/changesSidebar.css +5 -0
- package/front_end/panels/common/ExtensionPanel.ts +4 -0
- package/front_end/panels/common/FreDialog.ts +4 -0
- package/front_end/panels/console/ConsoleViewMessage.ts +0 -1
- package/front_end/panels/coverage/CoverageListView.ts +18 -3
- package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +11 -0
- package/front_end/panels/elements/ComputedStyleWidget.ts +12 -8
- package/front_end/panels/elements/ElementsPanel.ts +4 -3
- package/front_end/panels/elements/ElementsSidebarPane.ts +11 -8
- package/front_end/panels/elements/ElementsTreeElement.ts +0 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +25 -15
- package/front_end/panels/elements/LayoutPane.ts +7 -8
- package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
- package/front_end/panels/elements/PlatformFontsWidget.ts +7 -5
- package/front_end/panels/elements/PropertiesWidget.ts +3 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +4 -3
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -1
- package/front_end/panels/elements/components/StylePropertyEditor.ts +1 -2
- package/front_end/panels/elements/elements.ts +1 -3
- package/front_end/panels/greendev/GreenDevPanel.css +241 -0
- package/front_end/panels/greendev/GreenDevPanel.ts +308 -0
- package/front_end/panels/greendev/GreenDevShared.ts +13 -0
- package/front_end/panels/greendev/greendev-meta.ts +52 -0
- package/front_end/panels/greendev/greendev.ts +9 -0
- package/front_end/panels/issues/CorsIssueDetailsView.ts +4 -4
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -2
- package/front_end/panels/network/components/RequestHeaderSection.ts +1 -1
- package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
- package/front_end/panels/recorder/components/RecordingListView.ts +1 -1
- package/front_end/panels/recorder/components/StepEditor.ts +3 -3
- package/front_end/panels/security/SecurityPanel.ts +0 -4
- package/front_end/panels/security/SecurityPanelSidebar.ts +2 -42
- package/front_end/panels/security/security-meta.ts +2 -14
- package/front_end/panels/security/security.ts +0 -4
- package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -2
- package/front_end/panels/sources/SourcesSearchScope.ts +2 -1
- package/front_end/panels/sources/components/HeadersView.ts +2 -2
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +1 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +35 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +19 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +16 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +21 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.d.ts +13 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js +56 -36
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +32 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +32 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +20 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +25 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js +23 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +10 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts +29 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +46 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +13 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +7 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +43 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js +34 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.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/PuppeteerNode.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +129 -3
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +233 -65
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +35 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +19 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +16 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +21 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.d.ts +13 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js +56 -36
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +30 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +32 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +20 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +25 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js +23 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +10 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts +29 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +46 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +19 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +14 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/JSHandle.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +7 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +43 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.js +31 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.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/PuppeteerNode.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +129 -3
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +46 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +21 -0
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +23 -0
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +88 -56
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +33 -8
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +61 -3
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +23 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +29 -8
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +30 -0
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -2
- package/front_end/third_party/puppeteer/package/src/bidi/core/UserContext.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +85 -8
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +36 -1
- package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +23 -2
- package/front_end/third_party/puppeteer/package/src/cdp/JSHandle.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +60 -8
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +36 -3
- package/front_end/third_party/puppeteer/package/src/common/Cookie.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/XPathQuerySelector.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/node/LaunchOptions.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +8 -6
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +12 -7
- package/front_end/ui/components/text_editor/AutocompleteHistory.ts +2 -1
- package/front_end/ui/components/text_editor/TextEditorHistory.ts +1 -1
- package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -1
- package/front_end/ui/legacy/ListControl.ts +1 -2
- package/front_end/ui/legacy/ListWidget.ts +1 -1
- package/front_end/ui/legacy/SearchableView.ts +5 -2
- package/front_end/ui/legacy/SoftContextMenu.ts +1 -2
- package/front_end/ui/legacy/Treeoutline.ts +0 -1
- package/front_end/ui/legacy/Widget.ts +15 -0
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +8 -4
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +50 -1
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +2 -1
- package/front_end/ui/legacy/components/data_grid/data_grid.ts +1 -0
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +13 -0
- package/mcp/mcp.ts +1 -0
- package/package.json +1 -1
- package/front_end/panels/security/CookieControlsTreeElement.ts +0 -21
- package/front_end/panels/security/CookieControlsView.ts +0 -447
- package/front_end/panels/security/CookieReportTreeElement.ts +0 -21
- package/front_end/panels/security/CookieReportView.ts +0 -549
- package/front_end/panels/security/cookieControlsView.css +0 -139
- package/front_end/panels/security/cookieReportView.css +0 -90
- /package/front_end/{panels/elements → models/computed_style}/ComputedStyleModel.ts +0 -0
|
@@ -197,7 +197,7 @@ export class LighthouseReportRenderer {
|
|
|
197
197
|
continue;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
auditEl.setAttribute('jslog', `${VisualLogging.item(`lighthouse.audit.${id}`)
|
|
200
|
+
auditEl.setAttribute('jslog', `${VisualLogging.item(`lighthouse.audit.${id}`)}`);
|
|
201
201
|
|
|
202
202
|
let state: string|undefined;
|
|
203
203
|
for (const className of auditEl.classList) {
|
|
@@ -60,7 +60,7 @@ function renderEndiannessSetting(
|
|
|
60
60
|
data-endianness="true" @change=${(e: Event) => onEndiannessChanged((e.target as HTMLSelectElement).value as Endianness)}>
|
|
61
61
|
${[Endianness.LITTLE, Endianness.BIG].map(endianness => {
|
|
62
62
|
return html`<option value=${endianness} .selected=${currentEndiannes === endianness}
|
|
63
|
-
jslog=${VisualLogging.item(Platform.StringUtilities.toKebabCase(endianness)).track({click: true
|
|
63
|
+
jslog=${VisualLogging.item(Platform.StringUtilities.toKebabCase(endianness)).track({click: true})}>${
|
|
64
64
|
i18n.i18n.lockedString(endianness)}</option>`;
|
|
65
65
|
})}
|
|
66
66
|
</select>
|
|
@@ -104,7 +104,7 @@ export const DEFAULT_VIEW: View = (input: ViewInput, _output: undefined, target:
|
|
|
104
104
|
${VALUE_TYPE_MODE_LIST.filter(x => isValidMode(type, x)).map(mode => {
|
|
105
105
|
return html`
|
|
106
106
|
<option value=${mode} .selected=${input.valueTypeModes.get(type) === mode}
|
|
107
|
-
jslog=${VisualLogging.item(mode).track({click: true
|
|
107
|
+
jslog=${VisualLogging.item(mode).track({click: true})}>${
|
|
108
108
|
i18n.i18n.lockedString(mode)}
|
|
109
109
|
</option>`;
|
|
110
110
|
})}
|
|
@@ -84,7 +84,7 @@ const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
84
84
|
@contextmenu=${(e: Event) => input.onPlayerContextMenu(player.playerID, e)}
|
|
85
85
|
role="option"
|
|
86
86
|
aria-selected=${isSelected}
|
|
87
|
-
jslog=${VisualLogging.item('player').track({click: true
|
|
87
|
+
jslog=${VisualLogging.item('player').track({click: true})}>
|
|
88
88
|
<div class="player-entry-status-icon vbox">
|
|
89
89
|
<div class="player-entry-status-icon-centering">
|
|
90
90
|
<devtools-icon name=${player.iconName}></devtools-icon>
|
|
@@ -410,8 +410,7 @@ export class NetworkLogViewColumns {
|
|
|
410
410
|
|
|
411
411
|
private createWaterfallHeader(): void {
|
|
412
412
|
this.waterfallHeaderElement = this.waterfallColumn.contentElement.createChild('div', 'network-waterfall-header');
|
|
413
|
-
this.waterfallHeaderElement.setAttribute(
|
|
414
|
-
'jslog', `${VisualLogging.tableHeader('waterfall').track({click: true, resize: true})}`);
|
|
413
|
+
this.waterfallHeaderElement.setAttribute('jslog', `${VisualLogging.tableHeader('waterfall').track({click: true})}`);
|
|
415
414
|
this.waterfallHeaderElement.addEventListener('click', waterfallHeaderClicked.bind(this));
|
|
416
415
|
this.waterfallHeaderElement.addEventListener('contextmenu', event => {
|
|
417
416
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
@@ -59,7 +59,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
59
59
|
${headers.map(header => html`
|
|
60
60
|
<devtools-header-section-row
|
|
61
61
|
.data=${{ header }}
|
|
62
|
-
jslog=${VisualLogging.item('request-header')
|
|
62
|
+
jslog=${VisualLogging.item('request-header')}
|
|
63
63
|
></devtools-header-section-row>
|
|
64
64
|
`)}
|
|
65
65
|
`, target);
|
|
@@ -990,7 +990,7 @@ function renderTargetSelectorRow(input: ViewInput): Lit.TemplateResult|undefined
|
|
|
990
990
|
jslog=${VisualLogging.dropDown('target-selector').track({change: true})}
|
|
991
991
|
@change=${input.onTargetSelected}>
|
|
992
992
|
${input.targets.map(target => html`
|
|
993
|
-
<option jslog=${VisualLogging.item('target').track({click: true
|
|
993
|
+
<option jslog=${VisualLogging.item('target').track({click: true})}
|
|
994
994
|
value=${target.id()} ?selected=${target.id() === input.targetId}>
|
|
995
995
|
${target.name()} (${target.inspectedURL()})
|
|
996
996
|
</option>`)}
|
|
@@ -140,7 +140,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
140
140
|
@keydown=${(event: Event) => onKeyDown(recording.storageName, event)}
|
|
141
141
|
@click=${(event: Event) => onOpenClick(recording.storageName, event)}
|
|
142
142
|
jslog=${VisualLogging.item()
|
|
143
|
-
.track({ click: true
|
|
143
|
+
.track({ click: true })
|
|
144
144
|
.context('recording')}>
|
|
145
145
|
<div class="icon">
|
|
146
146
|
<devtools-icon name="flow">
|
|
@@ -646,7 +646,7 @@ export class StepEditor extends LitElement {
|
|
|
646
646
|
#renderTypeRow(editable: boolean): Lit.TemplateResult {
|
|
647
647
|
this.#renderedAttributes.add('type');
|
|
648
648
|
// clang-format off
|
|
649
|
-
return html`<div class="row attribute" data-attribute="type" jslog=${VisualLogging.treeItem('type')
|
|
649
|
+
return html`<div class="row attribute" data-attribute="type" jslog=${VisualLogging.treeItem('type')}>
|
|
650
650
|
<div id="type">type<span class="separator">:</span></div>
|
|
651
651
|
<devtools-suggestion-input
|
|
652
652
|
aria-labelledby="type"
|
|
@@ -667,7 +667,7 @@ export class StepEditor extends LitElement {
|
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
669
|
// clang-format off
|
|
670
|
-
return html`<div class="row attribute" data-attribute=${attribute} jslog=${VisualLogging.treeItem(Platform.StringUtilities.toKebabCase(attribute))
|
|
670
|
+
return html`<div class="row attribute" data-attribute=${attribute} jslog=${VisualLogging.treeItem(Platform.StringUtilities.toKebabCase(attribute))}>
|
|
671
671
|
<div id=${attribute}>${attribute}<span class="separator">:</span></div>
|
|
672
672
|
<devtools-suggestion-input
|
|
673
673
|
.disabled=${this.disabled}
|
|
@@ -706,7 +706,7 @@ export class StepEditor extends LitElement {
|
|
|
706
706
|
}
|
|
707
707
|
// clang-format off
|
|
708
708
|
return html`
|
|
709
|
-
<div class="attribute" data-attribute="frame" jslog=${VisualLogging.treeItem('frame')
|
|
709
|
+
<div class="attribute" data-attribute="frame" jslog=${VisualLogging.treeItem('frame')}>
|
|
710
710
|
<div class="row">
|
|
711
711
|
<div id="frame">frame<span class="separator">:</span></div>
|
|
712
712
|
${this.#renderDeleteButton('frame')}
|
|
@@ -15,8 +15,6 @@ import * as UI from '../../ui/legacy/legacy.js';
|
|
|
15
15
|
import {html, render} from '../../ui/lit/lit.js';
|
|
16
16
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
17
17
|
|
|
18
|
-
import {CookieControlsView} from './CookieControlsView.js';
|
|
19
|
-
import {CookieReportView} from './CookieReportView.js';
|
|
20
18
|
import lockIconStyles from './lockIcon.css.js';
|
|
21
19
|
import mainViewStyles from './mainView.css.js';
|
|
22
20
|
import {ShowOriginEvent} from './OriginTreeElement.js';
|
|
@@ -555,8 +553,6 @@ const DEFAULT_VIEW: View = (input: ViewInput, output: ViewOutput, target: HTMLEl
|
|
|
555
553
|
<devtools-widget
|
|
556
554
|
slot="sidebar"
|
|
557
555
|
.widgetConfig=${widgetConfig(SecurityPanelSidebar)}
|
|
558
|
-
@showCookieReport=${()=>output.setVisibleView(new CookieReportView())}
|
|
559
|
-
@showFlagControls=${() => output.setVisibleView(new CookieControlsView())}
|
|
560
556
|
${UI.Widget.widgetRef(SecurityPanelSidebar, e => {output.sidebar = e;})}>
|
|
561
557
|
</devtools-widget>
|
|
562
558
|
</devtools-split-view>`,
|
|
@@ -6,13 +6,10 @@
|
|
|
6
6
|
import * as Common from '../../core/common/common.js';
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
|
9
|
-
import * as Root from '../../core/root/root.js';
|
|
10
9
|
import * as Protocol from '../../generated/protocol.js';
|
|
11
10
|
import type {Icon} from '../../ui/kit/kit.js';
|
|
12
11
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
12
|
|
|
14
|
-
import {CookieControlsTreeElement} from './CookieControlsTreeElement.js';
|
|
15
|
-
import {CookieReportTreeElement} from './CookieReportTreeElement.js';
|
|
16
13
|
import lockIconStyles from './lockIcon.css.js';
|
|
17
14
|
import {OriginTreeElement} from './OriginTreeElement.js';
|
|
18
15
|
import {
|
|
@@ -29,18 +26,6 @@ const UIStrings = {
|
|
|
29
26
|
* @description Section title for the the Security Panel's sidebar
|
|
30
27
|
*/
|
|
31
28
|
security: 'Security',
|
|
32
|
-
/**
|
|
33
|
-
* @description Section title for the the Security Panel's sidebar
|
|
34
|
-
*/
|
|
35
|
-
privacy: 'Privacy',
|
|
36
|
-
/**
|
|
37
|
-
* @description Sidebar element text in the Security panel
|
|
38
|
-
*/
|
|
39
|
-
cookieReport: 'Third-party cookies',
|
|
40
|
-
/**
|
|
41
|
-
* @description Sidebar element text in the Security panel
|
|
42
|
-
*/
|
|
43
|
-
flagControls: 'Controls',
|
|
44
29
|
/**
|
|
45
30
|
* @description Text in Security Panel of the Security panel
|
|
46
31
|
*/
|
|
@@ -76,8 +61,6 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
|
|
|
76
61
|
readonly #originGroupTitles: Map<OriginGroup, {title: string, icon?: Icon}>;
|
|
77
62
|
#originGroups: Map<OriginGroup, UI.TreeOutline.TreeElement>;
|
|
78
63
|
securityOverviewElement: OriginTreeElement;
|
|
79
|
-
readonly #cookieControlsTreeElement: CookieControlsTreeElement|undefined;
|
|
80
|
-
readonly cookieReportTreeElement: CookieReportTreeElement|undefined;
|
|
81
64
|
readonly #elementsByOrigin: Map<string, OriginTreeElement>;
|
|
82
65
|
readonly #mainViewReloadMessage: UI.TreeOutline.TreeElement;
|
|
83
66
|
#mainOrigin: string|null;
|
|
@@ -94,20 +77,6 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
|
|
|
94
77
|
this.sidebarTree.element.classList.add('security-sidebar');
|
|
95
78
|
this.contentElement.appendChild(this.sidebarTree.element);
|
|
96
79
|
|
|
97
|
-
if (Root.Runtime.hostConfig.devToolsPrivacyUI?.enabled) {
|
|
98
|
-
const privacyTreeSection = this.#addSidebarSection(i18nString(UIStrings.privacy), 'privacy');
|
|
99
|
-
this.#cookieControlsTreeElement =
|
|
100
|
-
new CookieControlsTreeElement(i18nString(UIStrings.flagControls), 'cookie-flag-controls');
|
|
101
|
-
privacyTreeSection.appendChild(this.#cookieControlsTreeElement);
|
|
102
|
-
this.cookieReportTreeElement = new CookieReportTreeElement(i18nString(UIStrings.cookieReport), 'cookie-report');
|
|
103
|
-
privacyTreeSection.appendChild(this.cookieReportTreeElement);
|
|
104
|
-
|
|
105
|
-
// If this if the first time this setting is set, go to the controls tool
|
|
106
|
-
if (this.#securitySidebarLastItemSetting.get() === '') {
|
|
107
|
-
this.#securitySidebarLastItemSetting.set(this.#cookieControlsTreeElement.elemId);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
80
|
const securitySectionTitle = i18nString(UIStrings.security);
|
|
112
81
|
const securityTreeSection = this.#addSidebarSection(securitySectionTitle, 'security');
|
|
113
82
|
|
|
@@ -177,17 +146,8 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
|
|
|
177
146
|
}
|
|
178
147
|
|
|
179
148
|
showLastSelectedElement(): void {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
this.#cookieControlsTreeElement.select();
|
|
183
|
-
this.#cookieControlsTreeElement.showElement();
|
|
184
|
-
} else if (this.#securitySidebarLastItemSetting.get() === this.cookieReportTreeElement?.elemId) {
|
|
185
|
-
this.cookieReportTreeElement.select();
|
|
186
|
-
this.cookieReportTreeElement.showElement();
|
|
187
|
-
} else {
|
|
188
|
-
this.securityOverviewElement.select();
|
|
189
|
-
this.securityOverviewElement.showElement();
|
|
190
|
-
}
|
|
149
|
+
this.securityOverviewElement.select();
|
|
150
|
+
this.securityOverviewElement.showElement();
|
|
191
151
|
}
|
|
192
152
|
|
|
193
153
|
#addSidebarSection(title: string, jslogContext: string): UI.TreeOutline.TreeElement {
|
|
@@ -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
|
import type * as Security from './security.js';
|
|
@@ -13,18 +12,10 @@ const UIStrings = {
|
|
|
13
12
|
* @description Default Title of the security panel
|
|
14
13
|
*/
|
|
15
14
|
security: 'Security',
|
|
16
|
-
/**
|
|
17
|
-
* @description Title of privacy and security panel. This is used when the kDevToolsPrivacyUI feature flag is enabled.
|
|
18
|
-
*/
|
|
19
|
-
PrivacyAndSecurity: 'Privacy and security',
|
|
20
15
|
/**
|
|
21
16
|
* @description Default command to open the security panel
|
|
22
17
|
*/
|
|
23
18
|
showSecurity: 'Show Security',
|
|
24
|
-
/**
|
|
25
|
-
* @description Command to open the privacy and security panel. This is used when the kDevToolPrivacyUI feature flag is enabled
|
|
26
|
-
*/
|
|
27
|
-
showPrivacyAndSecurity: 'Show Privacy and security',
|
|
28
19
|
} as const;
|
|
29
20
|
|
|
30
21
|
const str_ = i18n.i18n.registerUIStrings('panels/security/security-meta.ts', UIStrings);
|
|
@@ -42,11 +33,8 @@ async function loadSecurityModule(): Promise<typeof Security> {
|
|
|
42
33
|
UI.ViewManager.registerViewExtension({
|
|
43
34
|
location: UI.ViewManager.ViewLocationValues.PANEL,
|
|
44
35
|
id: 'security',
|
|
45
|
-
title: () =>
|
|
46
|
-
|
|
47
|
-
commandPrompt: () => Root.Runtime.hostConfig.devToolsPrivacyUI?.enabled ?
|
|
48
|
-
i18nLazyString(UIStrings.showPrivacyAndSecurity)() :
|
|
49
|
-
i18nLazyString(UIStrings.showSecurity)(),
|
|
36
|
+
title: () => i18nLazyString(UIStrings.security)(),
|
|
37
|
+
commandPrompt: () => i18nLazyString(UIStrings.showSecurity)(),
|
|
50
38
|
order: 80,
|
|
51
39
|
persistence: UI.ViewManager.ViewPersistence.CLOSEABLE,
|
|
52
40
|
async loadView() {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import * as CookieControlsView from './CookieControlsView.js';
|
|
6
|
-
import * as CookieReportView from './CookieReportView.js';
|
|
7
5
|
import * as SecurityModel from './SecurityModel.js';
|
|
8
6
|
import * as SecurityPanel from './SecurityPanel.js';
|
|
9
7
|
|
|
10
8
|
export {
|
|
11
|
-
CookieControlsView,
|
|
12
|
-
CookieReportView,
|
|
13
9
|
SecurityModel,
|
|
14
10
|
SecurityPanel,
|
|
15
11
|
};
|
|
@@ -344,8 +344,7 @@ export class ShortcutListItem {
|
|
|
344
344
|
this.settingsTab = settingsTab;
|
|
345
345
|
this.item = item;
|
|
346
346
|
this.element = document.createElement('div');
|
|
347
|
-
this.element.setAttribute(
|
|
348
|
-
'jslog', `${VisualLogging.item().context(item.id()).track({keydown: 'Escape', resize: true})}`);
|
|
347
|
+
this.element.setAttribute('jslog', `${VisualLogging.item().context(item.id()).track({keydown: 'Escape'})}`);
|
|
349
348
|
this.editedShortcuts = new Map();
|
|
350
349
|
this.shortcutInputs = new Map();
|
|
351
350
|
this.shortcuts = UI.ShortcutRegistry.ShortcutRegistry.instance().shortcutsForAction(item.id());
|
|
@@ -86,7 +86,8 @@ export class SourcesSearchScope implements Search.SearchScope.SearchScope {
|
|
|
86
86
|
if (!searchInAnonymousAndContentScripts && project.type() === Workspace.Workspace.projectTypes.ContentScripts) {
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
|
-
if (!localOverridesEnabled && project.type() === Workspace.Workspace.projectTypes.FileSystem
|
|
89
|
+
if (!localOverridesEnabled && project.type() === Workspace.Workspace.projectTypes.FileSystem &&
|
|
90
|
+
Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemType(project) === 'overrides') {
|
|
90
91
|
return false;
|
|
91
92
|
}
|
|
92
93
|
return true;
|
|
@@ -404,7 +404,7 @@ export class HeadersViewComponent extends HTMLElement {
|
|
|
404
404
|
// clang-format off
|
|
405
405
|
return html`
|
|
406
406
|
<div class="row" data-block-index=${blockIndex}
|
|
407
|
-
jslog=${VisualLogging.treeItem(pattern === '*' ? pattern : undefined)
|
|
407
|
+
jslog=${VisualLogging.treeItem(pattern === '*' ? pattern : undefined)}>
|
|
408
408
|
<div>${i18n.i18n.lockedString('Apply to')}</div>
|
|
409
409
|
<div class="separator">:</div>
|
|
410
410
|
${this.#renderEditable(pattern, 'apply-to')}
|
|
@@ -427,7 +427,7 @@ export class HeadersViewComponent extends HTMLElement {
|
|
|
427
427
|
// clang-format off
|
|
428
428
|
return html`
|
|
429
429
|
<div class="row padded" data-block-index=${blockIndex} data-header-index=${headerIndex}
|
|
430
|
-
jslog=${VisualLogging.treeItem(header.name).parent('headers-editor-row-parent')
|
|
430
|
+
jslog=${VisualLogging.treeItem(header.name).parent('headers-editor-row-parent')}>
|
|
431
431
|
${this.#renderEditable(header.name, 'header-name red', true)}
|
|
432
432
|
<div class="separator">:</div>
|
|
433
433
|
${this.#renderEditable(header.value, 'header-value')}
|
|
@@ -111,7 +111,7 @@ export class BreadcrumbsUI extends HTMLElement {
|
|
|
111
111
|
// clang-format off
|
|
112
112
|
return html`
|
|
113
113
|
<div class="breadcrumb" @contextmenu=${(event: Event) => this.#onContextMenu(event, breadcrumb)} @click=${() => this.#activateBreadcrumb(breadcrumb)}
|
|
114
|
-
jslog=${VisualLogging.item('timeline.breadcrumb-select').track({click: true
|
|
114
|
+
jslog=${VisualLogging.item('timeline.breadcrumb-select').track({click: true})}>
|
|
115
115
|
<span class="${(breadcrumb === this.#activeBreadcrumb) ? 'active-breadcrumb' : ''} range">
|
|
116
116
|
${(index === 0) ?
|
|
117
117
|
`Full range (${i18n.TimeUtilities.preciseMillisToString(breadcrumbRange, 2)})` :
|
|
@@ -424,7 +424,7 @@ export const DEFAULT_VIEW: (input: SidebarAnnotationsTabViewInput, output: objec
|
|
|
424
424
|
@mouseout=${() => (annotation.type === 'ENTRY_LABEL') ? input.onAnnotationHoverOut() : null}
|
|
425
425
|
aria-label=${label}
|
|
426
426
|
tabindex="0"
|
|
427
|
-
jslog=${VisualLogging.item(`timeline.annotation-sidebar.annotation-${jslogForAnnotation(annotation)}`).track({click: true
|
|
427
|
+
jslog=${VisualLogging.item(`timeline.annotation-sidebar.annotation-${jslogForAnnotation(annotation)}`).track({click: true})}
|
|
428
428
|
>
|
|
429
429
|
<div class="annotation">
|
|
430
430
|
${renderAnnotationIdentifier(annotation, input.annotationEntryToColorMap)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: https://chromium.googlesource.com/chromium/src
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: eb058eb950a74d8f8ffe880684c8a41a4cea87f2
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Name: Puppeteer Core
|
|
2
2
|
Short Name: Puppeteer Core
|
|
3
3
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
|
|
4
|
-
Version: 24.
|
|
4
|
+
Version: 24.37.2
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
License File: LICENSE
|
|
7
|
-
Revision:
|
|
7
|
+
Revision: b163ce4593a8f014b86d67d53825fbeb679045ca
|
|
8
8
|
Security Critical: no
|
|
9
9
|
Shipped: yes
|
|
10
10
|
Update Mechanism: Autoroll
|
|
@@ -53,8 +53,23 @@ export type IsPageTargetCallback = (target: Target) => boolean;
|
|
|
53
53
|
export declare const WEB_PERMISSION_TO_PROTOCOL_PERMISSION: Map<Permission, Protocol.Browser.PermissionType>;
|
|
54
54
|
/**
|
|
55
55
|
* @public
|
|
56
|
+
* @deprecated in favor of {@link PermissionDescriptor}.
|
|
56
57
|
*/
|
|
57
58
|
export type Permission = 'accelerometer' | 'ambient-light-sensor' | 'background-sync' | 'camera' | 'clipboard-read' | 'clipboard-sanitized-write' | 'clipboard-write' | 'geolocation' | 'gyroscope' | 'idle-detection' | 'keyboard-lock' | 'magnetometer' | 'microphone' | 'midi-sysex' | 'midi' | 'notifications' | 'payment-handler' | 'persistent-storage' | 'pointer-lock';
|
|
59
|
+
/**
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export interface PermissionDescriptor {
|
|
63
|
+
name: string;
|
|
64
|
+
userVisibleOnly?: boolean;
|
|
65
|
+
sysex?: boolean;
|
|
66
|
+
panTiltZoom?: boolean;
|
|
67
|
+
allowWithoutSanitization?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export type PermissionState = 'granted' | 'denied' | 'prompt';
|
|
58
73
|
/**
|
|
59
74
|
* @public
|
|
60
75
|
*/
|
|
@@ -445,6 +460,26 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
445
460
|
* browser.defaultBrowserContext().deleteMatchingCookies()}.
|
|
446
461
|
*/
|
|
447
462
|
deleteMatchingCookies(...filters: DeleteCookiesRequest[]): Promise<void>;
|
|
463
|
+
/**
|
|
464
|
+
* Sets the permission for a specific origin in the default
|
|
465
|
+
* {@link BrowserContext}.
|
|
466
|
+
*
|
|
467
|
+
* @remarks
|
|
468
|
+
*
|
|
469
|
+
* Shortcut for
|
|
470
|
+
* {@link BrowserContext.setPermission |
|
|
471
|
+
* browser.defaultBrowserContext().setPermission()}.
|
|
472
|
+
*
|
|
473
|
+
* @param origin - The origin to set the permission for.
|
|
474
|
+
* @param permission - The permission descriptor.
|
|
475
|
+
* @param state - The state of the permission.
|
|
476
|
+
*
|
|
477
|
+
* @public
|
|
478
|
+
*/
|
|
479
|
+
setPermission(origin: string, ...permissions: Array<{
|
|
480
|
+
permission: PermissionDescriptor;
|
|
481
|
+
state: PermissionState;
|
|
482
|
+
}>): Promise<void>;
|
|
448
483
|
/**
|
|
449
484
|
* Installs an extension and returns the ID. In Chrome, this is only
|
|
450
485
|
* available if the browser was created using `pipe: true` and the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAQhD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAQvE,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAExE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACxC;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;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AC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAEtD;;;;OAIG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,QAAQ,KAAK,SAAS,IAAI,OAAO,CAAC;IAElC,gBAAgB;IACP,CAAC,aAAa,CAAC,IAAI,IAAI;IAOhC,gBAAgB;IAChB,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAOrC;;OAEG;IACH,QAAQ,KAAK,QAAQ,IAAI,YAAY,CAAC;IAEtC;;;;;;;;;OASG;IACH,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,IAAI,OAAO;CACrC"}
|
|
@@ -162,6 +162,25 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
|
162
162
|
async deleteMatchingCookies(...filters) {
|
|
163
163
|
return await this.defaultBrowserContext().deleteMatchingCookies(...filters);
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Sets the permission for a specific origin in the default
|
|
167
|
+
* {@link BrowserContext}.
|
|
168
|
+
*
|
|
169
|
+
* @remarks
|
|
170
|
+
*
|
|
171
|
+
* Shortcut for
|
|
172
|
+
* {@link BrowserContext.setPermission |
|
|
173
|
+
* browser.defaultBrowserContext().setPermission()}.
|
|
174
|
+
*
|
|
175
|
+
* @param origin - The origin to set the permission for.
|
|
176
|
+
* @param permission - The permission descriptor.
|
|
177
|
+
* @param state - The state of the permission.
|
|
178
|
+
*
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
181
|
+
async setPermission(origin, ...permissions) {
|
|
182
|
+
return await this.defaultBrowserContext().setPermission(origin, ...permissions);
|
|
183
|
+
}
|
|
165
184
|
/**
|
|
166
185
|
* Whether Puppeteer is connected to this {@link Browser | browser}.
|
|
167
186
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names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,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAC,aAAa,CACrD,MAAM,EACN,GAAG,WAAW,CACf,CAAC;IACJ,CAAC;IAuCD;;;;OAIG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAOD,gBAAgB;IACP,CAAC,6BAAa,CAAC;QACtB,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACnB,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;IAClD,CAAC;IAED,gBAAgB;IAChB,CAAC,kCAAkB,CAAC;QAClB,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;CAuBF;AA5WD,0BA4WC"}
|
|
@@ -7,7 +7,7 @@ import type { Cookie, CookieData, DeleteCookiesRequest } from '../common/Cookie.
|
|
|
7
7
|
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
|
|
8
8
|
import { asyncDisposeSymbol, disposeSymbol } from '../util/disposable.js';
|
|
9
9
|
import { Mutex } from '../util/Mutex.js';
|
|
10
|
-
import type { Browser, CreatePageOptions, Permission, WaitForTargetOptions } from './Browser.js';
|
|
10
|
+
import type { Browser, CreatePageOptions, Permission, PermissionDescriptor, PermissionState, WaitForTargetOptions } from './Browser.js';
|
|
11
11
|
import type { Page } from './Page.js';
|
|
12
12
|
import type { Target } from './Target.js';
|
|
13
13
|
/**
|
|
@@ -143,8 +143,23 @@ export declare abstract class BrowserContext extends EventEmitter<BrowserContext
|
|
|
143
143
|
* "https://example.com".
|
|
144
144
|
* @param permissions - An array of permissions to grant. All permissions that
|
|
145
145
|
* are not listed here will be automatically denied.
|
|
146
|
+
*
|
|
147
|
+
* @deprecated in favor of {@link BrowserContext.setPermission}.
|
|
146
148
|
*/
|
|
147
149
|
abstract overridePermissions(origin: string, permissions: Permission[]): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Sets the permission for a specific origin.
|
|
152
|
+
*
|
|
153
|
+
* @param origin - The origin to set the permission for.
|
|
154
|
+
* @param permission - The permission descriptor.
|
|
155
|
+
* @param state - The state of the permission.
|
|
156
|
+
*
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
abstract setPermission(origin: string | '*', ...permissions: Array<{
|
|
160
|
+
permission: PermissionDescriptor;
|
|
161
|
+
state: PermissionState;
|
|
162
|
+
}>): Promise<void>;
|
|
148
163
|
/**
|
|
149
164
|
* Clears all permission overrides for this
|
|
150
165
|
* {@link BrowserContext | browser context}.
|
package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserContext.d.ts","sourceRoot":"","sources":["../../../../src/api/BrowserContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAOvE,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAEvC,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EACjB,UAAU,EACV,oBAAoB,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,0BAAkB,mBAAmB;IACnC;;;OAGG;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qB,CACzB,GAAG,OAAO,EAAE,oBAAoB,EAAE,GACjC,OAAO,CAAC,IAAI,CAAC;IAiDhB;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;OAEG;IACH,IAAI,EAAE,IAAI,MAAM,GAAG,SAAS,CAE3B;IAED,gBAAgB;IACP,CAAC,aAAa,CAAC,IAAI,IAAI;IAIhC,gBAAgB;IAChB,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserContext.js","sourceRoot":"","sources":["../../../../src/api/BrowserContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,4DAKwC;AAMxC,+DAAuE;AACvE,+CAK2B;AAC3B,yDAAwE;AACxE,+CAAuC;
|
|
1
|
+
{"version":3,"file":"BrowserContext.js","sourceRoot":"","sources":["../../../../src/api/BrowserContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,4DAKwC;AAMxC,+DAAuE;AACvE,+CAK2B;AAC3B,yDAAwE;AACxE,+CAAuC;AAgDvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,MAAsB,cAAe,SAAQ,8BAAkC;IAC7E;;OAEG;IACH;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAQD;;OAEG;IACH,oBAAoB,CAAS;IAC7B,0BAA0B,GAAG,CAAC,CAAC;IAE/B;;OAEG;IACH,eAAe;QACb,MAAM,KAAK,GAAG,IAAI,CAAC,oBAAoB,IAAI,IAAI,gBAAK,EAAE,CAAC;QACvD,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QAClC,IAAI,CAAC,0BAA0B,EAAE,CAAC;QAClC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;YACxB,IAAI,CAAC,0BAA0B,EAAE,CAAC;YAClC,IAAI,IAAI,CAAC,0BAA0B,KAAK,CAAC,EAAE,CAA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,CAAC;YACf,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,eAAe,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,IAAI,EAAE;QACJ,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,gBAAgB;IACP,CAAC,6BAAa,CAAC;QACtB,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;IAC7C,CAAC;IAED,gBAAgB;IAChB,CAAC,kCAAkB,CAAC;QAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF;AA/QD,wCA+QC"}
|
|
@@ -572,7 +572,7 @@ export declare abstract class Frame extends EventEmitter<FrameEvents> {
|
|
|
572
572
|
* ```
|
|
573
573
|
*
|
|
574
574
|
* @param pageFunction - the function to evaluate in the frame context.
|
|
575
|
-
* @param options - options to configure the polling method and
|
|
575
|
+
* @param options - options to configure the polling method, timeout and signal.
|
|
576
576
|
* @param args - arguments to pass to the `pageFunction`.
|
|
577
577
|
* @returns the promise which resolve when the `pageFunction` returns a truthy value.
|
|
578
578
|
*/
|
|
@@ -575,7 +575,7 @@ let Frame = (() => {
|
|
|
575
575
|
* ```
|
|
576
576
|
*
|
|
577
577
|
* @param pageFunction - the function to evaluate in the frame context.
|
|
578
|
-
* @param options - options to configure the polling method and
|
|
578
|
+
* @param options - options to configure the polling method, timeout and signal.
|
|
579
579
|
* @param args - arguments to pass to the `pageFunction`.
|
|
580
580
|
* @returns the promise which resolve when the `pageFunction` returns a truthy value.
|
|
581
581
|
*/
|
|
@@ -543,6 +543,17 @@ export interface ReloadOptions extends WaitForOptions {
|
|
|
543
543
|
*/
|
|
544
544
|
ignoreCache?: boolean;
|
|
545
545
|
}
|
|
546
|
+
/**
|
|
547
|
+
* Options for {@link Page.captureHeapSnapshot}.
|
|
548
|
+
*
|
|
549
|
+
* @public
|
|
550
|
+
*/
|
|
551
|
+
export interface HeapSnapshotOptions {
|
|
552
|
+
/**
|
|
553
|
+
* The file path to save the heap snapshot to.
|
|
554
|
+
*/
|
|
555
|
+
path: string;
|
|
556
|
+
}
|
|
546
557
|
/**
|
|
547
558
|
* Page provides methods to interact with a single tab or
|
|
548
559
|
* {@link https://developer.chrome.com/extensions/background_pages | extension background page}
|
|
@@ -1401,6 +1412,10 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
1401
1412
|
* in seconds since an arbitrary point in the past.
|
|
1402
1413
|
*/
|
|
1403
1414
|
abstract metrics(): Promise<Metrics>;
|
|
1415
|
+
/**
|
|
1416
|
+
* Captures a snapshot of the JavaScript heap and writes it to a file.
|
|
1417
|
+
*/
|
|
1418
|
+
abstract captureHeapSnapshot(options: HeapSnapshotOptions): Promise<void>;
|
|
1404
1419
|
/**
|
|
1405
1420
|
* The page's URL.
|
|
1406
1421
|
*
|
|
@@ -1484,6 +1499,8 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
1484
1499
|
* - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds, pass
|
|
1485
1500
|
* `0` to disable the timeout. The default value can be changed by using the
|
|
1486
1501
|
* {@link Page.setDefaultTimeout} method.
|
|
1502
|
+
*
|
|
1503
|
+
* - `signal`: A signal object that allows you to cancel a waitForRequest call.
|
|
1487
1504
|
*/
|
|
1488
1505
|
waitForRequest(urlOrPredicate: string | AwaitablePredicate<HTTPRequest>, options?: WaitTimeoutOptions): Promise<HTTPRequest>;
|
|
1489
1506
|
/**
|
|
@@ -1512,6 +1529,8 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
1512
1529
|
* - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds,
|
|
1513
1530
|
* pass `0` to disable the timeout. The default value can be changed by using
|
|
1514
1531
|
* the {@link Page.setDefaultTimeout} method.
|
|
1532
|
+
*
|
|
1533
|
+
* - `signal`: A signal object that allows you to cancel a waitForResponse call.
|
|
1515
1534
|
*/
|
|
1516
1535
|
waitForResponse(urlOrPredicate: string | AwaitablePredicate<HTTPResponse>, options?: WaitTimeoutOptions): Promise<HTTPResponse>;
|
|
1517
1536
|
/**
|
|
@@ -2286,6 +2305,8 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
2286
2305
|
* - `timeout`: maximum time to wait for in milliseconds. Defaults to `30000`
|
|
2287
2306
|
* (30 seconds). Pass `0` to disable timeout. The default value can be changed
|
|
2288
2307
|
* by using the {@link Page.setDefaultTimeout} method.
|
|
2308
|
+
*
|
|
2309
|
+
* - `signal`: A signal object that allows you to cancel a waitForSelector call.
|
|
2289
2310
|
*/
|
|
2290
2311
|
waitForSelector<Selector extends string>(selector: Selector, options?: WaitForSelectorOptions): Promise<ElementHandle<NodeFor<Selector>> | null>;
|
|
2291
2312
|
/**
|