mirror of
https://github.com/microsoft/playwright.git
synced 2024-09-11 20:37:54 +03:00
feat(webkit): roll to r2031 (#31272)
This commit is contained in:
parent
f115ba85d9
commit
6a7bfe63a1
@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"name": "webkit",
|
||||
"revision": "2029",
|
||||
"revision": "2031",
|
||||
"installByDefault": true,
|
||||
"revisionOverrides": {
|
||||
"mac10.14": "1446",
|
||||
|
@ -716,7 +716,10 @@ export class WKPage implements PageDelegate {
|
||||
const angle = viewportSize.width > viewportSize.height ? 90 : 0;
|
||||
// Special handling for macOS 12.
|
||||
const useLegacySetOrientationOverrideMethod = os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21;
|
||||
promises.push(this._pageProxySession.send(useLegacySetOrientationOverrideMethod ? 'Page.setOrientationOverride' as any : 'Emulation.setOrientationOverride', { angle }));
|
||||
if (useLegacySetOrientationOverrideMethod)
|
||||
promises.push(this._session.send('Page.setOrientationOverride' as any, { angle }));
|
||||
else
|
||||
promises.push(this._pageProxySession.send('Emulation.setOrientationOverride', { angle }));
|
||||
}
|
||||
await Promise.all(promises);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user