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

Most upvoted comments

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.

Works on 72

What is your OS? For me it does not work, running at Linux

Works on 72