feat(auth): roll webkit to 1063, make auth work for headful (#387)

This commit is contained in:
Pavel Feldman 2020-01-06 16:31:38 -08:00 committed by Yury Semikhatsky
parent 0cc7277053
commit 15ee47c7b2
3 changed files with 4 additions and 2 deletions

View file

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

View file

@ -55,6 +55,8 @@ export class WKNetworkManager {
promises.push(session.send('Network.setEmulateOfflineState', { offline: true }));
if (credentials)
promises.push(session.send('Emulation.setAuthCredentials', { ...credentials }));
else
promises.push(session.send('Emulation.setAuthCredentials', { username: '', password: '' }));
await Promise.all(promises);
}

View file

@ -476,7 +476,7 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, p
});
});
describe.skip(FFOX || (WEBKIT && process.platform === 'linux'))('Interception.authenticate', function() {
describe.skip(FFOX)('Interception.authenticate', function() {
it('should work', async({page, server}) => {
server.setAuth('/empty.html', 'user', 'pass');
let response = await page.goto(server.EMPTY_PAGE);