feat(webkit): roll webkit to 1076 (#431)
This commit is contained in:
parent
b6f1b17906
commit
f161a36a16
|
|
@ -10,7 +10,7 @@
|
|||
"playwright": {
|
||||
"chromium_revision": "724623",
|
||||
"firefox_revision": "1009",
|
||||
"webkit_revision": "1070"
|
||||
"webkit_revision": "1076"
|
||||
},
|
||||
"scripts": {
|
||||
"unit": "node test/test.js",
|
||||
|
|
|
|||
|
|
@ -120,8 +120,7 @@ export class WKPlaywright {
|
|||
webkitExecutable = executablePath;
|
||||
}
|
||||
webkitArguments.push('--inspector-pipe');
|
||||
// Headless options is only implemented on Mac at the moment.
|
||||
if (process.platform === 'darwin' && options.headless !== false)
|
||||
if (options.headless !== false)
|
||||
webkitArguments.push('--headless');
|
||||
|
||||
let connectOptions: WKConnectOptions | undefined = undefined;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export class WKNetworkManager {
|
|||
const promises = [];
|
||||
promises.push(session.send('Network.enable'));
|
||||
if (interceptNetwork)
|
||||
promises.push(session.send('Network.setInterceptionEnabled', { enabled: true }));
|
||||
promises.push(session.send('Network.setInterceptionEnabled', { enabled: true, interceptRequests: true }));
|
||||
if (offlineMode)
|
||||
promises.push(session.send('Network.setEmulateOfflineState', { offline: true }));
|
||||
await Promise.all(promises);
|
||||
|
|
@ -73,7 +73,7 @@ export class WKNetworkManager {
|
|||
}
|
||||
|
||||
async setRequestInterception(enabled: boolean): Promise<void> {
|
||||
await this._session.send('Network.setInterceptionEnabled', { enabled });
|
||||
await this._session.send('Network.setInterceptionEnabled', { enabled, interceptRequests: enabled });
|
||||
}
|
||||
|
||||
async _updateProtocolCacheDisabled() {
|
||||
|
|
|
|||
|
|
@ -15,14 +15,14 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
module.exports.describe = function ({ testRunner, expect, FFOX }) {
|
||||
module.exports.describe = function ({ testRunner, expect, FFOX, WEBKIT }) {
|
||||
const {describe, xdescribe, fdescribe} = testRunner;
|
||||
const {it, fit, xit, dit} = testRunner;
|
||||
const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;
|
||||
|
||||
// FIXME: not supported in WebKit (as well as Emulation domain in general).
|
||||
// It was removed from WebKit in https://webkit.org/b/126630
|
||||
describe.skip(FFOX)('Overrides.setGeolocation', function() {
|
||||
describe.skip(FFOX || WEBKIT)('Overrides.setGeolocation', function() {
|
||||
it('should work', async({page, server, context}) => {
|
||||
await context.setPermissions(server.PREFIX, ['geolocation']);
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue