Closed
Bug 1502599
Opened 7 years ago
Closed 7 years ago
XHR should allow just "GET" method for blob URLs
Categories
(Core :: DOM: File, enhancement)
Core
DOM: File
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
7.32 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
We do this for fetch() but we don't for XHR:
https://searchfox.org/mozilla-central/rev/d5fc6f3d4746279a7c6fd4f7a98b1bc5d05d6b01/dom/fetch/FetchDriver.cpp#469-476
https://fetch.spec.whatwg.org
4.2 "blob": "If request’s method is not `GET` or blob is not a Blob object, then return a network error."
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #9020514 -
Flags: review?(bugs)
Comment 2•7 years ago
|
||
Comment on attachment 9020514 [details] [diff] [review]
xhr_blob.patch
silly spec.
Attachment #9020514 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 3•7 years ago
|
||
I need an extra review for this little change in XHR for workers.
There is this block of code that doesn't allow the dispatching of readystatechange before loadstart. this is, btw, against spec.
Attachment #9020514 -
Attachment is obsolete: true
Attachment #9021069 -
Flags: review?(bugs)
Comment 4•7 years ago
|
||
Comment on attachment 9021069 [details] [diff] [review]
xhr_blob.patch
I definitely don't want remove the test for bug 1317725. Could you make it use GET or something?
Attachment #9021069 -
Flags: review?(bugs) → review-
Assignee | ||
Comment 5•7 years ago
|
||
Attachment #9021069 -
Attachment is obsolete: true
Attachment #9021274 -
Flags: review?(bugs)
Updated•7 years ago
|
Attachment #9021274 -
Flags: review?(bugs) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/26bc7f3c808d
XHR should allow just "GET" method for blob URLs, r=smaug
Comment 7•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Comment 8•6 years ago
|
||
I've documented this:
Added a section about exceptions on the send() page:
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send
Added a note to the Fx65 rel notes page:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/65#APIs
Let me know if this works for you. Thanks!
Flags: needinfo?(amarchesini)
Keywords: dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•