Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
feat(webkit): roll webkit to 1124 (#736)
Pavel Feldmance7219870b53
diff --git a/package.json b/package.jsonindex 063a25a97c..864138f775 100644--- a/package.json+++ b/package.json@@ -10,7 +10,7 @@"playwright": {"chromium_revision": "733125","firefox_revision": "1020",- "webkit_revision": "1120"+ "webkit_revision": "1124"},"scripts": {"ctest": "cross-env BROWSER=chromium node test/test.js",diff --git a/src/webkit/wkPage.ts b/src/webkit/wkPage.tsindex df7bb43841..5ce6188e33 100644--- a/src/webkit/wkPage.ts+++ b/src/webkit/wkPage.ts@@ -21,7 +21,7 @@ import * as dom from '../dom';import * as network from '../network';import { WKSession } from './wkConnection';import { Events } from '../events';-import { WKExecutionContext, EVALUATION_SCRIPT_URL } from './wkExecutionContext';+import { WKExecutionContext } from './wkExecutionContext';import { WKInterceptableRequest } from './wkInterceptableRequest';import { WKWorkers } from './wkWorkers';import { Page, PageDelegate, Coverage } from '../page';@@ -101,7 +101,7 @@ export class WKPage implements PageDelegate {session.send('Page.getResourceTree').then(resourceTreeHandler),// Resource tree should be received before first execution context.session.send('Runtime.enable'),- session.send('Page.createIsolatedWorld', { name: UTILITY_WORLD_NAME, source: `//# sourceURL=${EVALUATION_SCRIPT_URL}` }),+ session.send('Page.createUserWorld', { name: UTILITY_WORLD_NAME }).catch(_ => {}), // Worlds are per-processsession.send('Console.enable'),session.send('Page.setInterceptFileChooserDialog', { enabled: true }),session.send('Network.enable'),@@ -295,11 +295,11 @@ export class WKPage implements PageDelegate {return;const delegate = new WKExecutionContext(this._session, contextPayload.id);const context = new dom.FrameExecutionContext(delegate, frame);- if (contextPayload.isPageContext)+ if (contextPayload.type === 'normal')frame._contextCreated('main', context);- else if (contextPayload.name === UTILITY_WORLD_NAME)+ else if (contextPayload.type === 'user' && contextPayload.name === UTILITY_WORLD_NAME)frame._contextCreated('utility', context);- if (contextPayload.isPageContext && frame === this._page.mainFrame())+ if (contextPayload.type === 'normal' && frame === this._page.mainFrame())this._mainFrameContextId = contextPayload.id;this._contextIdToContext.set(contextPayload.id, context);}