Closed Bug 1154150 Opened 5 years ago Closed 5 years ago
don't create a Font
Face Set if we don't have any @font-face rules or Font Face objects
We create a FontFaceSet object for every document, regardless of whether @font-face rules were used in its style sheets or document.fonts is touched. We should check whether the array of @font-face rules returned by the style set is non-empty before creating the FontFaceSet.
Attachment #8592066 - Flags: review?(jdaggett)
When a FontFace object is created from script, it calls aPresContext->Fonts() from its constructor, which causes the FontFaceSet to be created.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=54efcc453c6b (the red OS X builds are some transient problem)
You need to log in before you can comment on or make changes to this bug.