Open Bug 1415003 Opened 4 years ago Updated 1 year ago

pass through SW should propagate outer network channel priority to the fetch() channel

Categories

(Core :: DOM: Service Workers, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: bkelly, Unassigned, NeedInfo)

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
Priority: -- → P2
Note, there is a spec PR to pass the priority internally as suggested in comment 0.  See:

https://github.com/whatwg/fetch/pull/785
Flags: needinfo?(reyesalejandre)

Hi Anne, can you please check if this is still wanted?

Flags: needinfo?(reyesalejandre) → needinfo?(annevk)

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)

(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)

Andrew?

Flags: needinfo?(perry) → needinfo?(bugmail)
You need to log in before you can comment on or make changes to this bug.