CSS.supports('-moz-context-properties: none') return true even when pref is disabled
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
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
Comment 1•3 years ago
|
||
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.
Assignee | ||
Comment 2•3 years ago
|
||
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.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D114481
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
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0afdc6ac2856
https://hg.mozilla.org/mozilla-central/rev/a411cd917786
Description
•