Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chromium): roll Chromium to r737027 #5644

Merged
merged 5 commits into from Apr 16, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"node": ">=10.18.1"
},
"puppeteer": {
"chromium_revision": "722234",
"chromium_revision": "737027",
"firefox_revision": "latest"
},
"scripts": {
Expand Down
36 changes: 23 additions & 13 deletions test/cookies.spec.js
Expand Up @@ -41,13 +41,14 @@ describe('Cookie specs', () => {
size: 16,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
}]);
});
it('should properly report httpOnly cookie', async() => {
const {page, server} = getTestState();
server.setRoute('/empty.html', (req, res) => {
res.setHeader('Set-Cookie', ';HttpOnly; Path=/');
res.setHeader('Set-Cookie', 'a=b; HttpOnly; Path=/');
res.end();
});
await page.goto(server.EMPTY_PAGE);
Expand All @@ -58,7 +59,7 @@ describe('Cookie specs', () => {
it('should properly report "Strict" sameSite cookie', async() => {
const {page, server} = getTestState();
server.setRoute('/empty.html', (req, res) => {
res.setHeader('Set-Cookie', ';SameSite=Strict');
res.setHeader('Set-Cookie', 'a=b; SameSite=Strict');
res.end();
});
await page.goto(server.EMPTY_PAGE);
Expand All @@ -69,7 +70,7 @@ describe('Cookie specs', () => {
it('should properly report "Lax" sameSite cookie', async() => {
const {page, server} = getTestState();
server.setRoute('/empty.html', (req, res) => {
res.setHeader('Set-Cookie', ';SameSite=Lax');
res.setHeader('Set-Cookie', 'a=b; SameSite=Lax');
res.end();
});
await page.goto(server.EMPTY_PAGE);
Expand All @@ -96,7 +97,8 @@ describe('Cookie specs', () => {
size: 12,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
mathiasbynens marked this conversation as resolved.
Show resolved Hide resolved
},
{
name: 'username',
Expand All @@ -107,7 +109,8 @@ describe('Cookie specs', () => {
size: 16,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
},
]);
});
Expand Down Expand Up @@ -137,7 +140,8 @@ describe('Cookie specs', () => {
size: 11,
httpOnly: false,
secure: true,
session: true
session: true,
priority: 'Medium',
}, {
name: 'doggo',
value: 'woofs',
Expand All @@ -147,7 +151,8 @@ describe('Cookie specs', () => {
size: 10,
httpOnly: false,
secure: true,
session: true
session: true,
priority: 'Medium',
}]);
});
});
Expand Down Expand Up @@ -233,7 +238,8 @@ describe('Cookie specs', () => {
size: 14,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
}]);
});
itFailsFirefox('should set a cookie with a path', async() => {
Expand All @@ -254,7 +260,8 @@ describe('Cookie specs', () => {
size: 14,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
}]);
expect(await page.evaluate('document.cookie')).toBe('gridcookie=GRID');
await page.goto(server.EMPTY_PAGE);
Expand Down Expand Up @@ -350,7 +357,8 @@ describe('Cookie specs', () => {
size: 18,
httpOnly: false,
secure: true,
session: true
session: true,
priority: 'Medium',
}]);
});
itFailsFirefox('should set cookies from a frame', async() => {
Expand Down Expand Up @@ -380,7 +388,8 @@ describe('Cookie specs', () => {
size: 20,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
}]);

expect(await page.cookies(server.CROSS_PROCESS_PREFIX)).toEqual([{
Expand All @@ -392,7 +401,8 @@ describe('Cookie specs', () => {
size: 15,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
}]);
});
});
Expand Down
9 changes: 6 additions & 3 deletions test/defaultbrowsercontext.spec.js
Expand Up @@ -35,7 +35,8 @@ describe('DefaultBrowserContext', function() {
size: 16,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
}]);
});
itFailsFirefox('page.setCookie() should work', async() => {
Expand All @@ -56,7 +57,8 @@ describe('DefaultBrowserContext', function() {
size: 16,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
}]);
});
itFailsFirefox('page.deleteCookie() should work', async() => {
Expand All @@ -82,7 +84,8 @@ describe('DefaultBrowserContext', function() {
size: 8,
httpOnly: false,
secure: false,
session: true
session: true,
priority: 'Medium',
}]);
});
});