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)
Core
DOM: Workers
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)
6.21 KB,
patch
|
bkelly
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•8 years ago
|
||
baku, wdyt?
Flags: needinfo?(amarchesini)
Whiteboard: btpp-followup-2016-06-15
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → amarchesini
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 2•8 years ago
|
||
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)
Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8761615 -
Attachment is obsolete: true
Attachment #8761615 -
Flags: review?(bugs)
Attachment #8761616 -
Flags: review?(bugs)
Updated•8 years ago
|
Attachment #8761616 -
Flags: review?(bugs) → review?(bkelly)
Updated•8 years ago
|
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
Comment 5•8 years ago
|
||
bugherder |
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.
Description
•