Closed Bug 1451874 Opened 6 years ago Closed 6 years ago

about:config pref layout.css.prefixes.gradients doesn't work anymore (-moz-linear-gradient is accepted regardless of pref setting)

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: dholbert, Assigned: emilio)

Details

Attachments

(2 files)

Attached file testcase 1
STR:
 1. Set about:config pref layout.css.prefixes.gradients = false
 2. Load attached testcase

EXPECTED RESULTS:
Lime background. (The -moz-linear-gradient should be rejected.)

ACTUAL RESULTS:
Red/pink gradient background.


Apparently we accept -moz-linear-gradient regardless of the pref setting now. I'm guessing this is a stylo regression.


(This bug makes it hard to experiment with removing support for moz-prefixed gradients, e.g. in bug 1182775.)
Quite possible a stylo regression.

We should check layout_css_prefixes_gradients around Gradient::parse[1].

There should probably be some test catching that...


[1] https://searchfox.org/mozilla-central/rev/2ce99e8054b0ff6ed1adf484aeaacacf2fea084c/servo/components/style/values/specified/image.rs#181-226
yeah, let's fix this, I'd love to get rid of the -moz- gradients.
Assignee: nobody → emilio
Comment on attachment 8965957 [details]
Bug 1451874: Respect the -moz- gradient pref again.

https://reviewboard.mozilla.org/r/234744/#review240414
Attachment #8965957 - Flags: review?(xidorn+moz) → review+
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a41976b9334f
Respect the -moz- gradient pref again. r=xidorn
https://hg.mozilla.org/mozilla-central/rev/a41976b9334f
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
QA Whiteboard: [good first verify]
I have reproduced this bug with Nightly 61.0a1 (2018-04-06) on Windows 10, 64 Bit!
This bug's fix is verified with latest Beta!

Builf ID   : 20180528091514
User Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
QA Whiteboard: [good first verify] → [good first verify] [bugday-20180523]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: