feat(chromium): roll Chromium to r568432 (#2769)

This roll includes:
- https://crrev.com/568341 - DevTools: force-create execution contexts for mixed content iframes

Fixes #2709.
This commit is contained in:
Andrey Lushnikov 2018-06-19 13:46:08 -07:00 committed by GitHub
parent ea8ec1e567
commit dcae6bcff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -58,6 +58,11 @@ module.exports.addTests = function({testRunner, expect, PROJECT_ROOT, defaultBro
res.end(`<iframe src=${server.EMPTY_PAGE}></iframe>`);
});
await page.goto(httpsServer.PREFIX + '/mixedcontent.html', {waitUntil: 'load'});
expect(page.frames().length).toBe(2);
// Make sure blocked iframe has functional execution context
// @see https://github.com/GoogleChrome/puppeteer/issues/2709
expect(await page.frames()[0].evaluate('1 + 2')).toBe(3);
expect(await page.frames()[1].evaluate('2 + 3')).toBe(5);
});
});
};