Closed
Bug 1134352
Opened 11 years ago
Closed 11 years ago
Test Response.useFinalURL in ServiceWorkers
Categories
(Core :: DOM: Core & HTML, defect)
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.
Reporter | ||
Comment 1•11 years ago
|
||
Please modify the comment in worker_test_response.js added by Bug 1126815 in the patch for this.
Reporter | ||
Updated•11 years ago
|
Summary: Test Response.finalURL in ServiceWorkers → Test Response.useFinalURL in ServiceWorkers
Reporter | ||
Comment 2•11 years ago
|
||
Final URL is removed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•