puppeteer: Blob URLs broken on Chrome 71 in headless mode
Steps to reproduce
Tell us about your environment:
- Puppeteer version: 1.9.0
- Platform / OS version: Ubuntu x64
- Node.js version: v10.12.0
- Chrome version: 71.0.3578.20 (beta)
What steps will reproduce the problem?
The smallest example I was able to make:
await page.evaluate(() => {
const url = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='
return window.fetch(url)
.then(res => res.blob())
.then(blob => URL.createObjectURL(blob))
.then(url => window.fetch(url)) // crashes here
.then(res => res.blob())
})
What is the expected result? On Chrome 70 or Chrome 71 headfull it works fine
What happens instead?
On Chrome 71 in headless mode I get: Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 23
- Comments: 30 (6 by maintainers)
Commits related to this issue
- 🐛 bug: remote debugging for headless Chrome — committed to piktur/vue-cli-plugin-e2e-webdriverio by jamesdiacono 6 years ago
- Running Karma tests only if Chrome version != 71 Headless Chrome version 71 is known to have an issue that seems to prevent jsTree-related tests from running: https://github.com/GoogleChrome/puppetee... — committed to google/grr by mbushkov 5 years ago
- Run browser tests in firefox Common support for running tests (unit & integration) in browser using mocha-webdriver-runner. Initial support for firefox headless, with suspended support for headless C... — committed to heremaps/harp.gl by deleted user 5 years ago
- [Chrome]: Fix fetch() with blob URL (#1311) — committed to SthephanShinkufag/Dollchan-Extension-Tools by SthephanShinkufag 5 years ago
- Run browser tests in firefox Common support for running tests (unit & integration) in browser using mocha-webdriver-runner. Initial support for firefox headless, with suspended support for headless C... — committed to heremaps/harp.gl by deleted user 5 years ago
- Run browser tests in firefox Common support for running tests (unit & integration) in browser using mocha-webdriver-runner. Initial support for firefox headless, with suspended support for headless C... — committed to heremaps/harp.gl by deleted user 5 years ago
- Run browser tests in firefox Common support for running tests (unit & integration) in browser using mocha-webdriver-runner. Initial support for firefox headless, with suspended support for headless C... — committed to heremaps/harp.gl by deleted user 5 years ago
- only use only context in chrome >= 72 because of a bug loading blobs in Chrome 71: https://github.com/GoogleChrome/puppeteer/issues/3463 — committed to Tonejs/Tone.js by tambien 5 years ago
- Run browser tests in firefox Common support for running tests (unit & integration) in browser using mocha-webdriver-runner. Initial support for firefox headless, with suspended support for headless C... — committed to heremaps/harp.gl by deleted user 5 years ago
This is a regression in our network stack in headless; filed upstream - https://crbug.com/902918
Thanks for reporting this!
I am also having problems with this - No problems after updating to Chrome 72 beta though
Also seeing this on 1.10.0 and 1.9.0, works in 1.8.0.
What is your OS? For me it does not work, running at Linux
Works on 72