Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Fetch API] Request constructor should provide exception messages
https://bugs.webkit.org/show_bug.cgi?id=162382 Source/WebCore: Patch by Youenn Fablet <youenn@apple.com> on 2016-10-08 Reviewed by Darin Adler. No change of behavior, except that exceptions now have error messages. Added support of exception messages to ExceptionOr. Making use of ExceptionOr for Request constructor parameter checking. * Modules/fetch/FetchRequest.cpp: (WebCore::setReferrerPolicy): (WebCore::setMode): (WebCore::setCredentials): (WebCore::setCache): (WebCore::setRedirect): (WebCore::setMethod): (WebCore::setReferrer): (WebCore::buildOptions): (WebCore::FetchRequest::initializeOptions): (WebCore::FetchRequest::initializeWith): * Modules/fetch/FetchRequest.h: * Modules/fetch/FetchRequest.idl: * bindings/js/JSDOMBinding.cpp: (WebCore::setDOMException): * bindings/js/JSDOMBinding.h: (WebCore::toJS): (WebCore::toJSNewlyCreated): * dom/Exception.h: (WebCore::Exception::code): (WebCore::Exception::message): (WebCore::Exception::Exception): * dom/ExceptionOr.h: (WebCore::ExceptionOr<ReturnType>::exceptionMessage): LayoutTests: Patch by Youenn Fablet <youennf@gmail.com> on 2016-10-08 Reviewed by Darin Adler. * fetch/fetch-url-serialization-expected.txt: Rebasing test expectation. Canonical link: https://commits.webkit.org/181002@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
164 additions
and 83 deletions.
- +9 −0 LayoutTests/ChangeLog
- +1 −1 LayoutTests/fetch/fetch-url-serialization-expected.txt
- +37 −0 Source/WebCore/ChangeLog
- +81 −72 Source/WebCore/Modules/fetch/FetchRequest.cpp
- +5 −3 Source/WebCore/Modules/fetch/FetchRequest.h
- +2 −2 Source/WebCore/Modules/fetch/FetchRequest.idl
- +11 −0 Source/WebCore/bindings/js/JSDOMBinding.cpp
- +3 −2 Source/WebCore/bindings/js/JSDOMBinding.h
- +9 −3 Source/WebCore/dom/Exception.h
- +6 −0 Source/WebCore/dom/ExceptionOr.h
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.