Regression: blob URLs do not work in Headless |
||
Issue descriptionIt'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(); })();
,
Nov 8
Any workaround on this?
,
Dec 20
Just tried and it works fine for me. Feel free to re-open if there's another repro.
,
Jan 4
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.
,
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 |
||
Comment 1 by lushnikov@google.com
, Nov 7