Changeset 202909 in webkit
- Timestamp:
- Jul 7, 2016, 9:03:18 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-static-redirect-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/fetch/FetchResponse.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r202895 r202909 1 2016-07-07 Youenn Fablet <youenn@apple.com> 2 3 [Fetch API] Response.redirect should throw a RangeError in case of bad status code 4 https://bugs.webkit.org/show_bug.cgi?id=159507 5 6 Reviewed by Alex Christensen. 7 8 * web-platform-tests/fetch/api/response/response-static-redirect-expected.txt: 9 1 10 2016-07-06 Chris Dumez <cdumez@apple.com> 2 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-static-redirect-expected.txt
r197162 r202909 7 7 PASS Check response returned by static method redirect(), status = 308 8 8 PASS Check error returned when giving invalid url to redirect() 9 FAIL Check error returned when giving invalid status to redirect(), status = 200 assert_throws: Expect RangeError exception function "function () { Response.redirect(url, invalidStatus); }" threw object "TypeError: Type error" ("TypeError") expected object "RangeError" ("RangeError") 10 FAIL Check error returned when giving invalid status to redirect(), status = 309 assert_throws: Expect RangeError exception function "function () { Response.redirect(url, invalidStatus); }" threw object "TypeError: Type error" ("TypeError") expected object "RangeError" ("RangeError") 11 FAIL Check error returned when giving invalid status to redirect(), status = 400 assert_throws: Expect RangeError exception function "function () { Response.redirect(url, invalidStatus); }" threw object "TypeError: Type error" ("TypeError") expected object "RangeError" ("RangeError") 12 FAIL Check error returned when giving invalid status to redirect(), status = 500 assert_throws: Expect RangeError exception function "function () { Response.redirect(url, invalidStatus); }" threw object "TypeError: Type error" ("TypeError") expected object "RangeError" ("RangeError") 9 PASS Check error returned when giving invalid status to redirect(), status = 200 10 PASS Check error returned when giving invalid status to redirect(), status = 309 11 PASS Check error returned when giving invalid status to redirect(), status = 400 12 PASS Check error returned when giving invalid status to redirect(), status = 500 13 13 -
trunk/Source/WebCore/ChangeLog
r202908 r202909 1 2016-07-07 Youenn Fablet <youenn@apple.com> 2 3 [Fetch API] Response.redirect should throw a RangeError in case of bad status code 4 https://bugs.webkit.org/show_bug.cgi?id=159507 5 6 Reviewed by Alex Christensen. 7 8 Covered by rebased test. 9 10 * Modules/fetch/FetchResponse.cpp: 11 (WebCore::FetchResponse::redirect): Throw a RangeError in case of bad status. 12 1 13 2016-07-05 Jer Noble <jer.noble@apple.com> 2 14 -
trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp
r201324 r202909 66 66 } 67 67 if (!isRedirectStatus(status)) { 68 ec = TypeError;68 ec = RangeError; 69 69 return nullptr; 70 70 }
Note:
See TracChangeset
for help on using the changeset viewer.