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)
Tracking
()
RESOLVED
INVALID
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
1.69 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•12 years ago
|
||
Updated•12 years ago
|
Blocks: pbchannelfail
![]() |
||
Comment 2•12 years ago
|
||
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+
Assignee | ||
Comment 3•12 years ago
|
||
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.
Description
•