Closed Bug 1134352 Opened 11 years ago Closed 11 years ago

Test Response.useFinalURL in ServiceWorkers

Categories

(Core :: DOM: Core & HTML, defect)

33 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: nsm, Unassigned)

References

Details

Response.finalURL has semantics that can only be tested by a ServiceWorker initiated fetch() for a controllee's fetch(). Specifically, consider page A controlled by worker SW: A: fetch('/test').then((r) => console.log(r.url)) SW: onfetch = (e) => { e.respondWith(fetch('/troll').then((r) => { r.finalURL = true; return r; }) } The output will be '/troll' and not '/test' in A, since setting the finalURL means that response's url is not set to request's url.
Please modify the comment in worker_test_response.js added by Bug 1126815 in the patch for this.
Summary: Test Response.finalURL in ServiceWorkers → Test Response.useFinalURL in ServiceWorkers
Final URL is removed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.