feat(chromium): roll Chromium to r588429 (#3181)

This roll includes:
- https://crrev.com/588420 - DevTools: teach request interception to work with
  Security.setIgnoreCertificateErrors

Fixes #1159.
This commit is contained in:
Andrey Lushnikov 2018-09-04 10:04:27 +01:00 committed by GitHub
parent 464f3b4ca2
commit 32c0363ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,7 @@
"node": ">=6.4.0" "node": ">=6.4.0"
}, },
"puppeteer": { "puppeteer": {
"chromium_revision": "587164" "chromium_revision": "588429"
}, },
"scripts": { "scripts": {
"unit": "node test/test.js", "unit": "node test/test.js",

View File

@ -55,6 +55,12 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions})
const securityDetails = responses[0].securityDetails(); const securityDetails = responses[0].securityDetails();
expect(securityDetails.protocol()).toBe('TLS 1.2'); expect(securityDetails.protocol()).toBe('TLS 1.2');
}); });
it('should work with request interception', async({page, server, httpsServer}) => {
await page.setRequestInterception(true);
page.on('request', request => request.continue());
const response = await page.goto(httpsServer.EMPTY_PAGE);
expect(response.status()).toBe(200);
});
it('should work with mixed content', async({page, server, httpsServer}) => { it('should work with mixed content', async({page, server, httpsServer}) => {
httpsServer.setRoute('/mixedcontent.html', (req, res) => { httpsServer.setRoute('/mixedcontent.html', (req, res) => {
res.end(`<iframe src=${server.EMPTY_PAGE}></iframe>`); res.end(`<iframe src=${server.EMPTY_PAGE}></iframe>`);