use HTTP OMT data delivery while loading worker resource

NEW
Unassigned

Status

()

Core
DOM: Workers
P3
normal
9 months ago
9 months ago

People

(Reporter: schien, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

From telemetry [1] I found worker-related HTTP requests are not utilizing off-main-thread data delivery. Worker script loader uses nsStreamLoader/nsStreamListenerTee and LoaderListener to load the resource. However, |RetargetDeliveryTo| is not called in ScriptLoaderRunnable::OnStartRequest. Therefore, HTTP OMT is not activated.

[1] https://mzl.la/2ugPhaU
[2] https://searchfox.org/mozilla-central/rev/3a3af33f513071ea829debdfbc628caebcdf6996/dom/workers/ScriptLoader.cpp#969
[3] https://searchfox.org/mozilla-central/rev/3a3af33f513071ea829debdfbc628caebcdf6996/dom/workers/ScriptLoader.cpp#674

Comment 1

9 months ago
We should do this, but note that it won't help with service workers.
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.