feat(webkit): roll to r1673 (#15276)
|
|
@ -33,7 +33,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "webkit",
|
"name": "webkit",
|
||||||
"revision": "1668",
|
"revision": "1673",
|
||||||
"installByDefault": true,
|
"installByDefault": true,
|
||||||
"revisionOverrides": {
|
"revisionOverrides": {
|
||||||
"mac10.14": "1446",
|
"mac10.14": "1446",
|
||||||
|
|
|
||||||
|
|
@ -537,6 +537,10 @@ export module Protocol {
|
||||||
* Pseudo-style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>).
|
* Pseudo-style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>).
|
||||||
*/
|
*/
|
||||||
export type PseudoId = "first-line"|"first-letter"|"highlight"|"marker"|"before"|"after"|"selection"|"backdrop"|"scrollbar"|"scrollbar-thumb"|"scrollbar-button"|"scrollbar-track"|"scrollbar-track-piece"|"scrollbar-corner"|"resizer";
|
export type PseudoId = "first-line"|"first-letter"|"highlight"|"marker"|"before"|"after"|"selection"|"backdrop"|"scrollbar"|"scrollbar-thumb"|"scrollbar-button"|"scrollbar-track"|"scrollbar-track-piece"|"scrollbar-corner"|"resizer";
|
||||||
|
/**
|
||||||
|
* Pseudo-style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>).
|
||||||
|
*/
|
||||||
|
export type ForceablePseudoClass = "active"|"focus"|"focus-visible"|"focus-within"|"hover"|"target"|"visited";
|
||||||
/**
|
/**
|
||||||
* CSS rule collection for a single pseudo style.
|
* CSS rule collection for a single pseudo style.
|
||||||
*/
|
*/
|
||||||
|
|
@ -1167,7 +1171,7 @@ export module Protocol {
|
||||||
/**
|
/**
|
||||||
* Element pseudo classes to force when computing the element's style.
|
* Element pseudo classes to force when computing the element's style.
|
||||||
*/
|
*/
|
||||||
forcedPseudoClasses: "active"|"focus"|"hover"|"visited"[];
|
forcedPseudoClasses: ForceablePseudoClass[];
|
||||||
}
|
}
|
||||||
export type forcePseudoStateReturnValue = {
|
export type forcePseudoStateReturnValue = {
|
||||||
}
|
}
|
||||||
|
|
@ -5182,6 +5186,10 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
|
||||||
* Number of seconds since epoch.
|
* Number of seconds since epoch.
|
||||||
*/
|
*/
|
||||||
export type Walltime = number;
|
export type Walltime = number;
|
||||||
|
/**
|
||||||
|
* Controls how much referrer information is sent with the request
|
||||||
|
*/
|
||||||
|
export type ReferrerPolicy = "empty-string"|"no-referrer"|"no-referrer-when-downgrade"|"same-origin"|"origin"|"strict-origin"|"origin-when-cross-origin"|"strict-origin-when-cross-origin"|"unsafe-url";
|
||||||
/**
|
/**
|
||||||
* Request / response headers as keys / values of JSON object.
|
* Request / response headers as keys / values of JSON object.
|
||||||
*/
|
*/
|
||||||
|
|
@ -5259,6 +5267,14 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
|
||||||
* HTTP POST request data.
|
* HTTP POST request data.
|
||||||
*/
|
*/
|
||||||
postData?: string;
|
postData?: string;
|
||||||
|
/**
|
||||||
|
* The level of included referrer information.
|
||||||
|
*/
|
||||||
|
referrerPolicy?: ReferrerPolicy;
|
||||||
|
/**
|
||||||
|
* The base64 cryptographic hash of the resource.
|
||||||
|
*/
|
||||||
|
integrity?: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* HTTP response data.
|
* HTTP response data.
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 632 B |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 632 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 636 B |
|
|
@ -26,6 +26,10 @@ it('should work', async ({ page, server, browserName, headless, isLinux }) => {
|
||||||
await page.goto(server.PREFIX + '/grid.html');
|
await page.goto(server.PREFIX + '/grid.html');
|
||||||
const elementHandle = await page.$('.box:nth-of-type(13)');
|
const elementHandle = await page.$('.box:nth-of-type(13)');
|
||||||
const box = await elementHandle.boundingBox();
|
const box = await elementHandle.boundingBox();
|
||||||
|
if (browserName === 'webkit') {
|
||||||
|
// Upstream regression: https://bugs.webkit.org/show_bug.cgi?id=242079
|
||||||
|
box.y = Math.ceil(box.y);
|
||||||
|
}
|
||||||
expect(box).toEqual({ x: 100, y: 50, width: 50, height: 50 });
|
expect(box).toEqual({ x: 100, y: 50, width: 50, height: 50 });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 636 B |
|
|
@ -114,6 +114,10 @@ it('should return bounding box', async ({ page, server, browserName, headless, i
|
||||||
await page.goto(server.PREFIX + '/grid.html');
|
await page.goto(server.PREFIX + '/grid.html');
|
||||||
const element = page.locator('.box:nth-of-type(13)');
|
const element = page.locator('.box:nth-of-type(13)');
|
||||||
const box = await element.boundingBox();
|
const box = await element.boundingBox();
|
||||||
|
if (browserName === 'webkit') {
|
||||||
|
// Upstream regression: https://bugs.webkit.org/show_bug.cgi?id=242079
|
||||||
|
box.y = Math.ceil(box.y);
|
||||||
|
}
|
||||||
expect(box).toEqual({ x: 100, y: 50, width: 50, height: 50 });
|
expect(box).toEqual({ x: 100, y: 50, width: 50, height: 50 });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 636 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 4 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |