Closed Bug 1206121 Opened 9 years ago Closed 8 years ago

XHR in the worker does not perform redirect (302) when CORS is used.

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox43 --- affected
firefox48 --- fixed

People

(Reporter: yury, Assigned: baku)

References

()

Details

Attachments

(1 file)

STR:
1. Open http://people.mozilla.org/~ydelendik/tmp/bug_redir_xhr_cors/t.html
2. Click "with redirect (302)" button

Notice that xhr response in the worker is 0.

Expected result is xhr response in the worker is 200.
This happens because in the window XHR we do:

http://mxr.mozilla.org/mozilla-central/source/dom/base/nsXMLHttpRequest.cpp#1156

but we don't do similar thing on worker XHR.
This appears to work.  Do we just need a test checked in?
Flags: needinfo?(amarchesini)
Attached patch aa.patchSplinter Review
Assignee: nobody → amarchesini
Flags: needinfo?(amarchesini)
Attachment #8727421 - Flags: review?(khuey)
https://hg.mozilla.org/mozilla-central/rev/69448e1e7e45
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: