Closed
Bug 1506084
Opened 6 years ago
Closed 6 years ago
Mark font loads with ClassOfService |= TailForbidden
Categories
(Core :: Layout: Text and Fonts, enhancement, P3)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: mayhemer, Assigned: jfkthame)
References
Details
Attachments
(1 file, 1 obsolete file)
1.06 KB,
patch
|
mayhemer
:
review+
|
Details | Diff | Splinter Review |
Because of bug 1501461 we now consider fonts as trackers. Trackers are tailed. If fonts are tailed, it may cause visible font fetch/rendering delays. Fonts should then be explicitly excluded from tailing [1]. Note that I was also experimenting in the past with marking font loads as Unblocked (forbids Tailing too) in bug 1349177, no conclusion made, no tools to measure actual impact. [1] https://searchfox.org/mozilla-central/rev/17f55aee76b7c4610a974cffd3453454e0c8de7b/netwerk/base/nsIClassOfService.idl#56
Comment 1•6 years ago
|
||
Honza, any chance you could find someone from the Necko team to help fix this please? Thanks!
Flags: needinfo?(honzab.moz)
Reporter | ||
Comment 2•6 years ago
|
||
You mean someone from the font team, no? I can provide an example, but I would have to look after all the places where font loads are started. That's more suitable for someone who knows that code than anyone from necko. An example: https://searchfox.org/mozilla-central/rev/647b9eb1099e373e079e16f147f74f3d1d65eed3/dom/script/ScriptLoader.cpp#1128-1129,1143
Flags: needinfo?(honzab.moz) → needinfo?(jfkthame)
Assignee | ||
Comment 3•6 years ago
|
||
Offhand, I think font loads are all started via FontFaceSet::StartLoad.[1] I don't see anything related to ClassOfService there at the moment, but it should be trivial to add. [1] https://searchfox.org/mozilla-central/rev/647b9eb1099e373e079e16f147f74f3d1d65eed3/layout/style/FontFaceSet.cpp#613
Flags: needinfo?(jfkthame)
Assignee | ||
Comment 4•6 years ago
|
||
It just wants something like this, I guess?
Attachment #9025718 -
Flags: review?(honzab.moz)
Assignee | ||
Comment 5•6 years ago
|
||
Hmm, to actually compile it needs an #include added. Updated patch.
Attachment #9025727 -
Flags: review?(honzab.moz)
Assignee | ||
Updated•6 years ago
|
Attachment #9025718 -
Attachment is obsolete: true
Attachment #9025718 -
Flags: review?(honzab.moz)
Reporter | ||
Comment 6•6 years ago
|
||
Comment on attachment 9025727 [details] [diff] [review] Set TailForbidden on class of service for webfont loads Review of attachment 9025727 [details] [diff] [review]: ----------------------------------------------------------------- Yes! Thanks.
Attachment #9025727 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Updated•6 years ago
|
Priority: -- → P3
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/43db9886e19f Set TailForbidden on class of service for webfont loads. r=mayhemer
Comment 8•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/43db9886e19f
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Updated•6 years ago
|
Assignee: nobody → jfkthame
Comment 9•6 years ago
|
||
Thank you both!
You need to log in
before you can comment on or make changes to this bug.
Description
•