New issue
Advanced search Search tips

Issue 902918 link

Starred by 13 users

Issue metadata

Status: WontFix
Owner:
Closed: Dec 20
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Regression: blob URLs do not work in Headless

Project Member Reported by lushnikov@google.com, Nov 7

Issue description

It's impossible to fetch blob URL in headless.

Downstream bug: https://github.com/GoogleChrome/puppeteer/issues/3463
Puppeteer v1.10.0 repro script:

const puppeteer = require('puppeteer');

(async() => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.evaluate(async () => {
    const url = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='
    const response = await window.fetch(url);
    const blob = await response.blob();
    const blobURL = URL.createObjectURL(blob);
    // Throws here:
    const response2 = await window.fetch(blobURL);
  });
  await browser.close();
})();

 
Description: Show this description
Any workaround on this?
Status: WontFix (was: Assigned)
Just tried and it works fine for me. Feel free to re-open if there's another repro.
Still having it here. We're asserting a canvas displaying a pdf-file. The canvas is fine if the pdf is loaded from a regular url, but fails as soon as we change it to load blob url.

Comment 6 by matt.am...@gmail.com, Jan 18 (4 days ago)

We are also seeing this issue as part of CesiumJS unit tests.  All tests that involve loading blob urls have been failing since Chrome 71: https://github.com/AnalyticalGraphicsInc/cesium/issues/7388

Sign in to add a comment