Changeset 243757 in webkit
- Timestamp:
- Apr 2, 2019, 1:48:19 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-disturbed-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/fetch/FetchRequest.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r243756 r243757 1 2019-04-02 Chris Dumez <cdumez@apple.com> 2 3 [Fetch API] Allow used body replacement in Request constructor 4 https://bugs.webkit.org/show_bug.cgi?id=183703 5 <rdar://problem/49425609> 6 7 Reviewed by Youenn Fablet. 8 9 Rebaseline WPT test now that one more check is passing. 10 11 * web-platform-tests/fetch/api/request/request-disturbed-expected.txt: 12 1 13 2019-04-02 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-disturbed-expected.txt
r230330 r243757 4 4 PASS Check cloning a disturbed request 5 5 PASS Check creating a new request from a disturbed request 6 FAIL Check creating a new request with a new body from a disturbed request Request input is disturbed or locked. 6 PASS Check creating a new request with a new body from a disturbed request 7 7 FAIL Input request used for creating new request became disturbed assert_equals: body should not change expected object "[object ReadableStream]" but got object "[object ReadableStream]" 8 8 FAIL Input request used for creating new request became disturbed even if body is not used assert_true: bodyUsed is true when request is disturbed expected true got false -
trunk/Source/WebCore/ChangeLog
r243756 r243757 1 2019-04-02 Chris Dumez <cdumez@apple.com> 2 3 [Fetch API] Allow used body replacement in Request constructor 4 https://bugs.webkit.org/show_bug.cgi?id=183703 5 <rdar://problem/49425609> 6 7 Reviewed by Youenn Fablet. 8 9 Allow used body replacement in Request constructor as per: 10 - https://github.com/whatwg/fetch/pull/675 11 12 No new tests, rebaseline existing test. 13 14 * Modules/fetch/FetchRequest.cpp: 15 (WebCore::FetchRequest::initializeWith): 16 1 17 2019-04-02 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp
r243163 r243757 204 204 ExceptionOr<void> FetchRequest::initializeWith(FetchRequest& input, Init&& init) 205 205 { 206 if (input.isDisturbedOrLocked())207 return Exception {TypeError, "Request input is disturbed or locked."_s };208 209 206 m_request = input.m_request; 210 207 m_options = input.m_options; … … 241 238 return setBodyResult.releaseException(); 242 239 } else { 240 if (input.isDisturbedOrLocked()) 241 return Exception { TypeError, "Request input is disturbed or locked."_s }; 242 243 243 auto setBodyResult = setBody(input); 244 244 if (setBodyResult.hasException())
Note:
See TracChangeset
for help on using the changeset viewer.