Skip to content

Commit 97bc385

Browse files
yury-sdgozman
authored andcommitted
cherry-pick(#38995): chore(webkit): disable frame sessions on fronzen builds
1 parent ad625fe commit 97bc385

File tree

1 file changed

+2
-1
lines changed
  • packages/playwright-core/src/server/webkit

1 file changed

+2
-1
lines changed

packages/playwright-core/src/server/webkit/wkPage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { WKInterceptableRequest, WKRouteImpl } from './wkInterceptableRequest';
3434
import { WKProvisionalPage } from './wkProvisionalPage';
3535
import { WKWorkers } from './wkWorkers';
3636
import { translatePathToWSL } from './webkit';
37+
import { registry } from '../registry';
3738

3839
import type { Protocol } from './protocol';
3940
import type { WKBrowserContext } from './wkBrowser';
@@ -46,7 +47,7 @@ import type * as types from '../types';
4647

4748
const UTILITY_WORLD_NAME = '__playwright_utility_world__';
4849

49-
const enableFrameSessions = !process.env.WK_DISABLE_FRAME_SESSIONS;
50+
const enableFrameSessions = !process.env.WK_DISABLE_FRAME_SESSIONS && parseInt(registry.findExecutable('webkit').revision!, 10) >= 2245;
5051

5152
export class WKPage implements PageDelegate {
5253
readonly rawMouse: RawMouseImpl;

0 commit comments

Comments
 (0)