feat(webkit): roll to r1689 (#15943)

This commit is contained in:
Playwright Service 2022-07-26 08:48:18 -07:00 committed by GitHub
parent 67cea1882c
commit ac480240bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 17 deletions

View File

@ -33,7 +33,7 @@
}, },
{ {
"name": "webkit", "name": "webkit",
"revision": "1685", "revision": "1689",
"installByDefault": true, "installByDefault": true,
"revisionOverrides": { "revisionOverrides": {
"mac10.14": "1446", "mac10.14": "1446",

View File

@ -30,7 +30,7 @@ export module Protocol {
/** /**
* Backtrace that was captured when this `WebAnimation` was created. * Backtrace that was captured when this `WebAnimation` was created.
*/ */
backtrace?: Console.CallFrame[]; stackTrace?: Console.StackTrace;
} }
export interface Effect { export interface Effect {
startDelay?: number; startDelay?: number;
@ -908,9 +908,9 @@ export module Protocol {
defaultValue: number; defaultValue: number;
} }
/** /**
* The layout context type of a node. * Relevant layout information about the node. Things not in this list are not important to Web Inspector.
*/ */
export type LayoutContextType = "flex"|"grid"; export type LayoutFlag = "rendered"|"flex"|"grid";
/** /**
* The mode for how layout context type changes are handled (default: <code>Observed</code>). <code>Observed</code> limits handling to those nodes already known to the frontend by other means (generally, this means the node is a visible item in the Elements tab). <code>All</code> informs the frontend of all layout context type changes and all nodes with a known layout context are sent to the frontend. * The mode for how layout context type changes are handled (default: <code>Observed</code>). <code>Observed</code> limits handling to those nodes already known to the frontend by other means (generally, this means the node is a visible item in the Elements tab). <code>All</code> informs the frontend of all layout context type changes and all nodes with a known layout context are sent to the frontend.
*/ */
@ -945,17 +945,17 @@ export module Protocol {
styleSheetId: StyleSheetId; styleSheetId: StyleSheetId;
} }
/** /**
* Called when a node's layout context type has changed. * Called when the layout of a node changes in a way that is important to Web Inspector.
*/ */
export type nodeLayoutContextTypeChangedPayload = { export type nodeLayoutFlagsChangedPayload = {
/** /**
* Identifier of the node whose layout context type changed. * Identifier of the node whose layout changed.
*/ */
nodeId: DOM.NodeId; nodeId: DOM.NodeId;
/** /**
* The new layout context type of the node. When not provided, the <code>LayoutContextType</code> of the node is not a context for which Web Inspector has specific functionality. * Relevant information about the layout of the node. When not provided, the layout of the node is not important to Web Inspector.
*/ */
layoutContextType?: LayoutContextType; layoutFlags?: string[];
} }
/** /**
@ -1283,7 +1283,7 @@ export module Protocol {
/** /**
* Backtrace that was captured when this canvas context was created. * Backtrace that was captured when this canvas context was created.
*/ */
backtrace?: Console.CallFrame[]; stackTrace?: Console.StackTrace;
} }
/** /**
* Information about a WebGL/WebGL2 shader program. * Information about a WebGL/WebGL2 shader program.
@ -1558,7 +1558,7 @@ export module Protocol {
/** /**
* JavaScript stack trace for assertions and error messages. * JavaScript stack trace for assertions and error messages.
*/ */
stackTrace?: CallFrame[]; stackTrace?: StackTrace;
/** /**
* Identifier of the network request associated with this message. * Identifier of the network request associated with this message.
*/ */
@ -1827,9 +1827,9 @@ export module Protocol {
*/ */
contentSecurityPolicyHash?: string; contentSecurityPolicyHash?: string;
/** /**
* The layout context type of the node. When not provided, the <code>LayoutContextType</code> of the node is not a context for which Web Inspector has specific functionality. * Relevant information about the layout of the node. When not provided, the layout of the node is not important to Web Inspector.
*/ */
layoutContextType?: CSS.LayoutContextType; layoutFlags?: string[];
} }
/** /**
* Relationship between data that is associated with a node and the node itself. * Relationship between data that is associated with a node and the node itself.
@ -5453,7 +5453,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
/** /**
* Initiator JavaScript stack trace, set for Script only. * Initiator JavaScript stack trace, set for Script only.
*/ */
stackTrace?: Console.CallFrame[]; stackTrace?: Console.StackTrace;
/** /**
* Initiator URL, set for Parser type only. * Initiator URL, set for Parser type only.
*/ */
@ -6062,6 +6062,17 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
} }
export type interceptRequestWithErrorReturnValue = { export type interceptRequestWithErrorReturnValue = {
} }
/**
* Emulate various network conditions (e.g. bytes per second, latency, etc.).
*/
export type setEmulatedConditionsParameters = {
/**
* Limits the bytes per second of requests if positive. Removes any limits if zero or not provided.
*/
bytesPerSecondLimit?: number;
}
export type setEmulatedConditionsReturnValue = {
}
/** /**
* Emulate offline state overriding the actual state. * Emulate offline state overriding the actual state.
*/ */
@ -7439,7 +7450,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
*/ */
export interface Frame { export interface Frame {
/** /**
* Information about an action made to the recorded object. Follows the structure [name, parameters, swizzleTypes, trace, snapshot], where name is a string, parameters is an array, swizzleTypes is an array, trace is an array, and snapshot is a data URL image of the current contents after this action. * Information about an action made to the recorded object. Follows the structure [name, parameters, swizzleTypes, stackTrace, snapshot], where name is a string, parameters is an array, swizzleTypes is an array, stackTrace is a Console.StackTrace, and snapshot is a data URL image of the current contents after this action.
*/ */
actions: any[]; actions: any[];
/** /**
@ -8801,7 +8812,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"CSS.styleSheetChanged": CSS.styleSheetChangedPayload; "CSS.styleSheetChanged": CSS.styleSheetChangedPayload;
"CSS.styleSheetAdded": CSS.styleSheetAddedPayload; "CSS.styleSheetAdded": CSS.styleSheetAddedPayload;
"CSS.styleSheetRemoved": CSS.styleSheetRemovedPayload; "CSS.styleSheetRemoved": CSS.styleSheetRemovedPayload;
"CSS.nodeLayoutContextTypeChanged": CSS.nodeLayoutContextTypeChangedPayload; "CSS.nodeLayoutFlagsChanged": CSS.nodeLayoutFlagsChangedPayload;
"Canvas.canvasAdded": Canvas.canvasAddedPayload; "Canvas.canvasAdded": Canvas.canvasAddedPayload;
"Canvas.canvasRemoved": Canvas.canvasRemovedPayload; "Canvas.canvasRemoved": Canvas.canvasRemovedPayload;
"Canvas.canvasMemoryChanged": Canvas.canvasMemoryChangedPayload; "Canvas.canvasMemoryChanged": Canvas.canvasMemoryChangedPayload;
@ -9117,6 +9128,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Network.interceptWithResponse": Network.interceptWithResponseParameters; "Network.interceptWithResponse": Network.interceptWithResponseParameters;
"Network.interceptRequestWithResponse": Network.interceptRequestWithResponseParameters; "Network.interceptRequestWithResponse": Network.interceptRequestWithResponseParameters;
"Network.interceptRequestWithError": Network.interceptRequestWithErrorParameters; "Network.interceptRequestWithError": Network.interceptRequestWithErrorParameters;
"Network.setEmulatedConditions": Network.setEmulatedConditionsParameters;
"Network.setEmulateOfflineState": Network.setEmulateOfflineStateParameters; "Network.setEmulateOfflineState": Network.setEmulateOfflineStateParameters;
"Page.enable": Page.enableParameters; "Page.enable": Page.enableParameters;
"Page.disable": Page.disableParameters; "Page.disable": Page.disableParameters;
@ -9420,6 +9432,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Network.interceptWithResponse": Network.interceptWithResponseReturnValue; "Network.interceptWithResponse": Network.interceptWithResponseReturnValue;
"Network.interceptRequestWithResponse": Network.interceptRequestWithResponseReturnValue; "Network.interceptRequestWithResponse": Network.interceptRequestWithResponseReturnValue;
"Network.interceptRequestWithError": Network.interceptRequestWithErrorReturnValue; "Network.interceptRequestWithError": Network.interceptRequestWithErrorReturnValue;
"Network.setEmulatedConditions": Network.setEmulatedConditionsReturnValue;
"Network.setEmulateOfflineState": Network.setEmulateOfflineStateReturnValue; "Network.setEmulateOfflineState": Network.setEmulateOfflineStateReturnValue;
"Page.enable": Page.enableReturnValue; "Page.enable": Page.enableReturnValue;
"Page.disable": Page.disableReturnValue; "Page.disable": Page.disableReturnValue;

View File

@ -550,7 +550,7 @@ export class WKPage implements PageDelegate {
let stack: string; let stack: string;
if (event.message.stackTrace) { if (event.message.stackTrace) {
stack = text + '\n' + event.message.stackTrace.map(callFrame => { stack = text + '\n' + event.message.stackTrace.callFrames.map(callFrame => {
return ` at ${callFrame.functionName || 'unknown'} (${callFrame.url}:${callFrame.lineNumber}:${callFrame.columnNumber})`; return ` at ${callFrame.functionName || 'unknown'} (${callFrame.url}:${callFrame.lineNumber}:${callFrame.columnNumber})`;
}).join('\n'); }).join('\n');
} else { } else {