Closed Bug 791391 Opened 12 years ago Closed 12 years ago

nsUserFontSet::SyncLoadFontData needs to create the channel using the load group of the document

Categories

(Core :: CSS Parsing and Computation, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #661387 - Flags: review?(bzbarsky)
Comment on attachment 661387 [details] [diff] [review] Patch (v1) >+++ b/layout/style/nsFontFaceLoader.cpp >@@ -840,31 +840,36 @@ nsUserFontSet::SyncLoadFontData(gfxProxy > rv = CheckFontLoad(aFontToLoad, aFontFaceSrc, &principal); > NS_ENSURE_SUCCESS(rv, rv); > >+ nsIPresShell *ps = mPresContext->PresShell(); >+ if (!ps) CheckFontLoad already null-checked mPresContext->PresShell(). That said, this code is only reached if aFontFaceSrc is a data: URI. So it's somewhat possible this stuff just doesn't matter. In any case, r=me with the extraneous null-check removed.
Attachment #661387 - Flags: review?(bzbarsky) → review+
If this is only called for fonts loaded from data: URIs, then this is not needed.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: