Closed Bug 1764831 Opened 3 years ago Closed 3 years ago

Setting image source of FileReader result for large GIFs failing since Firefox 97

Categories

(Core :: Networking, defect)

defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox-esr91 --- unaffected
firefox99 --- wontfix
firefox100 --- wontfix
firefox101 --- wontfix

People

(Reporter: svoisen, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Since Firefox 97, setting the image.src of the result of a FileReader.readAsDataURL seems to be failing for large GIF images. We are running into this issue in Adobe Creative Cloud Express in newer versions of Firefox.

For instance, using a very large GIF (28+ MB) at the following URLs fails:
Merge Videos: https://express.adobe.com/tools/merge-videos
Convert to MP4: https://express.adobe.com/tools/convert-to-mp4

Here is a jsfiddle for a reduced case: https://jsfiddle.net/gsto8caw/
We are using a GIF of size 28.5MB, where the above example fails.

This is "regressed" by bug 1721448 but I think this is an intended change. Codes need to use blob URLs instead of data URLs to do this as described in https://bugzilla.mozilla.org/show_bug.cgi?id=1757387#c8. (It's shipped by bug 1741426, so the version number.)

Component: DOM: File → Networking
Regressed by: 1721448

Set release status flags based on info from the regressing bug 1721448

:valentin, since you are the author of the regressor, bug 1721448, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(valentin.gosu)
Has Regression Range: --- → yes

(In reply to Kagami :saschanaz from comment #1)

This is "regressed" by bug 1721448 but I think this is an intended change. Codes need to use blob URLs instead of data URLs to do this as described in https://bugzilla.mozilla.org/show_bug.cgi?id=1757387#c8. (It's shipped by bug 1741426, so the version number.)

Confirming that using blobs works for our team. Thanks for your quick response on this.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
Flags: needinfo?(valentin.gosu)
Depends on: 1911300
No longer depends on: 1911300
You need to log in before you can comment on or make changes to this bug.