Open Bug 1465074 Opened 7 years ago Updated 21 days ago

Allow range requests to pass through a service worker

Categories

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

defect

Tracking

()

Tracking Status
firefox62 --- affected

People

(Reporter: jakea, Unassigned)

References

(Blocks 3 open bugs)

Details

(Keywords: webcompat:platform-bug, Whiteboard: dom-lws-bugdash-triage)

User Story

user-impact-score:1600
Spec change: https://github.com/whatwg/fetch/pull/560. Tests: https://github.com/web-platform-tests/wpt/pull/10348. Security issues to pay attention to: https://github.com/whatwg/fetch/issues/144#issuecomment-368040980 This spec change means that rage requests (such as those from media elements) are allowed to pass through a service worker as long as they aren't modified. This fixes a long standing issue where media elements behave oddly if intercepted by a service worker (as the range headers were lost). How media elements ingest partial responses remains unspecified for now. See the attacks in https://github.com/whatwg/fetch/issues/144#issuecomment-368040980 & their mitigations. Attack 4 is already covered in the tests.
Component: Untriaged → DOM: Service Workers
Product: Firefox → Core
Priority: -- → P2
Looks like we already blocked 206 responses in Cache API in bug 1264181.
Depends on: 1264181
Blocks: 1477391
See Also: 1477391

Unfortunately Firefox is currently the only browser that is not supporting range requests in service workers. See here: https://wpt.fyi/results/fetch/range/sw.https.window.html?label=master&label=experimental&aligned

Recent versions of Safari and Chromium since Version 87 support this really well (https://web.dev/sw-range-requests/). It is really unfortunate that our web app can not support Firefox because of this issue...

See Also: → CVE-2022-31736
Depends on: 1762068
Depends on: CVE-2022-45403
See Also: → 1733981

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3

Seems still unsupported.

Whiteboard: dom-lws-bugdash-triage
Blocks: 1984062
User Story: (updated)
You need to log in before you can comment on or make changes to this bug.