Closed
Bug 892929
Opened 13 years ago
Closed 13 years ago
CSSFontFeatureValuesRule seems unaffected by the pref
Categories
(Core :: DOM: CSS Object Model, defect)
Core
DOM: CSS Object Model
Tracking
()
RESOLVED
FIXED
mozilla25
| Tracking | Status | |
|---|---|---|
| firefox23 | --- | unaffected |
| firefox24 | + | fixed |
| firefox25 | + | fixed |
People
(Reporter: Ms2ger, Assigned: jtd)
References
Details
Attachments
(2 files)
|
871 bytes,
patch
|
smaug
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
|
4.17 KB,
patch
|
bzbarsky
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
window.CSSFontFeatureValuesRule should be undefined when layout.css.font-features.enabled is false, but it isn't.
Comment 1•13 years ago
|
||
This is an xpidl interface, not a WebIDL one, so not defining it on Window is kinda hard...
We should just convert to WebIDL ASAP. ;)
| Reporter | ||
Comment 2•13 years ago
|
||
WebIDL doesn't seem backportable (which we might want), and on old bindings it should only take 5 lines or so in OldBindingConstructorEnabled, I think.
Comment 3•13 years ago
|
||
(In reply to :Ms2ger from comment #2)
> WebIDL doesn't seem backportable (which we might want), and on old bindings
> it should only take 5 lines or so in OldBindingConstructorEnabled, I think.
Is the behavior not working as expected as well or is it only a front end issue ?
Also is this "window.CSSFontFeatureValuesRule" a new property given implementation of Bug 549861 ? Under what scenario is this pref generally used and how can a user be impacted ?
| Reporter | ||
Comment 4•13 years ago
|
||
The pref is set to false in release builds: <http://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js#1778>. This property is new in bug 549861; exposing it when we turn off the actual implementation through the pref can break feature detection and probably breaks our experimental implementations policy.
| Assignee | ||
Comment 5•13 years ago
|
||
There's a related bug to make tests not fail when the pref is disabled, bug 886691. That's more about making the logic of shorthands work and fixing up tests that aren't sensitive to the pref but I thought I'd mention it here.
| Assignee | ||
Comment 6•13 years ago
|
||
> Also is this "window.CSSFontFeatureValuesRule" a new property given
> implementation of Bug 549861 ? Under what scenario is this pref generally
> used and how can a user be impacted ?
Like other new CSS properties and rules behind prefs, this will generally be enabled in nightly/aurora builds but disabled in beta/release builds. The pref will be removed once we make the decision that the spec is stable enough to unpref it. I think that process is still a little undefined as we haven't done this yet for a lot of preffed-rather-than-prefixed properties.
Updated•13 years ago
|
| Assignee | ||
Comment 7•13 years ago
|
||
Bouncing this over to bz as I don't really know the right way to go about hiding window.CSSFontFeatureValuesRule based on the pref state.
Assignee: jdaggett → bzbarsky
Comment 8•13 years ago
|
||
This applies to today's Aurora as well.
John, can you deal with writing tests and shepherding this in? I'm in and out a bit between now and the Aurora merge. :(
Attachment #782754 -
Flags: review?(bugs)
Flags: needinfo?(jdaggett)
Assignee: bzbarsky → jdaggett
Comment 9•13 years ago
|
||
Attachment #782754 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 10•13 years ago
|
||
Attachment #782956 -
Flags: review?(bzbarsky)
Flags: needinfo?(jdaggett)
| Assignee | ||
Comment 11•13 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #8)
> John, can you deal with writing tests and shepherding this in? I'm in and
> out a bit between now and the Aurora merge. :(
Yup, no problem.
Comment 12•13 years ago
|
||
Comment on attachment 782956 [details] [diff] [review]
patch, test whether window.CSSFontFeatureRule is hidden when disabled
>+ var hasFFVRule = (window["CSSFontFeatureValuesRule"] != null);
var hasFFVRule = "CSSFontFeatureValuesRule" in window;
and similar for hasStyleAlternates and hasCompStyleAlternates.
r=me with that
Attachment #782956 -
Flags: review?(bzbarsky) → review+
| Reporter | ||
Comment 13•13 years ago
|
||
Thanks!
| Assignee | ||
Comment 14•13 years ago
|
||
Pushed to inbound (including changes based on review comments):
https://hg.mozilla.org/integration/mozilla-inbound/rev/60dcd30de3fb
https://hg.mozilla.org/integration/mozilla-inbound/rev/9b235393dd59
Comment 15•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/60dcd30de3fb
https://hg.mozilla.org/mozilla-central/rev/9b235393dd59
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Comment 16•13 years ago
|
||
Added to the site compatibility doc just in case:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/25/Site_Compatibility
Keywords: dev-doc-complete,
site-compat
The description in that doc doesn't appear accurate. This change is substantially different from the one above it (about geolocation). And this is also a new feature that's not turned on yet, so the effect of this bug should be to make it so that there is no change in Firefox 25. I think it should be removed from the doc.
Flags: needinfo?(kohei.yoshino.bugs)
But this does need to be backported to 24.
Flags: needinfo?(jdaggett)
Comment 19•13 years ago
|
||
Thanks for the feedback, removed the reference from the compatibility doc.
Flags: needinfo?(kohei.yoshino.bugs)
Keywords: dev-doc-complete,
site-compat
| Assignee | ||
Comment 20•13 years ago
|
||
Comment on attachment 782754 [details] [diff] [review]
Per comment 2
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 549861
User impact if declined: exposure of CSSFontFeatureValuesRule on window
Testing completed (on m-c, etc.): yes
Risk to taking this patch (and alternatives if risky): low risk
String or IDL/UUID changes made by this patch: none
Attachment #782754 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 21•13 years ago
|
||
Comment on attachment 782956 [details] [diff] [review]
patch, test whether window.CSSFontFeatureRule is hidden when disabled
[Approval Request Comment]
-- same as above --
Attachment #782956 -
Flags: approval-mozilla-aurora?
Updated•13 years ago
|
Attachment #782754 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•13 years ago
|
Attachment #782956 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 22•13 years ago
|
||
Pushed to aurora:
https://hg.mozilla.org/releases/mozilla-aurora/rev/fe11c9394b14
https://hg.mozilla.org/releases/mozilla-aurora/rev/26b9b6a2e8e3
Flags: needinfo?(jdaggett)
| Assignee | ||
Updated•13 years ago
|
Comment 23•13 years ago
|
||
Looks like this landed with tests. Any need for QA here?
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•