Closed Bug 1278777 Opened 8 years ago Closed 8 years ago

Setting the .responseType field of an XMLHttpRequest in a web worker throws InvalidStateError.

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: jujjyl, Assigned: baku)

Details

(Whiteboard: btpp-followup-2016-06-15)

Attachments

(1 file, 2 obsolete files)

Attached file xhr_responsetype_in_worker.html (obsolete) —
STR: Run the attached file and check the page console. Observed: page throws exception "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" Expected: it should be possible to set responseType to 'arraybuffer' when an XHR is initiated in a web worker. Note how the code does work when run in main thread.
baku, wdyt?
Flags: needinfo?(amarchesini)
Whiteboard: btpp-followup-2016-06-15
Assignee: nobody → amarchesini
Flags: needinfo?(amarchesini)
Attached patch xhr.patch (obsolete) — Splinter Review
Maybe khuey can review this, but he is on vacation. Smaug, if you are busy, just move this review request. Or ping me on IRC and I do it.
Attachment #8761095 - Attachment is obsolete: true
Attachment #8761615 - Flags: review?(bugs)
Attached patch xhr.patchSplinter Review
Attachment #8761615 - Attachment is obsolete: true
Attachment #8761615 - Flags: review?(bugs)
Attachment #8761616 - Flags: review?(bugs)
Attachment #8761616 - Flags: review?(bugs) → review?(bkelly)
Attachment #8761616 - Flags: review?(bkelly) → review+
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/0f8bf34b3dcc XHR in workers should support the setting of responseType before calling open(), r=bkelly
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: