Closed Bug 1093022 Opened 10 years ago Closed 10 years ago

don't dispatch CSSFontFaceLoadEvents when the pref is not set

Categories

(Core :: CSS Parsing and Computation, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox34 --- unaffected
firefox35 --- affected
firefox36 --- affected

People

(Reporter: heycam, Unassigned)

References

Details

We shouldn't be dispatching CSSFontFaceLoadEvents when the Font Loading API pref is not enabled.
[Tracking Requested - why for this release]: Exposing stuff that should not be exposed.
Tracking - just to sanity check, this is different than bug 1092570?
Yes, different bug but related.
I misremembered where the events are dispatched to: they're targetted at the FontFaceSet, not the document, so if the pref isn't set we'll still dispatch the events but they can't be seen by the page.  I'm not sure it's worth checking the pref before dispatching them, since we'll presumably want to flip the pref on at some point.
Resolving as invalid; it's not possible to observe the events when the pref is off.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.