diff --git a/browsers.json b/browsers.json index b64ade4e15..c239b90ac4 100644 --- a/browsers.json +++ b/browsers.json @@ -13,7 +13,7 @@ }, { "name": "webkit", - "revision": "1446", + "revision": "1457", "installByDefault": true, "revisionOverrides": { "mac10.14": "1443" diff --git a/src/server/webkit/protocol.ts b/src/server/webkit/protocol.ts index d92876e5fc..84a48a11db 100644 --- a/src/server/webkit/protocol.ts +++ b/src/server/webkit/protocol.ts @@ -6242,6 +6242,12 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the */ found?: boolean; } + export interface Insets { + top: number; + right: number; + bottom: number; + left: number; + } export type domContentEventFiredPayload = { timestamp: number; @@ -6804,6 +6810,14 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the } export type setOrientationOverrideReturnValue = { } + export type setVisibleContentRectsParameters = { + unobscuredContentRect?: DOM.Rect; + contentInsets?: Insets; + obscuredInsets?: Insets; + unobscuredInsets?: Insets; + } + export type setVisibleContentRectsReturnValue = { + } } export module Playwright { @@ -8842,6 +8856,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "Page.setBypassCSP": Page.setBypassCSPParameters; "Page.crash": Page.crashParameters; "Page.setOrientationOverride": Page.setOrientationOverrideParameters; + "Page.setVisibleContentRects": Page.setVisibleContentRectsParameters; "Playwright.enable": Playwright.enableParameters; "Playwright.disable": Playwright.disableParameters; "Playwright.close": Playwright.closeParameters; @@ -9130,6 +9145,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "Page.setBypassCSP": Page.setBypassCSPReturnValue; "Page.crash": Page.crashReturnValue; "Page.setOrientationOverride": Page.setOrientationOverrideReturnValue; + "Page.setVisibleContentRects": Page.setVisibleContentRectsReturnValue; "Playwright.enable": Playwright.enableReturnValue; "Playwright.disable": Playwright.disableReturnValue; "Playwright.close": Playwright.closeReturnValue; diff --git a/test/page-goto.spec.ts b/test/page-goto.spec.ts index e4b26875d2..3bb32ef8c5 100644 --- a/test/page-goto.spec.ts +++ b/test/page-goto.spec.ts @@ -500,16 +500,14 @@ it('should not throw unhandled rejections on invalid url', async ({page, server} expect(e.toString()).toContain('Panel Title'); }); -it('should not crash when RTCPeerConnection is used',(test, { browserName }) => { - test.fail(browserName === 'webkit'); -}, async ({ page, server }) => { +it('should not crash when RTCPeerConnection is used', async ({ page, server }) => { server.setRoute('/rtc.html', (_, res) => { res.end(`
@@ -519,7 +517,8 @@ it('should not crash when RTCPeerConnection is used',(test, { browserName }) => }); await page.goto(server.PREFIX + '/rtc.html'); await page.evaluate(() => { - new window.RTCPeerConnection({ + // RTCPeerConnection is not present on WebKit Linux + window.RTCPeerConnection && new window.RTCPeerConnection({ iceServers: [] }); });