diff --git a/README.md b/README.md
index ed8f6e404e..bc8bfaeeef 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# 🎠Playwright
-[](https://www.npmjs.com/package/playwright) [](https://www.chromium.org/Home) [](https://www.mozilla.org/en-US/firefox/new/) [](https://webkit.org/)
+[](https://www.npmjs.com/package/playwright) [](https://www.chromium.org/Home) [](https://www.mozilla.org/en-US/firefox/new/) [](https://webkit.org/)
## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)
@@ -8,7 +8,7 @@ Playwright is a framework for Web Testing and Automation. It allows testing [Chr
| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
-| Chromium 104.0.5112.81 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| Chromium 105.0.5195.19 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit 16.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Firefox 103.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.json
index a0e9bc4f0a..b678d9ace9 100644
--- a/packages/playwright-core/browsers.json
+++ b/packages/playwright-core/browsers.json
@@ -3,15 +3,15 @@
"browsers": [
{
"name": "chromium",
- "revision": "1018",
+ "revision": "1019",
"installByDefault": true,
- "browserVersion": "104.0.5112.81"
+ "browserVersion": "105.0.5195.19"
},
{
"name": "chromium-with-symbols",
- "revision": "1018",
+ "revision": "1019",
"installByDefault": false,
- "browserVersion": "104.0.5112.81"
+ "browserVersion": "105.0.5195.19"
},
{
"name": "chromium-tip-of-tree",
diff --git a/packages/playwright-core/src/server/chromium/crPage.ts b/packages/playwright-core/src/server/chromium/crPage.ts
index cacb1e2613..43c46c246a 100644
--- a/packages/playwright-core/src/server/chromium/crPage.ts
+++ b/packages/playwright-core/src/server/chromium/crPage.ts
@@ -886,6 +886,8 @@ class FrameSession {
}
async _onFileChooserOpened(event: Protocol.Page.fileChooserOpenedPayload) {
+ if (!event.backendNodeId)
+ return;
const frame = this._page._frameManager.frame(event.frameId);
if (!frame)
return;
diff --git a/packages/playwright-core/src/server/chromium/protocol.d.ts b/packages/playwright-core/src/server/chromium/protocol.d.ts
index 4640c73472..a9d7345550 100644
--- a/packages/playwright-core/src/server/chromium/protocol.d.ts
+++ b/packages/playwright-core/src/server/chromium/protocol.d.ts
@@ -133,6 +133,10 @@ export module Protocol {
* This `Node`'s role, whether explicit or implicit.
*/
role?: AXValue;
+ /**
+ * This `Node`'s Chrome raw role.
+ */
+ chromeRole?: AXValue;
/**
* The accessible name for this `Node`.
*/
@@ -849,7 +853,7 @@ instead of "limited-quirks".
errorType: GenericIssueErrorType;
frameId?: Page.FrameId;
}
- export type DeprecationIssueType = "AuthorizationCoveredByWildcard"|"CanRequestURLHTTPContainingNewline"|"ChromeLoadTimesConnectionInfo"|"ChromeLoadTimesFirstPaintAfterLoadTime"|"ChromeLoadTimesWasAlternateProtocolAvailable"|"CookieWithTruncatingChar"|"CrossOriginAccessBasedOnDocumentDomain"|"CrossOriginWindowAlert"|"CrossOriginWindowConfirm"|"CSSSelectorInternalMediaControlsOverlayCastButton"|"DeprecationExample"|"DocumentDomainSettingWithoutOriginAgentClusterHeader"|"EventPath"|"GeolocationInsecureOrigin"|"GeolocationInsecureOriginDeprecatedNotRemoved"|"GetUserMediaInsecureOrigin"|"HostCandidateAttributeGetter"|"IdentityInCanMakePaymentEvent"|"InsecurePrivateNetworkSubresourceRequest"|"LegacyConstraintGoogIPv6"|"LocalCSSFileExtensionRejected"|"MediaSourceAbortRemove"|"MediaSourceDurationTruncatingBuffered"|"NoSysexWebMIDIWithoutPermission"|"NotificationInsecureOrigin"|"NotificationPermissionRequestedIframe"|"ObsoleteWebRtcCipherSuite"|"OpenWebDatabaseInsecureContext"|"PictureSourceSrc"|"PrefixedCancelAnimationFrame"|"PrefixedRequestAnimationFrame"|"PrefixedStorageInfo"|"PrefixedVideoDisplayingFullscreen"|"PrefixedVideoEnterFullscreen"|"PrefixedVideoEnterFullScreen"|"PrefixedVideoExitFullscreen"|"PrefixedVideoExitFullScreen"|"PrefixedVideoSupportsFullscreen"|"RangeExpand"|"RequestedSubresourceWithEmbeddedCredentials"|"RTCConstraintEnableDtlsSrtpFalse"|"RTCConstraintEnableDtlsSrtpTrue"|"RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics"|"RTCPeerConnectionSdpSemanticsPlanB"|"RtcpMuxPolicyNegotiate"|"SharedArrayBufferConstructedWithoutIsolation"|"TextToSpeech_DisallowedByAutoplay"|"V8SharedArrayBufferConstructedInExtensionWithoutIsolation"|"XHRJSONEncodingDetection"|"XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload"|"XRSupportsSession";
+ export type DeprecationIssueType = "AuthorizationCoveredByWildcard"|"CanRequestURLHTTPContainingNewline"|"ChromeLoadTimesConnectionInfo"|"ChromeLoadTimesFirstPaintAfterLoadTime"|"ChromeLoadTimesWasAlternateProtocolAvailable"|"CookieWithTruncatingChar"|"CrossOriginAccessBasedOnDocumentDomain"|"CrossOriginWindowAlert"|"CrossOriginWindowConfirm"|"CSSSelectorInternalMediaControlsOverlayCastButton"|"DeprecationExample"|"DocumentDomainSettingWithoutOriginAgentClusterHeader"|"EventPath"|"ExpectCTHeader"|"GeolocationInsecureOrigin"|"GeolocationInsecureOriginDeprecatedNotRemoved"|"GetUserMediaInsecureOrigin"|"HostCandidateAttributeGetter"|"IdentityInCanMakePaymentEvent"|"InsecurePrivateNetworkSubresourceRequest"|"LegacyConstraintGoogIPv6"|"LocalCSSFileExtensionRejected"|"MediaSourceAbortRemove"|"MediaSourceDurationTruncatingBuffered"|"NavigateEventRestoreScroll"|"NavigateEventTransitionWhile"|"NoSysexWebMIDIWithoutPermission"|"NotificationInsecureOrigin"|"NotificationPermissionRequestedIframe"|"ObsoleteWebRtcCipherSuite"|"OpenWebDatabaseInsecureContext"|"OverflowVisibleOnReplacedElement"|"PictureSourceSrc"|"PrefixedCancelAnimationFrame"|"PrefixedRequestAnimationFrame"|"PrefixedStorageInfo"|"PrefixedVideoDisplayingFullscreen"|"PrefixedVideoEnterFullscreen"|"PrefixedVideoEnterFullScreen"|"PrefixedVideoExitFullscreen"|"PrefixedVideoExitFullScreen"|"PrefixedVideoSupportsFullscreen"|"RangeExpand"|"RequestedSubresourceWithEmbeddedCredentials"|"RTCConstraintEnableDtlsSrtpFalse"|"RTCConstraintEnableDtlsSrtpTrue"|"RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics"|"RTCPeerConnectionSdpSemanticsPlanB"|"RtcpMuxPolicyNegotiate"|"SharedArrayBufferConstructedWithoutIsolation"|"TextToSpeech_DisallowedByAutoplay"|"V8SharedArrayBufferConstructedInExtensionWithoutIsolation"|"XHRJSONEncodingDetection"|"XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload"|"XRSupportsSession";
/**
* This issue tracks information needed to print a deprecation message.
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md
@@ -1723,6 +1727,11 @@ The array enumerates @supports at-rules starting with the innermost one, going o
with the innermost layer and going outwards.
*/
layers?: CSSLayer[];
+ /**
+ * @scope CSS at-rule array.
+The array enumerates @scope at-rules starting with the innermost one, going outwards.
+ */
+ scopes?: CSSScope[];
}
/**
* CSS coverage information.
@@ -1961,6 +1970,24 @@ available).
active: boolean;
/**
* The associated rule header range in the enclosing stylesheet (if
+available).
+ */
+ range?: SourceRange;
+ /**
+ * Identifier of the stylesheet containing this object (if exists).
+ */
+ styleSheetId?: StyleSheetId;
+ }
+ /**
+ * CSS Scope at-rule descriptor.
+ */
+ export interface CSSScope {
+ /**
+ * Scope rule text.
+ */
+ text: string;
+ /**
+ * The associated rule header range in the enclosing stylesheet (if
available).
*/
range?: SourceRange;
@@ -2357,6 +2384,10 @@ attributes) for a DOM node identified by `nodeId`.
* A list of CSS keyframed animations matching this node.
*/
cssKeyframesRules?: CSSKeyframesRule[];
+ /**
+ * Id of the first parent element that does not have display: contents.
+ */
+ parentLayoutNodeId?: DOM.NodeId;
}
/**
* Returns all media queries parsed by the rendering engine.
@@ -2497,6 +2528,20 @@ property
*/
supports: CSSSupports;
}
+ /**
+ * Modifies the expression of a scope at-rule.
+ */
+ export type setScopeTextParameters = {
+ styleSheetId: StyleSheetId;
+ range: SourceRange;
+ text: string;
+ }
+ export type setScopeTextReturnValue = {
+ /**
+ * The resulting CSS Scope rule after modification.
+ */
+ scope: CSSScope;
+ }
/**
* Modifies the rule selector.
*/
@@ -3244,6 +3289,10 @@ The property is always undefined now.
*/
pseudoElement: Node;
}
+ /**
+ * Called when top layer elements are changed.
+ */
+ export type topLayerElementsUpdatedPayload = void;
/**
* Called when a pseudo element is removed from an element.
*/
@@ -3820,6 +3869,19 @@ backendNodeIds.
*/
nodeIds: NodeId[];
}
+ /**
+ * Returns NodeIds of current top layer elements.
+Top layer is rendered closest to the user within a viewport, therefore its elements always
+appear on top of all other content.
+ */
+ export type getTopLayerElementsParameters = {
+ }
+ export type getTopLayerElementsReturnValue = {
+ /**
+ * NodeIds of top layer elements
+ */
+ nodeIds: NodeId[];
+ }
/**
* Re-does the last undone action.
*/
@@ -7175,7 +7237,7 @@ file, data and other requests and responses, their headers, bodies, timing, etc.
/**
* Resource type as it was perceived by the rendering engine.
*/
- export type ResourceType = "Document"|"Stylesheet"|"Image"|"Media"|"Font"|"Script"|"TextTrack"|"XHR"|"Fetch"|"EventSource"|"WebSocket"|"Manifest"|"SignedExchange"|"Ping"|"CSPViolationReport"|"Preflight"|"Other";
+ export type ResourceType = "Document"|"Stylesheet"|"Image"|"Media"|"Font"|"Script"|"TextTrack"|"XHR"|"Fetch"|"Prefetch"|"EventSource"|"WebSocket"|"Manifest"|"SignedExchange"|"Ping"|"CSPViolationReport"|"Preflight"|"Other";
/**
* Unique loader identifier.
*/
@@ -7465,6 +7527,16 @@ milliseconds since January 1, 1970, UTC, not the number of seconds.
* Whether the request complied with Certificate Transparency policy
*/
certificateTransparencyCompliance: CertificateTransparencyCompliance;
+ /**
+ * The signature algorithm used by the server in the TLS server signature,
+represented as a TLS SignatureScheme code point. Omitted if not
+applicable or not known.
+ */
+ serverSignatureAlgorithm?: number;
+ /**
+ * Whether the connection used Encrypted ClientHello
+ */
+ encryptedClientHello: boolean;
}
/**
* Whether the request complied with Certificate Transparency policy.
@@ -10215,11 +10287,11 @@ as an ad.
* All Permissions Policy features. This enum should match the one defined
in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
*/
- export type PermissionsPolicyFeature = "accelerometer"|"ambient-light-sensor"|"attribution-reporting"|"autoplay"|"bluetooth"|"browsing-topics"|"camera"|"ch-dpr"|"ch-device-memory"|"ch-downlink"|"ch-ect"|"ch-prefers-color-scheme"|"ch-rtt"|"ch-save-data"|"ch-ua"|"ch-ua-arch"|"ch-ua-bitness"|"ch-ua-platform"|"ch-ua-model"|"ch-ua-mobile"|"ch-ua-full"|"ch-ua-full-version"|"ch-ua-full-version-list"|"ch-ua-platform-version"|"ch-ua-reduced"|"ch-ua-wow64"|"ch-viewport-height"|"ch-viewport-width"|"ch-width"|"clipboard-read"|"clipboard-write"|"cross-origin-isolated"|"direct-sockets"|"display-capture"|"document-domain"|"encrypted-media"|"execution-while-out-of-viewport"|"execution-while-not-rendered"|"focus-without-user-activation"|"fullscreen"|"frobulate"|"gamepad"|"geolocation"|"gyroscope"|"hid"|"idle-detection"|"interest-cohort"|"join-ad-interest-group"|"keyboard-map"|"local-fonts"|"magnetometer"|"microphone"|"midi"|"otp-credentials"|"payment"|"picture-in-picture"|"publickey-credentials-get"|"run-ad-auction"|"screen-wake-lock"|"serial"|"shared-autofill"|"storage-access-api"|"sync-xhr"|"trust-token-redemption"|"usb"|"vertical-scroll"|"web-share"|"window-placement"|"xr-spatial-tracking";
+ export type PermissionsPolicyFeature = "accelerometer"|"ambient-light-sensor"|"attribution-reporting"|"autoplay"|"bluetooth"|"browsing-topics"|"camera"|"ch-dpr"|"ch-device-memory"|"ch-downlink"|"ch-ect"|"ch-prefers-color-scheme"|"ch-rtt"|"ch-save-data"|"ch-ua"|"ch-ua-arch"|"ch-ua-bitness"|"ch-ua-platform"|"ch-ua-model"|"ch-ua-mobile"|"ch-ua-full"|"ch-ua-full-version"|"ch-ua-full-version-list"|"ch-ua-platform-version"|"ch-ua-reduced"|"ch-ua-wow64"|"ch-viewport-height"|"ch-viewport-width"|"ch-width"|"clipboard-read"|"clipboard-write"|"cross-origin-isolated"|"direct-sockets"|"display-capture"|"document-domain"|"encrypted-media"|"execution-while-out-of-viewport"|"execution-while-not-rendered"|"federated-credentials"|"focus-without-user-activation"|"fullscreen"|"frobulate"|"gamepad"|"geolocation"|"gyroscope"|"hid"|"idle-detection"|"interest-cohort"|"join-ad-interest-group"|"keyboard-map"|"local-fonts"|"magnetometer"|"microphone"|"midi"|"otp-credentials"|"payment"|"picture-in-picture"|"publickey-credentials-get"|"run-ad-auction"|"screen-wake-lock"|"serial"|"shared-autofill"|"shared-storage"|"storage-access-api"|"sync-xhr"|"trust-token-redemption"|"usb"|"vertical-scroll"|"web-share"|"window-placement"|"xr-spatial-tracking";
/**
* Reason for a permissions policy feature to be disabled.
*/
- export type PermissionsPolicyBlockReason = "Header"|"IframeAttribute"|"InFencedFrameTree";
+ export type PermissionsPolicyBlockReason = "Header"|"IframeAttribute"|"InFencedFrameTree"|"InIsolatedApp";
export interface PermissionsPolicyBlockLocator {
frameId: FrameId;
blockReason: PermissionsPolicyBlockReason;
@@ -10731,14 +10803,14 @@ dependent on the reason:
* Id of the frame containing input node.
*/
frameId: FrameId;
- /**
- * Input node id.
- */
- backendNodeId: DOM.BackendNodeId;
/**
* Input mode.
*/
mode: "selectSingle"|"selectMultiple";
+ /**
+ * Input node id. Only present for file choosers opened via an element.
+ */
+ backendNodeId?: DOM.BackendNodeId;
}
/**
* Fired when frame has been attached to its parent.
@@ -12733,6 +12805,21 @@ Tokens from that issuer.
}
export type clearDataForOriginReturnValue = {
}
+ /**
+ * Clears storage for storage key.
+ */
+ export type clearDataForStorageKeyParameters = {
+ /**
+ * Storage key.
+ */
+ storageKey: string;
+ /**
+ * Comma separated list of StorageType to clear.
+ */
+ storageTypes: string;
+ }
+ export type clearDataForStorageKeyReturnValue = {
+ }
/**
* Returns all browser cookies.
*/
@@ -13567,6 +13654,11 @@ to run paused targets.
* Controls how the trace buffer stores data.
*/
recordMode?: "recordUntilFull"|"recordContinuously"|"recordAsMuchAsPossible"|"echoToConsole";
+ /**
+ * Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
+of 200 MB would be used.
+ */
+ traceBufferSizeInKb?: number;
/**
* Turns on JavaScript stack sampling.
*/
@@ -14892,6 +14984,16 @@ variables as its properties.
columnNumber?: number;
type?: "debuggerStatement"|"call"|"return";
}
+ export interface WasmDisassemblyChunk {
+ /**
+ * The next chunk of disassembled lines.
+ */
+ lines: string[];
+ /**
+ * The bytecode offsets describing the start of each line.
+ */
+ bytecodeOffsets: number[];
+ }
/**
* Enum of possible script languages.
*/
@@ -15250,6 +15352,47 @@ of scripts is used as end of range.
*/
bytecode?: binary;
}
+ export type disassembleWasmModuleParameters = {
+ /**
+ * Id of the script to disassemble
+ */
+ scriptId: Runtime.ScriptId;
+ }
+ export type disassembleWasmModuleReturnValue = {
+ /**
+ * For large modules, return a stream from which additional chunks of
+disassembly can be read successively.
+ */
+ streamId?: string;
+ /**
+ * The total number of lines in the disassembly text.
+ */
+ totalNumberOfLines: number;
+ /**
+ * The offsets of all function bodies plus one additional entry pointing
+one by past the end of the last function.
+ */
+ functionBodyOffsets: number[];
+ /**
+ * The first chunk of disassembly.
+ */
+ chunk: WasmDisassemblyChunk;
+ }
+ /**
+ * Disassemble the next chunk of lines for the module corresponding to the
+stream. If disassembly is complete, this API will invalidate the streamId
+and return an empty chunk. Any subsequent calls for the now invalid stream
+will return errors.
+ */
+ export type nextWasmDisassemblyChunkParameters = {
+ streamId: string;
+ }
+ export type nextWasmDisassemblyChunkReturnValue = {
+ /**
+ * The next chunk of disassembly.
+ */
+ chunk: WasmDisassemblyChunk;
+ }
/**
* This command is deprecated. Use getScriptSource instead.
*/
@@ -15560,6 +15703,12 @@ no exceptions. Initial pause on exceptions state is `none`.
}
/**
* Edits JavaScript source live.
+
+In general, functions that are currently on the stack can not be edited with
+a single exception: If the edited function is the top-most stack frame and
+that is the only activation of that function on the stack. In this case
+the live edit will be successful and a `Debugger.restartFrame` for the
+top-most function is automatically triggered.
*/
export type setScriptSourceParameters = {
/**
@@ -15575,6 +15724,11 @@ no exceptions. Initial pause on exceptions state is `none`.
description without actually modifying the code.
*/
dryRun?: boolean;
+ /**
+ * If true, then `scriptSource` is allowed to change the function on top of the stack
+as long as the top-most stack frame is the only activation of that function.
+ */
+ allowTopFrameEditing?: boolean;
}
export type setScriptSourceReturnValue = {
/**
@@ -15594,7 +15748,13 @@ description without actually modifying the code.
*/
asyncStackTraceId?: Runtime.StackTraceId;
/**
- * Exception details if any.
+ * Whether the operation was successful or not. Only `Ok` denotes a
+successful live edit while the other enum variants denote why
+the live edit failed.
+ */
+ status: "Ok"|"CompileError"|"BlockedByActiveGenerator"|"BlockedByActiveFunction";
+ /**
+ * Exception details if any. Only present when `status` is `CompileError`.
*/
exceptionDetails?: Runtime.ExceptionDetails;
}
@@ -17282,6 +17442,7 @@ Error was thrown.
"DOM.documentUpdated": DOM.documentUpdatedPayload;
"DOM.inlineStyleInvalidated": DOM.inlineStyleInvalidatedPayload;
"DOM.pseudoElementAdded": DOM.pseudoElementAddedPayload;
+ "DOM.topLayerElementsUpdated": DOM.topLayerElementsUpdatedPayload;
"DOM.pseudoElementRemoved": DOM.pseudoElementRemovedPayload;
"DOM.setChildNodes": DOM.setChildNodesPayload;
"DOM.shadowRootPopped": DOM.shadowRootPoppedPayload;
@@ -17493,6 +17654,7 @@ Error was thrown.
"CSS.setMediaText": CSS.setMediaTextParameters;
"CSS.setContainerQueryText": CSS.setContainerQueryTextParameters;
"CSS.setSupportsText": CSS.setSupportsTextParameters;
+ "CSS.setScopeText": CSS.setScopeTextParameters;
"CSS.setRuleSelector": CSS.setRuleSelectorParameters;
"CSS.setStyleSheetText": CSS.setStyleSheetTextParameters;
"CSS.setStyleTexts": CSS.setStyleTextsParameters;
@@ -17539,6 +17701,7 @@ Error was thrown.
"DOM.pushNodesByBackendIdsToFrontend": DOM.pushNodesByBackendIdsToFrontendParameters;
"DOM.querySelector": DOM.querySelectorParameters;
"DOM.querySelectorAll": DOM.querySelectorAllParameters;
+ "DOM.getTopLayerElements": DOM.getTopLayerElementsParameters;
"DOM.redo": DOM.redoParameters;
"DOM.removeAttribute": DOM.removeAttributeParameters;
"DOM.removeNode": DOM.removeNodeParameters;
@@ -17813,6 +17976,7 @@ Error was thrown.
"ServiceWorker.updateRegistration": ServiceWorker.updateRegistrationParameters;
"Storage.getStorageKeyForFrame": Storage.getStorageKeyForFrameParameters;
"Storage.clearDataForOrigin": Storage.clearDataForOriginParameters;
+ "Storage.clearDataForStorageKey": Storage.clearDataForStorageKeyParameters;
"Storage.getCookies": Storage.getCookiesParameters;
"Storage.setCookies": Storage.setCookiesParameters;
"Storage.clearCookies": Storage.clearCookiesParameters;
@@ -17886,6 +18050,8 @@ Error was thrown.
"Debugger.evaluateOnCallFrame": Debugger.evaluateOnCallFrameParameters;
"Debugger.getPossibleBreakpoints": Debugger.getPossibleBreakpointsParameters;
"Debugger.getScriptSource": Debugger.getScriptSourceParameters;
+ "Debugger.disassembleWasmModule": Debugger.disassembleWasmModuleParameters;
+ "Debugger.nextWasmDisassemblyChunk": Debugger.nextWasmDisassemblyChunkParameters;
"Debugger.getWasmBytecode": Debugger.getWasmBytecodeParameters;
"Debugger.getStackTrace": Debugger.getStackTraceParameters;
"Debugger.pause": Debugger.pauseParameters;
@@ -18024,6 +18190,7 @@ Error was thrown.
"CSS.setMediaText": CSS.setMediaTextReturnValue;
"CSS.setContainerQueryText": CSS.setContainerQueryTextReturnValue;
"CSS.setSupportsText": CSS.setSupportsTextReturnValue;
+ "CSS.setScopeText": CSS.setScopeTextReturnValue;
"CSS.setRuleSelector": CSS.setRuleSelectorReturnValue;
"CSS.setStyleSheetText": CSS.setStyleSheetTextReturnValue;
"CSS.setStyleTexts": CSS.setStyleTextsReturnValue;
@@ -18070,6 +18237,7 @@ Error was thrown.
"DOM.pushNodesByBackendIdsToFrontend": DOM.pushNodesByBackendIdsToFrontendReturnValue;
"DOM.querySelector": DOM.querySelectorReturnValue;
"DOM.querySelectorAll": DOM.querySelectorAllReturnValue;
+ "DOM.getTopLayerElements": DOM.getTopLayerElementsReturnValue;
"DOM.redo": DOM.redoReturnValue;
"DOM.removeAttribute": DOM.removeAttributeReturnValue;
"DOM.removeNode": DOM.removeNodeReturnValue;
@@ -18344,6 +18512,7 @@ Error was thrown.
"ServiceWorker.updateRegistration": ServiceWorker.updateRegistrationReturnValue;
"Storage.getStorageKeyForFrame": Storage.getStorageKeyForFrameReturnValue;
"Storage.clearDataForOrigin": Storage.clearDataForOriginReturnValue;
+ "Storage.clearDataForStorageKey": Storage.clearDataForStorageKeyReturnValue;
"Storage.getCookies": Storage.getCookiesReturnValue;
"Storage.setCookies": Storage.setCookiesReturnValue;
"Storage.clearCookies": Storage.clearCookiesReturnValue;
@@ -18417,6 +18586,8 @@ Error was thrown.
"Debugger.evaluateOnCallFrame": Debugger.evaluateOnCallFrameReturnValue;
"Debugger.getPossibleBreakpoints": Debugger.getPossibleBreakpointsReturnValue;
"Debugger.getScriptSource": Debugger.getScriptSourceReturnValue;
+ "Debugger.disassembleWasmModule": Debugger.disassembleWasmModuleReturnValue;
+ "Debugger.nextWasmDisassemblyChunk": Debugger.nextWasmDisassemblyChunkReturnValue;
"Debugger.getWasmBytecode": Debugger.getWasmBytecodeReturnValue;
"Debugger.getStackTrace": Debugger.getStackTraceReturnValue;
"Debugger.pause": Debugger.pauseReturnValue;
diff --git a/packages/playwright-core/src/server/deviceDescriptorsSource.json b/packages/playwright-core/src/server/deviceDescriptorsSource.json
index e74b3fed40..a64562097e 100644
--- a/packages/playwright-core/src/server/deviceDescriptorsSource.json
+++ b/packages/playwright-core/src/server/deviceDescriptorsSource.json
@@ -110,7 +110,7 @@
"defaultBrowserType": "webkit"
},
"Galaxy S5": {
- "userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 360,
"height": 640
@@ -121,7 +121,7 @@
"defaultBrowserType": "chromium"
},
"Galaxy S5 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 640,
"height": 360
@@ -132,7 +132,7 @@
"defaultBrowserType": "chromium"
},
"Galaxy S8": {
- "userAgent": "Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 360,
"height": 740
@@ -143,7 +143,7 @@
"defaultBrowserType": "chromium"
},
"Galaxy S8 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 740,
"height": 360
@@ -154,7 +154,7 @@
"defaultBrowserType": "chromium"
},
"Galaxy S9+": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 320,
"height": 658
@@ -165,7 +165,7 @@
"defaultBrowserType": "chromium"
},
"Galaxy S9+ landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 658,
"height": 320
@@ -176,7 +176,7 @@
"defaultBrowserType": "chromium"
},
"Galaxy Tab S4": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36",
"viewport": {
"width": 712,
"height": 1138
@@ -187,7 +187,7 @@
"defaultBrowserType": "chromium"
},
"Galaxy Tab S4 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36",
"viewport": {
"width": 1138,
"height": 712
@@ -858,7 +858,7 @@
"defaultBrowserType": "webkit"
},
"LG Optimus L70": {
- "userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 384,
"height": 640
@@ -869,7 +869,7 @@
"defaultBrowserType": "chromium"
},
"LG Optimus L70 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 640,
"height": 384
@@ -880,7 +880,7 @@
"defaultBrowserType": "chromium"
},
"Microsoft Lumia 550": {
- "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36 Edge/14.14263",
+ "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36 Edge/14.14263",
"viewport": {
"width": 640,
"height": 360
@@ -891,7 +891,7 @@
"defaultBrowserType": "chromium"
},
"Microsoft Lumia 550 landscape": {
- "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36 Edge/14.14263",
+ "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36 Edge/14.14263",
"viewport": {
"width": 360,
"height": 640
@@ -902,7 +902,7 @@
"defaultBrowserType": "chromium"
},
"Microsoft Lumia 950": {
- "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36 Edge/14.14263",
+ "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36 Edge/14.14263",
"viewport": {
"width": 360,
"height": 640
@@ -913,7 +913,7 @@
"defaultBrowserType": "chromium"
},
"Microsoft Lumia 950 landscape": {
- "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36 Edge/14.14263",
+ "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36 Edge/14.14263",
"viewport": {
"width": 640,
"height": 360
@@ -924,7 +924,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 10": {
- "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36",
"viewport": {
"width": 800,
"height": 1280
@@ -935,7 +935,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 10 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36",
"viewport": {
"width": 1280,
"height": 800
@@ -946,7 +946,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 4": {
- "userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 384,
"height": 640
@@ -957,7 +957,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 4 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 640,
"height": 384
@@ -968,7 +968,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 5": {
- "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 360,
"height": 640
@@ -979,7 +979,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 5 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 640,
"height": 360
@@ -990,7 +990,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 5X": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 412,
"height": 732
@@ -1001,7 +1001,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 5X landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 732,
"height": 412
@@ -1012,7 +1012,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 6": {
- "userAgent": "Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 412,
"height": 732
@@ -1023,7 +1023,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 6 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 732,
"height": 412
@@ -1034,7 +1034,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 6P": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 412,
"height": 732
@@ -1045,7 +1045,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 6P landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 732,
"height": 412
@@ -1056,7 +1056,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 7": {
- "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36",
"viewport": {
"width": 600,
"height": 960
@@ -1067,7 +1067,7 @@
"defaultBrowserType": "chromium"
},
"Nexus 7 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36",
"viewport": {
"width": 960,
"height": 600
@@ -1122,7 +1122,7 @@
"defaultBrowserType": "webkit"
},
"Pixel 2": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 411,
"height": 731
@@ -1133,7 +1133,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 2 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 731,
"height": 411
@@ -1144,7 +1144,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 2 XL": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 411,
"height": 823
@@ -1155,7 +1155,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 2 XL landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 823,
"height": 411
@@ -1166,7 +1166,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 3": {
- "userAgent": "Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 393,
"height": 786
@@ -1177,7 +1177,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 3 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 786,
"height": 393
@@ -1188,7 +1188,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 4": {
- "userAgent": "Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 353,
"height": 745
@@ -1199,7 +1199,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 4 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 745,
"height": 353
@@ -1210,7 +1210,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 4a (5G)": {
- "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"screen": {
"width": 412,
"height": 892
@@ -1225,7 +1225,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 4a (5G) landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"screen": {
"height": 892,
"width": 412
@@ -1240,7 +1240,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 5": {
- "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"screen": {
"width": 393,
"height": 851
@@ -1255,7 +1255,7 @@
"defaultBrowserType": "chromium"
},
"Pixel 5 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"screen": {
"width": 851,
"height": 393
@@ -1270,7 +1270,7 @@
"defaultBrowserType": "chromium"
},
"Moto G4": {
- "userAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 360,
"height": 640
@@ -1281,7 +1281,7 @@
"defaultBrowserType": "chromium"
},
"Moto G4 landscape": {
- "userAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Mobile Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Mobile Safari/537.36",
"viewport": {
"width": 640,
"height": 360
@@ -1292,7 +1292,7 @@
"defaultBrowserType": "chromium"
},
"Desktop Chrome HiDPI": {
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36",
"screen": {
"width": 1792,
"height": 1120
@@ -1307,7 +1307,7 @@
"defaultBrowserType": "chromium"
},
"Desktop Edge HiDPI": {
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36 Edg/104.0.5112.81",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36 Edg/105.0.5195.19",
"screen": {
"width": 1792,
"height": 1120
@@ -1352,7 +1352,7 @@
"defaultBrowserType": "webkit"
},
"Desktop Chrome": {
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36",
"screen": {
"width": 1920,
"height": 1080
@@ -1367,7 +1367,7 @@
"defaultBrowserType": "chromium"
},
"Desktop Edge": {
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36 Edg/104.0.5112.81",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.5195.19 Safari/537.36 Edg/105.0.5195.19",
"screen": {
"width": 1920,
"height": 1080
diff --git a/packages/playwright-core/types/protocol.d.ts b/packages/playwright-core/types/protocol.d.ts
index 4640c73472..a9d7345550 100644
--- a/packages/playwright-core/types/protocol.d.ts
+++ b/packages/playwright-core/types/protocol.d.ts
@@ -133,6 +133,10 @@ export module Protocol {
* This `Node`'s role, whether explicit or implicit.
*/
role?: AXValue;
+ /**
+ * This `Node`'s Chrome raw role.
+ */
+ chromeRole?: AXValue;
/**
* The accessible name for this `Node`.
*/
@@ -849,7 +853,7 @@ instead of "limited-quirks".
errorType: GenericIssueErrorType;
frameId?: Page.FrameId;
}
- export type DeprecationIssueType = "AuthorizationCoveredByWildcard"|"CanRequestURLHTTPContainingNewline"|"ChromeLoadTimesConnectionInfo"|"ChromeLoadTimesFirstPaintAfterLoadTime"|"ChromeLoadTimesWasAlternateProtocolAvailable"|"CookieWithTruncatingChar"|"CrossOriginAccessBasedOnDocumentDomain"|"CrossOriginWindowAlert"|"CrossOriginWindowConfirm"|"CSSSelectorInternalMediaControlsOverlayCastButton"|"DeprecationExample"|"DocumentDomainSettingWithoutOriginAgentClusterHeader"|"EventPath"|"GeolocationInsecureOrigin"|"GeolocationInsecureOriginDeprecatedNotRemoved"|"GetUserMediaInsecureOrigin"|"HostCandidateAttributeGetter"|"IdentityInCanMakePaymentEvent"|"InsecurePrivateNetworkSubresourceRequest"|"LegacyConstraintGoogIPv6"|"LocalCSSFileExtensionRejected"|"MediaSourceAbortRemove"|"MediaSourceDurationTruncatingBuffered"|"NoSysexWebMIDIWithoutPermission"|"NotificationInsecureOrigin"|"NotificationPermissionRequestedIframe"|"ObsoleteWebRtcCipherSuite"|"OpenWebDatabaseInsecureContext"|"PictureSourceSrc"|"PrefixedCancelAnimationFrame"|"PrefixedRequestAnimationFrame"|"PrefixedStorageInfo"|"PrefixedVideoDisplayingFullscreen"|"PrefixedVideoEnterFullscreen"|"PrefixedVideoEnterFullScreen"|"PrefixedVideoExitFullscreen"|"PrefixedVideoExitFullScreen"|"PrefixedVideoSupportsFullscreen"|"RangeExpand"|"RequestedSubresourceWithEmbeddedCredentials"|"RTCConstraintEnableDtlsSrtpFalse"|"RTCConstraintEnableDtlsSrtpTrue"|"RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics"|"RTCPeerConnectionSdpSemanticsPlanB"|"RtcpMuxPolicyNegotiate"|"SharedArrayBufferConstructedWithoutIsolation"|"TextToSpeech_DisallowedByAutoplay"|"V8SharedArrayBufferConstructedInExtensionWithoutIsolation"|"XHRJSONEncodingDetection"|"XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload"|"XRSupportsSession";
+ export type DeprecationIssueType = "AuthorizationCoveredByWildcard"|"CanRequestURLHTTPContainingNewline"|"ChromeLoadTimesConnectionInfo"|"ChromeLoadTimesFirstPaintAfterLoadTime"|"ChromeLoadTimesWasAlternateProtocolAvailable"|"CookieWithTruncatingChar"|"CrossOriginAccessBasedOnDocumentDomain"|"CrossOriginWindowAlert"|"CrossOriginWindowConfirm"|"CSSSelectorInternalMediaControlsOverlayCastButton"|"DeprecationExample"|"DocumentDomainSettingWithoutOriginAgentClusterHeader"|"EventPath"|"ExpectCTHeader"|"GeolocationInsecureOrigin"|"GeolocationInsecureOriginDeprecatedNotRemoved"|"GetUserMediaInsecureOrigin"|"HostCandidateAttributeGetter"|"IdentityInCanMakePaymentEvent"|"InsecurePrivateNetworkSubresourceRequest"|"LegacyConstraintGoogIPv6"|"LocalCSSFileExtensionRejected"|"MediaSourceAbortRemove"|"MediaSourceDurationTruncatingBuffered"|"NavigateEventRestoreScroll"|"NavigateEventTransitionWhile"|"NoSysexWebMIDIWithoutPermission"|"NotificationInsecureOrigin"|"NotificationPermissionRequestedIframe"|"ObsoleteWebRtcCipherSuite"|"OpenWebDatabaseInsecureContext"|"OverflowVisibleOnReplacedElement"|"PictureSourceSrc"|"PrefixedCancelAnimationFrame"|"PrefixedRequestAnimationFrame"|"PrefixedStorageInfo"|"PrefixedVideoDisplayingFullscreen"|"PrefixedVideoEnterFullscreen"|"PrefixedVideoEnterFullScreen"|"PrefixedVideoExitFullscreen"|"PrefixedVideoExitFullScreen"|"PrefixedVideoSupportsFullscreen"|"RangeExpand"|"RequestedSubresourceWithEmbeddedCredentials"|"RTCConstraintEnableDtlsSrtpFalse"|"RTCConstraintEnableDtlsSrtpTrue"|"RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics"|"RTCPeerConnectionSdpSemanticsPlanB"|"RtcpMuxPolicyNegotiate"|"SharedArrayBufferConstructedWithoutIsolation"|"TextToSpeech_DisallowedByAutoplay"|"V8SharedArrayBufferConstructedInExtensionWithoutIsolation"|"XHRJSONEncodingDetection"|"XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload"|"XRSupportsSession";
/**
* This issue tracks information needed to print a deprecation message.
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md
@@ -1723,6 +1727,11 @@ The array enumerates @supports at-rules starting with the innermost one, going o
with the innermost layer and going outwards.
*/
layers?: CSSLayer[];
+ /**
+ * @scope CSS at-rule array.
+The array enumerates @scope at-rules starting with the innermost one, going outwards.
+ */
+ scopes?: CSSScope[];
}
/**
* CSS coverage information.
@@ -1961,6 +1970,24 @@ available).
active: boolean;
/**
* The associated rule header range in the enclosing stylesheet (if
+available).
+ */
+ range?: SourceRange;
+ /**
+ * Identifier of the stylesheet containing this object (if exists).
+ */
+ styleSheetId?: StyleSheetId;
+ }
+ /**
+ * CSS Scope at-rule descriptor.
+ */
+ export interface CSSScope {
+ /**
+ * Scope rule text.
+ */
+ text: string;
+ /**
+ * The associated rule header range in the enclosing stylesheet (if
available).
*/
range?: SourceRange;
@@ -2357,6 +2384,10 @@ attributes) for a DOM node identified by `nodeId`.
* A list of CSS keyframed animations matching this node.
*/
cssKeyframesRules?: CSSKeyframesRule[];
+ /**
+ * Id of the first parent element that does not have display: contents.
+ */
+ parentLayoutNodeId?: DOM.NodeId;
}
/**
* Returns all media queries parsed by the rendering engine.
@@ -2497,6 +2528,20 @@ property
*/
supports: CSSSupports;
}
+ /**
+ * Modifies the expression of a scope at-rule.
+ */
+ export type setScopeTextParameters = {
+ styleSheetId: StyleSheetId;
+ range: SourceRange;
+ text: string;
+ }
+ export type setScopeTextReturnValue = {
+ /**
+ * The resulting CSS Scope rule after modification.
+ */
+ scope: CSSScope;
+ }
/**
* Modifies the rule selector.
*/
@@ -3244,6 +3289,10 @@ The property is always undefined now.
*/
pseudoElement: Node;
}
+ /**
+ * Called when top layer elements are changed.
+ */
+ export type topLayerElementsUpdatedPayload = void;
/**
* Called when a pseudo element is removed from an element.
*/
@@ -3820,6 +3869,19 @@ backendNodeIds.
*/
nodeIds: NodeId[];
}
+ /**
+ * Returns NodeIds of current top layer elements.
+Top layer is rendered closest to the user within a viewport, therefore its elements always
+appear on top of all other content.
+ */
+ export type getTopLayerElementsParameters = {
+ }
+ export type getTopLayerElementsReturnValue = {
+ /**
+ * NodeIds of top layer elements
+ */
+ nodeIds: NodeId[];
+ }
/**
* Re-does the last undone action.
*/
@@ -7175,7 +7237,7 @@ file, data and other requests and responses, their headers, bodies, timing, etc.
/**
* Resource type as it was perceived by the rendering engine.
*/
- export type ResourceType = "Document"|"Stylesheet"|"Image"|"Media"|"Font"|"Script"|"TextTrack"|"XHR"|"Fetch"|"EventSource"|"WebSocket"|"Manifest"|"SignedExchange"|"Ping"|"CSPViolationReport"|"Preflight"|"Other";
+ export type ResourceType = "Document"|"Stylesheet"|"Image"|"Media"|"Font"|"Script"|"TextTrack"|"XHR"|"Fetch"|"Prefetch"|"EventSource"|"WebSocket"|"Manifest"|"SignedExchange"|"Ping"|"CSPViolationReport"|"Preflight"|"Other";
/**
* Unique loader identifier.
*/
@@ -7465,6 +7527,16 @@ milliseconds since January 1, 1970, UTC, not the number of seconds.
* Whether the request complied with Certificate Transparency policy
*/
certificateTransparencyCompliance: CertificateTransparencyCompliance;
+ /**
+ * The signature algorithm used by the server in the TLS server signature,
+represented as a TLS SignatureScheme code point. Omitted if not
+applicable or not known.
+ */
+ serverSignatureAlgorithm?: number;
+ /**
+ * Whether the connection used Encrypted ClientHello
+ */
+ encryptedClientHello: boolean;
}
/**
* Whether the request complied with Certificate Transparency policy.
@@ -10215,11 +10287,11 @@ as an ad.
* All Permissions Policy features. This enum should match the one defined
in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
*/
- export type PermissionsPolicyFeature = "accelerometer"|"ambient-light-sensor"|"attribution-reporting"|"autoplay"|"bluetooth"|"browsing-topics"|"camera"|"ch-dpr"|"ch-device-memory"|"ch-downlink"|"ch-ect"|"ch-prefers-color-scheme"|"ch-rtt"|"ch-save-data"|"ch-ua"|"ch-ua-arch"|"ch-ua-bitness"|"ch-ua-platform"|"ch-ua-model"|"ch-ua-mobile"|"ch-ua-full"|"ch-ua-full-version"|"ch-ua-full-version-list"|"ch-ua-platform-version"|"ch-ua-reduced"|"ch-ua-wow64"|"ch-viewport-height"|"ch-viewport-width"|"ch-width"|"clipboard-read"|"clipboard-write"|"cross-origin-isolated"|"direct-sockets"|"display-capture"|"document-domain"|"encrypted-media"|"execution-while-out-of-viewport"|"execution-while-not-rendered"|"focus-without-user-activation"|"fullscreen"|"frobulate"|"gamepad"|"geolocation"|"gyroscope"|"hid"|"idle-detection"|"interest-cohort"|"join-ad-interest-group"|"keyboard-map"|"local-fonts"|"magnetometer"|"microphone"|"midi"|"otp-credentials"|"payment"|"picture-in-picture"|"publickey-credentials-get"|"run-ad-auction"|"screen-wake-lock"|"serial"|"shared-autofill"|"storage-access-api"|"sync-xhr"|"trust-token-redemption"|"usb"|"vertical-scroll"|"web-share"|"window-placement"|"xr-spatial-tracking";
+ export type PermissionsPolicyFeature = "accelerometer"|"ambient-light-sensor"|"attribution-reporting"|"autoplay"|"bluetooth"|"browsing-topics"|"camera"|"ch-dpr"|"ch-device-memory"|"ch-downlink"|"ch-ect"|"ch-prefers-color-scheme"|"ch-rtt"|"ch-save-data"|"ch-ua"|"ch-ua-arch"|"ch-ua-bitness"|"ch-ua-platform"|"ch-ua-model"|"ch-ua-mobile"|"ch-ua-full"|"ch-ua-full-version"|"ch-ua-full-version-list"|"ch-ua-platform-version"|"ch-ua-reduced"|"ch-ua-wow64"|"ch-viewport-height"|"ch-viewport-width"|"ch-width"|"clipboard-read"|"clipboard-write"|"cross-origin-isolated"|"direct-sockets"|"display-capture"|"document-domain"|"encrypted-media"|"execution-while-out-of-viewport"|"execution-while-not-rendered"|"federated-credentials"|"focus-without-user-activation"|"fullscreen"|"frobulate"|"gamepad"|"geolocation"|"gyroscope"|"hid"|"idle-detection"|"interest-cohort"|"join-ad-interest-group"|"keyboard-map"|"local-fonts"|"magnetometer"|"microphone"|"midi"|"otp-credentials"|"payment"|"picture-in-picture"|"publickey-credentials-get"|"run-ad-auction"|"screen-wake-lock"|"serial"|"shared-autofill"|"shared-storage"|"storage-access-api"|"sync-xhr"|"trust-token-redemption"|"usb"|"vertical-scroll"|"web-share"|"window-placement"|"xr-spatial-tracking";
/**
* Reason for a permissions policy feature to be disabled.
*/
- export type PermissionsPolicyBlockReason = "Header"|"IframeAttribute"|"InFencedFrameTree";
+ export type PermissionsPolicyBlockReason = "Header"|"IframeAttribute"|"InFencedFrameTree"|"InIsolatedApp";
export interface PermissionsPolicyBlockLocator {
frameId: FrameId;
blockReason: PermissionsPolicyBlockReason;
@@ -10731,14 +10803,14 @@ dependent on the reason:
* Id of the frame containing input node.
*/
frameId: FrameId;
- /**
- * Input node id.
- */
- backendNodeId: DOM.BackendNodeId;
/**
* Input mode.
*/
mode: "selectSingle"|"selectMultiple";
+ /**
+ * Input node id. Only present for file choosers opened via an element.
+ */
+ backendNodeId?: DOM.BackendNodeId;
}
/**
* Fired when frame has been attached to its parent.
@@ -12733,6 +12805,21 @@ Tokens from that issuer.
}
export type clearDataForOriginReturnValue = {
}
+ /**
+ * Clears storage for storage key.
+ */
+ export type clearDataForStorageKeyParameters = {
+ /**
+ * Storage key.
+ */
+ storageKey: string;
+ /**
+ * Comma separated list of StorageType to clear.
+ */
+ storageTypes: string;
+ }
+ export type clearDataForStorageKeyReturnValue = {
+ }
/**
* Returns all browser cookies.
*/
@@ -13567,6 +13654,11 @@ to run paused targets.
* Controls how the trace buffer stores data.
*/
recordMode?: "recordUntilFull"|"recordContinuously"|"recordAsMuchAsPossible"|"echoToConsole";
+ /**
+ * Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
+of 200 MB would be used.
+ */
+ traceBufferSizeInKb?: number;
/**
* Turns on JavaScript stack sampling.
*/
@@ -14892,6 +14984,16 @@ variables as its properties.
columnNumber?: number;
type?: "debuggerStatement"|"call"|"return";
}
+ export interface WasmDisassemblyChunk {
+ /**
+ * The next chunk of disassembled lines.
+ */
+ lines: string[];
+ /**
+ * The bytecode offsets describing the start of each line.
+ */
+ bytecodeOffsets: number[];
+ }
/**
* Enum of possible script languages.
*/
@@ -15250,6 +15352,47 @@ of scripts is used as end of range.
*/
bytecode?: binary;
}
+ export type disassembleWasmModuleParameters = {
+ /**
+ * Id of the script to disassemble
+ */
+ scriptId: Runtime.ScriptId;
+ }
+ export type disassembleWasmModuleReturnValue = {
+ /**
+ * For large modules, return a stream from which additional chunks of
+disassembly can be read successively.
+ */
+ streamId?: string;
+ /**
+ * The total number of lines in the disassembly text.
+ */
+ totalNumberOfLines: number;
+ /**
+ * The offsets of all function bodies plus one additional entry pointing
+one by past the end of the last function.
+ */
+ functionBodyOffsets: number[];
+ /**
+ * The first chunk of disassembly.
+ */
+ chunk: WasmDisassemblyChunk;
+ }
+ /**
+ * Disassemble the next chunk of lines for the module corresponding to the
+stream. If disassembly is complete, this API will invalidate the streamId
+and return an empty chunk. Any subsequent calls for the now invalid stream
+will return errors.
+ */
+ export type nextWasmDisassemblyChunkParameters = {
+ streamId: string;
+ }
+ export type nextWasmDisassemblyChunkReturnValue = {
+ /**
+ * The next chunk of disassembly.
+ */
+ chunk: WasmDisassemblyChunk;
+ }
/**
* This command is deprecated. Use getScriptSource instead.
*/
@@ -15560,6 +15703,12 @@ no exceptions. Initial pause on exceptions state is `none`.
}
/**
* Edits JavaScript source live.
+
+In general, functions that are currently on the stack can not be edited with
+a single exception: If the edited function is the top-most stack frame and
+that is the only activation of that function on the stack. In this case
+the live edit will be successful and a `Debugger.restartFrame` for the
+top-most function is automatically triggered.
*/
export type setScriptSourceParameters = {
/**
@@ -15575,6 +15724,11 @@ no exceptions. Initial pause on exceptions state is `none`.
description without actually modifying the code.
*/
dryRun?: boolean;
+ /**
+ * If true, then `scriptSource` is allowed to change the function on top of the stack
+as long as the top-most stack frame is the only activation of that function.
+ */
+ allowTopFrameEditing?: boolean;
}
export type setScriptSourceReturnValue = {
/**
@@ -15594,7 +15748,13 @@ description without actually modifying the code.
*/
asyncStackTraceId?: Runtime.StackTraceId;
/**
- * Exception details if any.
+ * Whether the operation was successful or not. Only `Ok` denotes a
+successful live edit while the other enum variants denote why
+the live edit failed.
+ */
+ status: "Ok"|"CompileError"|"BlockedByActiveGenerator"|"BlockedByActiveFunction";
+ /**
+ * Exception details if any. Only present when `status` is `CompileError`.
*/
exceptionDetails?: Runtime.ExceptionDetails;
}
@@ -17282,6 +17442,7 @@ Error was thrown.
"DOM.documentUpdated": DOM.documentUpdatedPayload;
"DOM.inlineStyleInvalidated": DOM.inlineStyleInvalidatedPayload;
"DOM.pseudoElementAdded": DOM.pseudoElementAddedPayload;
+ "DOM.topLayerElementsUpdated": DOM.topLayerElementsUpdatedPayload;
"DOM.pseudoElementRemoved": DOM.pseudoElementRemovedPayload;
"DOM.setChildNodes": DOM.setChildNodesPayload;
"DOM.shadowRootPopped": DOM.shadowRootPoppedPayload;
@@ -17493,6 +17654,7 @@ Error was thrown.
"CSS.setMediaText": CSS.setMediaTextParameters;
"CSS.setContainerQueryText": CSS.setContainerQueryTextParameters;
"CSS.setSupportsText": CSS.setSupportsTextParameters;
+ "CSS.setScopeText": CSS.setScopeTextParameters;
"CSS.setRuleSelector": CSS.setRuleSelectorParameters;
"CSS.setStyleSheetText": CSS.setStyleSheetTextParameters;
"CSS.setStyleTexts": CSS.setStyleTextsParameters;
@@ -17539,6 +17701,7 @@ Error was thrown.
"DOM.pushNodesByBackendIdsToFrontend": DOM.pushNodesByBackendIdsToFrontendParameters;
"DOM.querySelector": DOM.querySelectorParameters;
"DOM.querySelectorAll": DOM.querySelectorAllParameters;
+ "DOM.getTopLayerElements": DOM.getTopLayerElementsParameters;
"DOM.redo": DOM.redoParameters;
"DOM.removeAttribute": DOM.removeAttributeParameters;
"DOM.removeNode": DOM.removeNodeParameters;
@@ -17813,6 +17976,7 @@ Error was thrown.
"ServiceWorker.updateRegistration": ServiceWorker.updateRegistrationParameters;
"Storage.getStorageKeyForFrame": Storage.getStorageKeyForFrameParameters;
"Storage.clearDataForOrigin": Storage.clearDataForOriginParameters;
+ "Storage.clearDataForStorageKey": Storage.clearDataForStorageKeyParameters;
"Storage.getCookies": Storage.getCookiesParameters;
"Storage.setCookies": Storage.setCookiesParameters;
"Storage.clearCookies": Storage.clearCookiesParameters;
@@ -17886,6 +18050,8 @@ Error was thrown.
"Debugger.evaluateOnCallFrame": Debugger.evaluateOnCallFrameParameters;
"Debugger.getPossibleBreakpoints": Debugger.getPossibleBreakpointsParameters;
"Debugger.getScriptSource": Debugger.getScriptSourceParameters;
+ "Debugger.disassembleWasmModule": Debugger.disassembleWasmModuleParameters;
+ "Debugger.nextWasmDisassemblyChunk": Debugger.nextWasmDisassemblyChunkParameters;
"Debugger.getWasmBytecode": Debugger.getWasmBytecodeParameters;
"Debugger.getStackTrace": Debugger.getStackTraceParameters;
"Debugger.pause": Debugger.pauseParameters;
@@ -18024,6 +18190,7 @@ Error was thrown.
"CSS.setMediaText": CSS.setMediaTextReturnValue;
"CSS.setContainerQueryText": CSS.setContainerQueryTextReturnValue;
"CSS.setSupportsText": CSS.setSupportsTextReturnValue;
+ "CSS.setScopeText": CSS.setScopeTextReturnValue;
"CSS.setRuleSelector": CSS.setRuleSelectorReturnValue;
"CSS.setStyleSheetText": CSS.setStyleSheetTextReturnValue;
"CSS.setStyleTexts": CSS.setStyleTextsReturnValue;
@@ -18070,6 +18237,7 @@ Error was thrown.
"DOM.pushNodesByBackendIdsToFrontend": DOM.pushNodesByBackendIdsToFrontendReturnValue;
"DOM.querySelector": DOM.querySelectorReturnValue;
"DOM.querySelectorAll": DOM.querySelectorAllReturnValue;
+ "DOM.getTopLayerElements": DOM.getTopLayerElementsReturnValue;
"DOM.redo": DOM.redoReturnValue;
"DOM.removeAttribute": DOM.removeAttributeReturnValue;
"DOM.removeNode": DOM.removeNodeReturnValue;
@@ -18344,6 +18512,7 @@ Error was thrown.
"ServiceWorker.updateRegistration": ServiceWorker.updateRegistrationReturnValue;
"Storage.getStorageKeyForFrame": Storage.getStorageKeyForFrameReturnValue;
"Storage.clearDataForOrigin": Storage.clearDataForOriginReturnValue;
+ "Storage.clearDataForStorageKey": Storage.clearDataForStorageKeyReturnValue;
"Storage.getCookies": Storage.getCookiesReturnValue;
"Storage.setCookies": Storage.setCookiesReturnValue;
"Storage.clearCookies": Storage.clearCookiesReturnValue;
@@ -18417,6 +18586,8 @@ Error was thrown.
"Debugger.evaluateOnCallFrame": Debugger.evaluateOnCallFrameReturnValue;
"Debugger.getPossibleBreakpoints": Debugger.getPossibleBreakpointsReturnValue;
"Debugger.getScriptSource": Debugger.getScriptSourceReturnValue;
+ "Debugger.disassembleWasmModule": Debugger.disassembleWasmModuleReturnValue;
+ "Debugger.nextWasmDisassemblyChunk": Debugger.nextWasmDisassemblyChunkReturnValue;
"Debugger.getWasmBytecode": Debugger.getWasmBytecodeReturnValue;
"Debugger.getStackTrace": Debugger.getStackTraceReturnValue;
"Debugger.pause": Debugger.pauseReturnValue;