chrome-devtools-frontend 1.0.1721762 → 1.0.1724140
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/docs/cookbook/dependencies.md +55 -11
- package/docs/get_the_code.md +15 -0
- package/front_end/core/i18n/collect-ui-strings.js +58 -12
- package/front_end/core/sdk/WebAuthnModel.ts +17 -10
- package/front_end/generated/InspectorBackendCommands.ts +2 -2
- package/front_end/generated/protocol.ts +16 -0
- package/front_end/models/comment_manager/CD4ABridge.ts +4 -0
- package/front_end/models/comment_manager/CommentThread.ts +16 -0
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +13 -6
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +92 -0
- package/front_end/panels/accessibility/accessibilityAnnouncementRecordingListView.css +3 -1
- package/front_end/panels/accessibility/accessibilityAnnouncementRecordingView.css +12 -1
- package/front_end/panels/application/StorageView.ts +250 -178
- package/front_end/panels/application/SubAppsView.ts +159 -0
- package/front_end/panels/application/application.ts +2 -0
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +1 -1
- package/front_end/panels/application/subAppsView.css +21 -0
- package/front_end/panels/elements/ClassesPaneWidget.ts +3 -1
- package/front_end/panels/elements/DOMTreeElementWidget.ts +3 -1
- package/front_end/panels/elements/DOMTreeWidget.ts +12 -0
- package/front_end/panels/elements/StyleEditorWidget.ts +29 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -0
- package/front_end/panels/layer_viewer/Layers3DView.ts +21 -37
- package/front_end/panels/network/NetworkConfigView.ts +12 -10
- package/front_end/panels/network/networkConfigView.css +8 -8
- package/front_end/panels/screencast/ScreencastView.ts +3 -6
- package/front_end/panels/security/SecurityPanelSidebar.ts +0 -31
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +9 -16
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +358 -345
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +136 -121
- package/front_end/panels/sources/SourcesPanel.ts +3 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +41 -18
- package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
- package/front_end/panels/timeline/TimelineCommentContext.ts +171 -0
- package/front_end/panels/timeline/TimelineCommentController.ts +36 -0
- package/front_end/panels/timeline/timeline.ts +2 -0
- package/front_end/panels/webauthn/WebauthnPane.ts +15 -13
- 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/es5-iife/puppeteer-core-browser.d.ts +113 -3
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +21311 -20981
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +36 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js +22 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js +20 -18
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +20 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +40 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +41 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +23 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +13 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +18 -11
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Accessibility.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Accessibility.js +8 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js +24 -12
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/EmulationManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/EmulationManager.js +13 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/EmulationManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +22 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +75 -9
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +18 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +8 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +65 -26
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +19 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/TargetManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/TargetManager.js +95 -8
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.d.ts +0 -8
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js +8 -24
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.js +5 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConnectOptions.d.ts +9 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/WaitTask.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/WaitTask.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/WaitTask.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +30 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js +33 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/encoding.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/encoding.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +113 -3
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +42 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +25 -22
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +22 -2
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +45 -2
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +79 -32
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +32 -12
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +18 -2
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +21 -13
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +12 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +37 -16
- package/front_end/third_party/puppeteer/package/src/cdp/EmulationManager.ts +14 -11
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +7 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +101 -14
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +26 -6
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +111 -29
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +37 -1
- package/front_end/third_party/puppeteer/package/src/cdp/ScreenRecording.ts +5 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +122 -7
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +13 -33
- package/front_end/third_party/puppeteer/package/src/common/BrowserWebSocketTransport.ts +10 -5
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +10 -0
- package/front_end/third_party/puppeteer/package/src/common/WaitTask.ts +12 -0
- package/front_end/third_party/puppeteer/package/src/common/util.ts +39 -5
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/Poller.ts +35 -3
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/node/NodeWebSocketTransport.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/encoding.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/helpers/OpenInNewTab.ts +8 -0
- package/front_end/ui/legacy/LinkContextMenuProvider.ts +1 -1
- package/front_end/ui/legacy/ListWidget.ts +14 -18
- package/front_end/ui/legacy/TabbedPane.ts +46 -3
- package/front_end/ui/legacy/Treeoutline.ts +3 -1
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +4 -0
- package/package.json +1 -1
|
@@ -753,20 +753,22 @@ export class WebauthnPaneImpl extends UI.Panel.Panel implements
|
|
|
753
753
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.VirtualAuthenticatorEnvironmentEnabled);
|
|
754
754
|
this.#hasBeenEnabled = true;
|
|
755
755
|
}
|
|
756
|
-
|
|
757
|
-
|
|
756
|
+
try {
|
|
757
|
+
if (this.#model) {
|
|
758
|
+
await this.#model.setVirtualAuthEnvEnabled(enable);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
if (enable) {
|
|
762
|
+
await this.#loadInitialAuthenticators();
|
|
763
|
+
} else {
|
|
764
|
+
this.#removeAuthenticatorSections();
|
|
765
|
+
}
|
|
766
|
+
this.#enabled = enable;
|
|
767
|
+
} finally {
|
|
768
|
+
this.#isEnabling = undefined;
|
|
769
|
+
this.requestUpdate();
|
|
770
|
+
resolve();
|
|
758
771
|
}
|
|
759
|
-
|
|
760
|
-
if (enable) {
|
|
761
|
-
await this.#loadInitialAuthenticators();
|
|
762
|
-
} else {
|
|
763
|
-
this.#removeAuthenticatorSections();
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
this.#isEnabling = undefined;
|
|
767
|
-
this.#enabled = enable;
|
|
768
|
-
this.requestUpdate();
|
|
769
|
-
resolve();
|
|
770
772
|
});
|
|
771
773
|
}
|
|
772
774
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: Internal
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: 4f991ca53d23a716fc5bb9f0b7626a258e4d7b40
|
|
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: 25.
|
|
4
|
+
Version: 25.16.0
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
License File: LICENSE
|
|
7
|
-
Revision:
|
|
7
|
+
Revision: a207faf527ce4305b33a6c0f9706b090c21c115e
|
|
8
8
|
Security Critical: no
|
|
9
9
|
Shipped: yes
|
|
10
10
|
Update Mechanism: Autoroll
|
|
@@ -439,6 +439,24 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
439
439
|
* {@link Browser.defaultBrowserContext | default browser context}).
|
|
440
440
|
*/
|
|
441
441
|
abstract target(): Target;
|
|
442
|
+
/**
|
|
443
|
+
* Sets the network conditions (blocklist or allowlist) and re-applies the
|
|
444
|
+
* conditions to all targets.
|
|
445
|
+
* To clear all network conditions, omit the argument or pass `null`.
|
|
446
|
+
*
|
|
447
|
+
* @param conditions - The network conditions to apply.
|
|
448
|
+
*
|
|
449
|
+
* @remarks
|
|
450
|
+
* Currently only supported for Chrome and the CDP protocol.
|
|
451
|
+
*
|
|
452
|
+
* Targets that are already on a blocked URL when `restrictNetwork` is called
|
|
453
|
+
* will remain attached and stay on the blocked page. This is a behavior difference
|
|
454
|
+
* compared to launching the browser with network restrictions, where such targets
|
|
455
|
+
* are detached immediately upon initial attach.
|
|
456
|
+
*
|
|
457
|
+
* @experimental
|
|
458
|
+
*/
|
|
459
|
+
restrictNetwork(conditions?: NetworkRestrictions | null): Promise<void>;
|
|
442
460
|
/**
|
|
443
461
|
* Waits until a {@link Target | target} matching the given `predicate`
|
|
444
462
|
* appears and returns it.
|
|
@@ -4056,9 +4074,28 @@ export declare abstract class HTTPRequest {
|
|
|
4056
4074
|
* Fetches the POST data for the request from the browser.
|
|
4057
4075
|
*/
|
|
4058
4076
|
abstract fetchPostData(): Promise<string | undefined>;
|
|
4077
|
+
/**
|
|
4078
|
+
* Fetches the POST data for the request from the browser as a `Uint8Array`.
|
|
4079
|
+
*
|
|
4080
|
+
* @remarks
|
|
4081
|
+
* If the request has no POST data or fetching the POST data from the browser
|
|
4082
|
+
* fails, this method resolves to `undefined`.
|
|
4083
|
+
*
|
|
4084
|
+
* @returns A promise that resolves to the raw POST data bytes, or
|
|
4085
|
+
* `undefined` when the request has no POST data or fetching it fails.
|
|
4086
|
+
*/
|
|
4087
|
+
abstract content(): Promise<Uint8Array | undefined>;
|
|
4059
4088
|
/**
|
|
4060
4089
|
* An object with HTTP headers associated with the request. All
|
|
4061
4090
|
* header names are lower-case.
|
|
4091
|
+
*
|
|
4092
|
+
* @remarks
|
|
4093
|
+
*
|
|
4094
|
+
* Under CDP, `page.on('request')` fires before the browser's network stack
|
|
4095
|
+
* attaches all headers (such as `accept`, `accept-encoding`, `cookie`,
|
|
4096
|
+
* `host`, and `sec-fetch-*`). The full set of headers is populated
|
|
4097
|
+
* asynchronously and is available by the time `page.on('response')` or
|
|
4098
|
+
* `page.on('requestfinished')` fires.
|
|
4062
4099
|
*/
|
|
4063
4100
|
abstract headers(): Record<string, string>;
|
|
4064
4101
|
/**
|
|
@@ -4068,7 +4105,7 @@ export declare abstract class HTTPRequest {
|
|
|
4068
4105
|
*
|
|
4069
4106
|
* Headers are copied to the new Request instance. The request URL and
|
|
4070
4107
|
* method are preserved. The body is built from
|
|
4071
|
-
* {@link HTTPRequest.
|
|
4108
|
+
* {@link HTTPRequest.content} when the request has post data,
|
|
4072
4109
|
* otherwise the Request is created without a body. For `GET` and
|
|
4073
4110
|
* `HEAD` requests the body is always omitted, as required by the
|
|
4074
4111
|
* Fetch API.
|
|
@@ -5503,6 +5540,8 @@ export declare abstract class Locator<T> extends EventEmitter<LocatorEvents> {
|
|
|
5503
5540
|
* method is chosen based on the type. `contenteditable`, select, textarea and
|
|
5504
5541
|
* input elements are supported. For checkboxes, radio buttons and switches
|
|
5505
5542
|
* specify a boolean value.
|
|
5543
|
+
* Read-only elements and values the element does not accept are rejected without
|
|
5544
|
+
* modifying the element.
|
|
5506
5545
|
*/
|
|
5507
5546
|
fill<ElementType extends Element>(
|
|
5508
5547
|
this: Locator<ElementType>,
|
|
@@ -5992,6 +6031,25 @@ export declare interface NetworkConditions {
|
|
|
5992
6031
|
latency?: number;
|
|
5993
6032
|
}
|
|
5994
6033
|
|
|
6034
|
+
/**
|
|
6035
|
+
* @experimental
|
|
6036
|
+
* @public
|
|
6037
|
+
*/
|
|
6038
|
+
export declare interface NetworkRestrictions {
|
|
6039
|
+
/**
|
|
6040
|
+
* A list of {@link https://urlpattern.spec.whatwg.org/ | URLPattern} strings to block.
|
|
6041
|
+
* Mutually exclusive with {@link NetworkRestrictions.allowlist}.
|
|
6042
|
+
* Passing `[]` or omitting this option means no restriction.
|
|
6043
|
+
*/
|
|
6044
|
+
blocklist?: string[];
|
|
6045
|
+
/**
|
|
6046
|
+
* A list of {@link https://urlpattern.spec.whatwg.org/ | URLPattern} strings to allow.
|
|
6047
|
+
* Mutually exclusive with {@link NetworkRestrictions.blocklist}.
|
|
6048
|
+
* Passing `[]` or omitting this option means no restriction.
|
|
6049
|
+
*/
|
|
6050
|
+
allowlist?: string[];
|
|
6051
|
+
}
|
|
6052
|
+
|
|
5995
6053
|
/**
|
|
5996
6054
|
* @public
|
|
5997
6055
|
*/
|
|
@@ -6129,13 +6187,17 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
6129
6187
|
* Consider using {@link BrowserContext.overridePermissions} to grant
|
|
6130
6188
|
* permissions for the page to read its geolocation.
|
|
6131
6189
|
*
|
|
6190
|
+
* Pass `null` to remove the geolocation override.
|
|
6191
|
+
*
|
|
6132
6192
|
* @example
|
|
6133
6193
|
*
|
|
6134
6194
|
* ```ts
|
|
6135
6195
|
* await page.setGeolocation({latitude: 59.95, longitude: 30.31667});
|
|
6196
|
+
* // Later, go back to the browser's real geolocation:
|
|
6197
|
+
* await page.setGeolocation(null);
|
|
6136
6198
|
* ```
|
|
6137
6199
|
*/
|
|
6138
|
-
abstract setGeolocation(options: GeolocationOptions): Promise<void>;
|
|
6200
|
+
abstract setGeolocation(options: GeolocationOptions | null): Promise<void>;
|
|
6139
6201
|
/**
|
|
6140
6202
|
* A target this page was created from.
|
|
6141
6203
|
*
|
|
@@ -7983,6 +8045,17 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
7983
8045
|
* @experimental
|
|
7984
8046
|
*/
|
|
7985
8047
|
abstract windowId(): Promise<WindowId>;
|
|
8048
|
+
/**
|
|
8049
|
+
* Returns information about the browser tab of this page. The result is a
|
|
8050
|
+
* snapshot and is not updated when the tab changes.
|
|
8051
|
+
*
|
|
8052
|
+
* @returns `null` if the page is not in a tab strip, for example, in
|
|
8053
|
+
* `chrome-headless-shell`. Chrome before M150 does not report tab
|
|
8054
|
+
* information, so the method also returns `null` there.
|
|
8055
|
+
*
|
|
8056
|
+
* @experimental
|
|
8057
|
+
*/
|
|
8058
|
+
abstract tabInfo(): Promise<TabInfo | null>;
|
|
7986
8059
|
[disposeSymbol](): void;
|
|
7987
8060
|
[asyncDisposeSymbol](): Promise<void>;
|
|
7988
8061
|
/**
|
|
@@ -8624,6 +8697,7 @@ declare namespace Puppeteer_2 {
|
|
|
8624
8697
|
LaunchPWAOptions,
|
|
8625
8698
|
GetPWAStateOptions,
|
|
8626
8699
|
PWAState,
|
|
8700
|
+
NetworkRestrictions,
|
|
8627
8701
|
BrowserContextEvents,
|
|
8628
8702
|
CDPEvents,
|
|
8629
8703
|
CDPSessionEvents,
|
|
@@ -8679,6 +8753,7 @@ declare namespace Puppeteer_2 {
|
|
|
8679
8753
|
NewDocumentScriptEvaluation,
|
|
8680
8754
|
ReloadOptions,
|
|
8681
8755
|
HeapSnapshotOptions,
|
|
8756
|
+
TabInfo,
|
|
8682
8757
|
WritableDestination,
|
|
8683
8758
|
WebWorkerEvents,
|
|
8684
8759
|
VisibilityOption,
|
|
@@ -9625,7 +9700,8 @@ export declare interface SerializedAXNode {
|
|
|
9625
9700
|
* Get an ElementHandle for this AXNode if available.
|
|
9626
9701
|
*
|
|
9627
9702
|
* If the underlying DOM element has been disposed, the method might return an
|
|
9628
|
-
* error.
|
|
9703
|
+
* error. If the frame has navigated to a new document since the snapshot,
|
|
9704
|
+
* the method returns `null`.
|
|
9629
9705
|
*/
|
|
9630
9706
|
elementHandle(): Promise<ElementHandle | null>;
|
|
9631
9707
|
}
|
|
@@ -9700,6 +9776,31 @@ export declare type SupportedWebDriverCapability = Exclude<
|
|
|
9700
9776
|
'unhandledPromptBehavior' | 'acceptInsecureCerts'
|
|
9701
9777
|
>;
|
|
9702
9778
|
|
|
9779
|
+
/**
|
|
9780
|
+
* Information about the browser tab of a page. See {@link Page.tabInfo}.
|
|
9781
|
+
*
|
|
9782
|
+
* @public
|
|
9783
|
+
* @experimental
|
|
9784
|
+
*/
|
|
9785
|
+
export declare interface TabInfo {
|
|
9786
|
+
/**
|
|
9787
|
+
* Zero-based index of the tab in its window's tab strip.
|
|
9788
|
+
*/
|
|
9789
|
+
index: number;
|
|
9790
|
+
/**
|
|
9791
|
+
* Whether the tab is the active tab in its window.
|
|
9792
|
+
*/
|
|
9793
|
+
active: boolean;
|
|
9794
|
+
/**
|
|
9795
|
+
* Whether the tab is pinned.
|
|
9796
|
+
*/
|
|
9797
|
+
pinned: boolean;
|
|
9798
|
+
/**
|
|
9799
|
+
* ID of the tab group the tab belongs to, if any.
|
|
9800
|
+
*/
|
|
9801
|
+
groupId?: string;
|
|
9802
|
+
}
|
|
9803
|
+
|
|
9703
9804
|
/**
|
|
9704
9805
|
* Target represents a
|
|
9705
9806
|
* {@link https://chromedevtools.github.io/devtools-protocol/tot/Target/ | CDP target}.
|
|
@@ -10481,6 +10582,15 @@ export declare interface WsOptions {
|
|
|
10481
10582
|
* @defaultValue `256 * 1024 * 1024`
|
|
10482
10583
|
*/
|
|
10483
10584
|
maxPayload?: number;
|
|
10585
|
+
/**
|
|
10586
|
+
* Time in milliseconds to wait for the WebSocket opening handshake before
|
|
10587
|
+
* failing. Without it, connecting to a host that accepts the TCP connection
|
|
10588
|
+
* but never answers the upgrade request waits until the operating system
|
|
10589
|
+
* gives up. Node.js only.
|
|
10590
|
+
*
|
|
10591
|
+
* @defaultValue no timeout
|
|
10592
|
+
*/
|
|
10593
|
+
handshakeTimeout?: number;
|
|
10484
10594
|
}
|
|
10485
10595
|
|
|
10486
10596
|
export {};
|