Closed
Bug 1187011
Opened 10 years ago
Closed 10 years ago
Response constructor should throw if body provided, but status code does not permit a body
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla44
| Tracking | Status | |
|---|---|---|
| firefox44 | --- | fixed |
People
(Reporter: bkelly, Assigned: mikokm, Mentored)
References
Details
(Whiteboard: [good first bug][lang=c++])
Attachments
(1 file, 1 obsolete file)
|
5.76 KB,
patch
|
bkelly
:
review+
|
Details | Diff | Splinter Review |
Comment 1•10 years ago
|
||
Relevant code here is dom/fetch/Response.cpp in the static Constructor method.
Comment 2•10 years ago
|
||
I'm working on it
| Assignee | ||
Comment 3•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Attachment #8666872 -
Flags: review?(bkelly)
| Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8666872 [details] [diff] [review]
Dont allow body with null body status
Review of attachment 8666872 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good! Just one nit to fix. r=me with that addressed. Thanks!
::: dom/tests/mochitest/fetch/test_response.js
@@ +201,5 @@
> });
> })
> }
>
> +function testBug1187011() {
nit: Can you name this function something like testNullBodyStatus() instead of using the bug number?
Attachment #8666872 -
Flags: review?(bkelly) → review+
| Reporter | ||
Comment 5•10 years ago
|
||
Also, can you push a try build?
Assignee: nobody → mikokm
Status: NEW → ASSIGNED
| Assignee | ||
Comment 6•10 years ago
|
||
| Assignee | ||
Comment 7•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Attachment #8666872 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8668035 [details] [diff] [review]
Don't allow response body with null body status
Thank you for the review. Here is the change you requested.
Attachment #8668035 -
Flags: review?(bkelly)
| Reporter | ||
Comment 9•10 years ago
|
||
Comment on attachment 8668035 [details] [diff] [review]
Don't allow response body with null body status
Review of attachment 8668035 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #8668035 -
Flags: review?(bkelly) → review+
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 10•10 years ago
|
||
Keywords: checkin-needed
Comment 11•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•