feat(Chromium): Roll chromium to r511134 (#1153)

This roll includes:
- crrev.com/510651 that changes request interception methods in protocol
- s/Page.setRequestInterceptionEnabled/Page.setRequestInterception

BREAKING CHANGE

Page.setRequestInterceptionEnabled is renamed into
Page.setRequestInterception.
This commit is contained in:
Andrey Lushnikov
2017-10-24 14:45:03 -07:00
committed by GitHub
parent 80ee469429
commit ce005d480c
6 changed files with 41 additions and 33 deletions

View File

@@ -22,7 +22,7 @@ const puppeteer = require('puppeteer');
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setRequestInterceptionEnabled(true);
await page.setRequestInterception(true);
page.on('request', request => {
if (request.resourceType === 'image')
request.abort();