From 98093f0763e08e6bcaf56094fbd5eb12b562d792 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 4 Apr 2018 13:56:24 -0700 Subject: [PATCH] feat(Chromium): roll Chromium to r548153 (#2312) This roll includes: - https://crrev.com/547982 - v8 roll that includes [fixed Runtime.callFunctionOn](https://chromium.googlesource.com/v8/v8/+/1637818671c66333e3a3cf1b96a7326ba163f8b5) method The upstream fix makes it possible to run frame.waitFor* functions on pages with strict CSP. References #1229. --- package.json | 2 +- test/frame.spec.js | 2 +- test/target.spec.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 32f2160d..6968cf42 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "ws": "^3.0.0" }, "puppeteer": { - "chromium_revision": "546920" + "chromium_revision": "548153" }, "devDependencies": { "@types/debug": "0.0.30", diff --git a/test/frame.spec.js b/test/frame.spec.js index d9a32fdd..479a91a7 100644 --- a/test/frame.spec.js +++ b/test/frame.spec.js @@ -110,7 +110,7 @@ module.exports.addTests = function({testRunner, expect}) { await page.evaluate(() => window.__FOO = 'hit'); await watchdog; }); - xit('should work with strict CSP policy', async({page, server}) => { + it('should work with strict CSP policy', async({page, server}) => { server.setCSP('/empty.html', 'script-src ' + server.PREFIX); await page.goto(server.EMPTY_PAGE); const watchdog = page.waitForFunction(() => window.__FOO === 'hit', {polling: 'raf'}); diff --git a/test/target.spec.js b/test/target.spec.js index 3faf7141..fc975c6a 100644 --- a/test/target.spec.js +++ b/test/target.spec.js @@ -131,4 +131,4 @@ module.exports.addTests = function({testRunner, expect}) { await newPage.close(); }); }); -}; \ No newline at end of file +};