Closed Bug 1509827 Opened 6 years ago Closed 5 years ago

Document different classes of nsIClassOfService

Categories

(Core :: Networking, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: smaug, Assigned: mayhemer)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

Right now most of the classes in nsIClassOfService are undocumented and it is unclear how they relate to use of nsISupportsPriority.
Priority: -- → P3
Whiteboard: [necko-triaged]

This would be really useful for anyone trying to optimize page load.

Assignee: nobody → honzab.moz
Priority: P3 → P2

Dragana, I'd like to ask for some details on the following 3 flags:

const unsigned long Follower = 1 << 1;
const unsigned long Speculative = 1 << 2;
const unsigned long Background = 1 << 3;

Thanks.

Flags: needinfo?(dd.mozilla)

(In reply to Honza Bambas (:mayhemer) from comment #3)

Dragana, I'd like to ask for some details on the following 3 flags:

const unsigned long Follower = 1 << 1;
const unsigned long Speculative = 1 << 2;
const unsigned long Background = 1 << 3;

Thanks.

It looks like we are not really setting this flags as we should. We should look into that.
Speculative - this is for speculative loads, something like prefetch, preload.
Follower - should correspond to not having NS_HTTP_LOAD_AS_BLOCKING nor NS_HTTP_LOAD_UNBLOCKED flag (I think we do not set this right).
Background - currently is only used here https://searchfox.org/mozilla-central/source/dom/base/Navigator.cpp#1189

It would be good to document this better and they to use this flags more in the code.

Flags: needinfo?(dd.mozilla)

Does speculative mean also the loads initiated by HTML parser when it does its speculative loading stuff?

(In reply to Olli Pettay [:smaug] from comment #5)

Does speculative mean also the loads initiated by HTML parser when it does its speculative loading stuff?

looks unused: https://searchfox.org/mozilla-central/search?q=symbol:E_%3CT_30d3568e12e7221e%3E_Speculative%2CE_%3CT_585b7a22%3E_Speculative%2CE_%3CT_e2e10413af089363%3E_Speculative%2CE_%3CT_ef70bfffab818152%3E_Speculative&redirect=false

Note that if we do use the speculative thing for the HTML parser speculative loads we need a way to "switch" to non-speculative once the real load tries to coalesce with the speculative load.

Honza, could this be prioritized a bit?

Flags: needinfo?(honzab.moz)

Yup, will look at this ASAP.

Flags: needinfo?(honzab.moz)
Priority: P2 → P1
Pushed by honzab.moz@firemni.cz: https://hg.mozilla.org/integration/autoland/rev/d37f02809ffd Document nsIClassOfService flags, r=dragana
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: