Closed Bug 1503276 Opened 6 years ago Closed 6 years ago

Response.redirect() should throw TypeError if the input is an invalid URL

Categories

(Core :: DOM: Core & HTML, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

https://fetch.spec.whatwg.org/#dom-response-redirect
2. "If parsedURL is failure, then throw a TypeError."
Attached patch invalidURI.patchSplinter Review
Attachment #9021197 - Flags: review?(bugs)
Attachment #9021197 - Flags: review?(bugs) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/786d2f52f456
Response.redirect() should throw TypeError if the input is an invalid URL, r=smaug
Priority: -- → P1
https://hg.mozilla.org/mozilla-central/rev/786d2f52f456
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
I've added information about the relevant exceptions to the redirect() ref page, and added a note to the Fx 65 rel notes:
https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/65#APIs

Let me know if you think I need to do anything else. Thanks!
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: