Skip to content

Commit 0e0a679

Browse files
authored
feat(chromium): roll Chromium to r682225 (#4844)
This roll includes: - https://crrev.com/681997 - Turn on default SiteInstance by default. The SiteInstance by default was breaking "devtools: true" option, so there's a new feature we disable now by default. This keeps pressuring us towards OOPIF support since that's an inevitable future.
1 parent ff6d2a3 commit 0e0a679

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

lib/Launcher.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ const DEFAULT_ARGS = [
4646
'--disable-default-apps',
4747
'--disable-dev-shm-usage',
4848
'--disable-extensions',
49-
// TODO: Support OOOPIF. @see https://github.com/GoogleChrome/puppeteer/issues/2548
5049
// BlinkGenPropertyTrees disabled due to crbug.com/937609
51-
'--disable-features=site-per-process,TranslateUI,BlinkGenPropertyTrees',
50+
'--disable-features=TranslateUI,BlinkGenPropertyTrees',
5251
'--disable-hang-monitor',
5352
'--disable-ipc-flooding-protection',
5453
'--disable-popup-blocking',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"node": ">=6.4.0"
99
},
1010
"puppeteer": {
11-
"chromium_revision": "681777"
11+
"chromium_revision": "682225"
1212
},
1313
"scripts": {
1414
"unit": "node test/test.js",

test/headful.spec.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ module.exports.addTests = function({testRunner, expect, puppeteer, defaultBrowse
8686
await rmAsync(userDataDir).catch(e => {});
8787
expect(cookie).toBe('foo=true');
8888
});
89-
it('OOPIF: should report google.com frame', async({server}) => {
89+
// TODO: Support OOOPIF. @see https://github.com/GoogleChrome/puppeteer/issues/2548
90+
xit('OOPIF: should report google.com frame', async({server}) => {
9091
// https://google.com is isolated by default in Chromium embedder.
9192
const browser = await puppeteer.launch(headfulOptions);
9293
const page = await browser.newPage();
@@ -116,6 +117,15 @@ module.exports.addTests = function({testRunner, expect, puppeteer, defaultBrowse
116117
await page.click('body');
117118
await browser.close();
118119
});
120+
it('should open devtools when "devtools: true" option is given', async({server}) => {
121+
const browser = await puppeteer.launch({...headfulOptions, devtools: true});
122+
const context = await browser.createIncognitoBrowserContext();
123+
await Promise.all([
124+
context.newPage(),
125+
context.waitForTarget(target => target.url().startsWith('devtools://')),
126+
]);
127+
await browser.close();
128+
});
119129
});
120130

121131
describe('Page.bringToFront', function() {

0 commit comments

Comments
 (0)