feat(webkit): roll webkit to 1076 (#431)

This commit is contained in:
Joel Einbinder 2020-01-08 15:34:35 -08:00 committed by Yury Semikhatsky
parent b6f1b17906
commit f161a36a16
4 changed files with 6 additions and 7 deletions

View file

@ -10,7 +10,7 @@
"playwright": {
"chromium_revision": "724623",
"firefox_revision": "1009",
"webkit_revision": "1070"
"webkit_revision": "1076"
},
"scripts": {
"unit": "node test/test.js",

View file

@ -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;

View file

@ -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() {

View file

@ -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);