Closed Bug 1708384 Opened 3 years ago Closed 3 years ago

CSS.supports('-moz-context-properties: none') return true even when pref is disabled

Categories

(Core :: DOM: CSS Object Model, defect)

defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: foolip, Assigned: emilio)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36

Steps to reproduce:

Evaluate this JS: CSS.supports('-moz-context-properties: none')

Actual results:

It returns true.

Expected results:

It should return false, because I have the pref "svg.context-properties.content.enabled" disabled.

Note that '-moz-context-properties' in document.body.style return false, as it should.

This is probably an issue similar to the false positives in WebKit, https://bugs.webkit.org/show_bug.cgi?id=222280 and https://bugs.webkit.org/show_bug.cgi?id=223141

The Bugbug bot thinks this bug should belong to the 'Core::DOM: CSS Object Model' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: CSS Object Model
Product: Firefox → Core

So the way this property is hidden is wrong... It's not preffed off at parse-time, which explains this behavior.

The property is special-cased in CSSOM, see bug 1454823.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1454823
Assignee: nobody → emilio
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0afdc6ac2856
Properly hide -moz-control-character-visibility from content. r=dholbert
https://hg.mozilla.org/integration/autoland/rev/a411cd917786
Properly hide -moz-context-properties from content. r=dholbert
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Regressions: 1711189
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: