Open
Bug 1415003
Opened 7 years ago
Updated 2 years ago
pass through SW should propagate outer network channel priority to the fetch() channel
Categories
(Core :: DOM: Service Workers, enhancement, P2)
Core
DOM: Service Workers
Tracking
()
NEW
People
(Reporter: bkelly, Unassigned)
References
(Blocks 2 open bugs)
Details
Currently nsIChannels get a certain priority level based on what part of the page load created it (img vs script, etc). We should pass this priority value through in a pass-through service worker fetch().
There is an open spec issue to expose this on FetchEvent.Request.priority, but in the meantime we can implement it as a hidden internal value that gets passed through.
https://github.com/whatwg/fetch/issues/436
Updated•7 years ago
|
Priority: -- → P2
Reporter | ||
Comment 1•6 years ago
|
||
Note, there is a spec PR to pass the priority internally as suggested in comment 0. See:
https://github.com/whatwg/fetch/pull/785
Blocks: ServiceWorkers-compat
Updated•6 years ago
|
Flags: needinfo?(reyesalejandre)
Comment 2•5 years ago
|
||
Hi Anne, can you please check if this is still wanted?
Flags: needinfo?(reyesalejandre) → needinfo?(annevk)
Comment 3•5 years ago
|
||
This never got publicly exposed, but there is an internal priority value that needs propagation. If we're not doing that, then this is still a valid bug.
Flags: needinfo?(annevk)
Comment 4•5 years ago
|
||
(In reply to Anne (:annevk) from comment #3)
This never got publicly exposed, but there is an internal priority value that needs propagation. If we're not doing that, then this is still a valid bug.
Perry, are we doing this?
Flags: needinfo?(perry)
Updated•3 years ago
|
Flags: needinfo?(bugmail)
Comment 7•3 years ago
|
||
Still valid, not implemented.
Restating:
- This is about the situation where we
fetchEvent.respondWith(fetch(fetchEvent.request))
and we want to make sure the priority of the FetchEvent request that is set onto the InterceptedHttpChannel is:- Propagated into the
IPCInternalRequest
representation of the intercepted request. This starts in SendFetchEvent in GetIPCInternalRequest. - Processed by FetchDriver::HttpFetch when translating the
mRequest
into HTTP channel requests.- FetchService will also (currently) use this path.
- Propagated into the
- The only field we tunnel that is related to priority right now is our
nsContentPolicyType
mapping which corresponds to the fetchdestination
. - Judging from the recently fixed bug 1730852 (which was about nsIClassOfService information not being propagated onto InterceptedHttpChannel because of QI failures), we will also want to:
- Check that InterceptedHttpChannel is properly QI-ing to nsISupportsPriority
- Potentially include both the nsIClassOfService and nsISupportsPriority fields as (internal) fields on (IPC)InternalRequest.
- This is not about the
Response
that the promise returned by the pass-throughfetch
call will return. Just about theRequest
that gets passed to thefetch
call.
Flags: needinfo?(bugmail)
Comment 8•3 years ago
|
||
Is this somehow related to bug 1742596 comment 1 ?
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•