Closed Bug 1693886 Opened 4 years ago Closed 4 years ago

data uri doesn't work in var() references if they go over 1mb

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 85
defect

Tracking

()

VERIFIED FIXED
88 Branch
Tracking Status
firefox-esr78 --- wontfix
firefox85 --- wontfix
firefox86 --- wontfix
firefox87 --- verified
firefox88 --- verified

People

(Reporter: Steve.Olson05, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression, regressionwindow-wanted)

Attachments

(2 files)

Attached file ff_base64url.pdf

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:85.0) Gecko/20100101 Firefox/85.0

Steps to reproduce:

The background image at https://stolson.com works fine on Chrome, Safari, and mobile Firefox as it uses a base64 encoded image URL passed as a CSS variable.

Could be related to this Chromium issue: https://bugs.chromium.org/p/chromium/issues/detail?id=61816

Actual results:

Firefox does not load the image (sorry if this isn't enough detail) when passed as a css variable, ex. --imageUrl:url(data:image/jpeg;base64/9j/4AA...)

Expected results:

Load the image.

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → PDF Viewer
Component: PDF Viewer → Untriaged

Reproduced on MacOS 10.15 on all latest Firefox versions. This could also be an old regression as it worked back in November 2018, pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=f2915d3ee5f8705676e4bb643eab54b62246f25f&tochange=6453222232be364fb8ce3fd29b6cbcd480e5f2e3

Unfortunately, mozregression wouldn't go further than that... Setting up regressionwindows-wanted flag in case someone could continue from where I got blocked.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Untriaged → CSS Parsing and Computation
Ever confirmed: true
Product: Firefox → Core

We have a 1mb custom property size limit (see bug 1510862). I guess this page is going over that limit somehow. data: uris are not relative URIs btw :)

So... I guess we could increase this limit somewhat. Chrome has also implemented a limit for this so I wonder how different it is.

Regressed by: 1510862
Summary: Relative urls don't work in var() references → data uri doesn't work in var() references if they go over 1mb
Has Regression Range: --- → yes
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/09045a640658 Increase custom property size limit a bit. r=xidorn
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Comment on attachment 9204592 [details]
Bug 1693886 - Increase custom property size limit a bit. r=#style

Beta/Release Uplift Approval Request

  • User impact if declined: data uris of over a megabyte won't work in custom properties.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Just increase a limit to allow larger CSS variables.
  • String changes made/needed: none
Flags: needinfo?(emilio)
Attachment #9204592 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9204592 [details]
Bug 1693886 - Increase custom property size limit a bit. r=#style

Approved for 87.0b4.

Attachment #9204592 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Reproduced the issue on Firefox Nightly 87.0a1 (2021-02-19) under macOS 10.15.7 by using the STR from Comment 0.

The issue is fixed on Firefox 87.0b4 and Nightly 88.0a1 (2021-02-28). Tests were performed on macOS 10.15.7, Windows 7 and Ubuntu 20.04

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: