Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

feat(webkit): roll to r2326 (#41670)

microsoft-playwright-automation[bot]2d9df0725ac9
diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.json
index a63a6f5baf..610ccb4f7b 100644
--- a/packages/playwright-core/browsers.json
+++ b/packages/playwright-core/browsers.json
@@ -45,7 +45,7 @@
},
{
"name": "webkit",
- "revision": "2325",
+ "revision": "2326",
"installByDefault": true,
"revisionOverrides": {
"mac14": "2251",
diff --git a/packages/playwright-core/src/server/webkit/protocol.d.ts b/packages/playwright-core/src/server/webkit/protocol.d.ts
index 33a8e5dcc0..744dfcb951 100644
--- a/packages/playwright-core/src/server/webkit/protocol.d.ts
+++ b/packages/playwright-core/src/server/webkit/protocol.d.ts
@@ -6372,7 +6372,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
/**
* List of settings able to be overridden by WebInspector.
*/
- export type Setting = "PrivateClickMeasurementDebugModeEnabled"|"AuthorAndUserStylesEnabled"|"ICECandidateFilteringEnabled"|"ITPDebugModeEnabled"|"ImagesEnabled"|"MediaCaptureRequiresSecureConnection"|"MockCaptureDevicesEnabled"|"NeedsSiteSpecificQuirks"|"ScriptEnabled"|"ShowDebugBorders"|"ShowRepaintCounter"|"WebSecurityEnabled"|"DeviceOrientationEventEnabled"|"SpeechRecognitionEnabled"|"PointerLockEnabled"|"NotificationsEnabled"|"FullScreenEnabled"|"InputTypeMonthEnabled"|"InputTypeWeekEnabled"|"FixedBackgroundsPaintRelativeToDocument";
+ export type Setting = "PrivateClickMeasurementDebugModeEnabled"|"AuthorAndUserStylesEnabled"|"ICECandidateFilteringEnabled"|"ITPDebugModeEnabled"|"ImagesEnabled"|"MediaCaptureRequiresSecureConnection"|"MockCaptureDevicesEnabled"|"NeedsSiteSpecificQuirks"|"ScriptEnabled"|"ShowDebugBorders"|"ShowRepaintCounter"|"WebSecurityEnabled"|"DeviceOrientationEventEnabled"|"SpeechRecognitionEnabled"|"PointerLockEnabled"|"NotificationsEnabled"|"FullScreenEnabled"|"InputTypeMonthEnabled"|"InputTypeWeekEnabled"|"FixedBackgroundsPaintRelativeToDocument"|"PushAPIEnabled";
/**
* A user preference that can be overriden by Web Inspector, like an accessibility preference.
*/
diff --git a/tests/library/browsercontext-cookies-third-party.spec.ts b/tests/library/browsercontext-cookies-third-party.spec.ts
index 7cc5f267b4..86288e7a7b 100644
--- a/tests/library/browsercontext-cookies-third-party.spec.ts
+++ b/tests/library/browsercontext-cookies-third-party.spec.ts
@@ -382,9 +382,13 @@ test(`add 'Partitioned;' cookie via API`, async ({ page, context, browserName, h
{
// Check top-level cookie first.
await page.goto(urls.read_origin1);
- const expectedTopLevel = (browserName === 'webkit' && !webkitPartitions) || (browserName === 'firefox' && !isBidi) ?
- 'Received cookie: frame-non-partitioned=value; frame-partitioned=value; top-level-non-partitioned=value; top-level-partitioned=value' :
- 'Received cookie: frame-non-partitioned=value; top-level-non-partitioned=value; top-level-partitioned=value';
+ let expectedTopLevel: string;
+ if (browserName === 'webkit' && isMac && !webkitPartitions)
+ expectedTopLevel = 'Received cookie: frame-non-partitioned=value; top-level-non-partitioned=value';
+ else if ((browserName === 'webkit' && !webkitPartitions) || (browserName === 'firefox' && !isBidi))
+ expectedTopLevel = 'Received cookie: frame-non-partitioned=value; frame-partitioned=value; top-level-non-partitioned=value; top-level-partitioned=value';
+ else
+ expectedTopLevel = 'Received cookie: frame-non-partitioned=value; top-level-non-partitioned=value; top-level-partitioned=value';
expect.soft(await page.locator('body').textContent()).toBe(expectedTopLevel);
}
{
@@ -409,6 +413,8 @@ test(`add 'Partitioned;' cookie via API`, async ({ page, context, browserName, h
let expectedThirdParty = 'Received cookie: ';
if (webkitPartitions)
expectedThirdParty += 'frame-non-partitioned=value; top-level-non-partitioned=value; top-level-partitioned=value';
+ else if (browserName === 'webkit' && isMac)
+ expectedThirdParty += 'frame-non-partitioned=value; top-level-non-partitioned=value';
else if (browserName === 'webkit' || (browserName === 'firefox' && !isBidi))
expectedThirdParty += 'frame-non-partitioned=value; frame-partitioned=value; top-level-non-partitioned=value; top-level-partitioned=value';
else if (browserName === 'firefox' && isBidi)
diff --git a/tests/library/modernizr.spec.ts b/tests/library/modernizr.spec.ts
index 303833fb9c..9a3bdc65d0 100644
--- a/tests/library/modernizr.spec.ts
+++ b/tests/library/modernizr.spec.ts
@@ -44,8 +44,6 @@ it('Safari Desktop', async ({ browser, browserName, platform, httpsServer, chann
expected.pushmanager = false;
expected.devicemotion2 = false;
- expected.devicemotion = false;
- expected.deviceorientation = false;
expected.deviceorientation3 = false;
delete expected.webglextensions;