Changeset 279969 in webkit
- Timestamp:
- Jul 15, 2021 4:24:52 PM (12 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-consume-empty.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-consume-empty.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-consume-empty.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-consume-empty.any.worker-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/fetch/FetchBodyOwner.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r279967 r279969 1 2021-07-15 Chris Dumez <cdumez@apple.com> 2 3 FetchResponse.formData() should reject promise with a TypeError if the body is null 4 https://bugs.webkit.org/show_bug.cgi?id=228007 5 6 Reviewed by Alex Christensen. 7 8 Rebaseline WPT tests now that more checks are passing. 9 10 * web-platform-tests/fetch/api/request/request-consume-empty.any-expected.txt: 11 * web-platform-tests/fetch/api/request/request-consume-empty.any.worker-expected.txt: 12 * web-platform-tests/fetch/api/response/response-consume-empty.any-expected.txt: 13 * web-platform-tests/fetch/api/response/response-consume-empty.any.worker-expected.txt: 14 1 15 2021-07-15 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-consume-empty.any-expected.txt
r279344 r279969 4 4 PASS Consume request's body as arrayBuffer 5 5 PASS Consume request's body as json (error case) 6 FAIL Consume request's body as formData with correct multipart type (error case) promise_rejects_js: function "function () { throw e }" threw undefined with type "undefined", not an object 7 FAIL Consume request's body as formData with correct urlencoded type promise_test: Unhandled rejection with value: undefined8 FAIL Consume request's body as formData without correct type (error case) promise_rejects_js: function "function () { throw e }" threw undefined with type "undefined", not an object 6 PASS Consume request's body as formData with correct multipart type (error case) 7 FAIL Consume request's body as formData with correct urlencoded type promise_test: Unhandled rejection with value: object "TypeError: Type error" 8 PASS Consume request's body as formData without correct type (error case) 9 9 PASS Consume empty blob request body as arrayBuffer 10 10 PASS Consume empty text request body as arrayBuffer -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-consume-empty.any.worker-expected.txt
r279344 r279969 4 4 PASS Consume request's body as arrayBuffer 5 5 PASS Consume request's body as json (error case) 6 FAIL Consume request's body as formData with correct multipart type (error case) promise_rejects_js: function "function () { throw e }" threw undefined with type "undefined", not an object 7 FAIL Consume request's body as formData with correct urlencoded type promise_test: Unhandled rejection with value: undefined8 FAIL Consume request's body as formData without correct type (error case) promise_rejects_js: function "function () { throw e }" threw undefined with type "undefined", not an object 6 PASS Consume request's body as formData with correct multipart type (error case) 7 FAIL Consume request's body as formData with correct urlencoded type promise_test: Unhandled rejection with value: object "TypeError: Type error" 8 PASS Consume request's body as formData without correct type (error case) 9 9 PASS Consume empty blob request body as arrayBuffer 10 10 PASS Consume empty text request body as arrayBuffer -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-consume-empty.any-expected.txt
r279344 r279969 4 4 PASS Consume response's body as arrayBuffer 5 5 PASS Consume response's body as json (error case) 6 FAIL Consume response's body as formData with correct multipart type (error case) promise_rejects_js: function "function () { throw e }" threw undefined with type "undefined", not an object 7 FAIL Consume response's body as formData with correct urlencoded type promise_test: Unhandled rejection with value: undefined8 FAIL Consume response's body as formData without correct type (error case) promise_rejects_js: function "function () { throw e }" threw undefined with type "undefined", not an object 6 PASS Consume response's body as formData with correct multipart type (error case) 7 FAIL Consume response's body as formData with correct urlencoded type promise_test: Unhandled rejection with value: object "TypeError: Type error" 8 PASS Consume response's body as formData without correct type (error case) 9 9 PASS Consume empty blob response body as arrayBuffer 10 10 PASS Consume empty text response body as arrayBuffer -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-consume-empty.any.worker-expected.txt
r279344 r279969 4 4 PASS Consume response's body as arrayBuffer 5 5 PASS Consume response's body as json (error case) 6 FAIL Consume response's body as formData with correct multipart type (error case) promise_rejects_js: function "function () { throw e }" threw undefined with type "undefined", not an object 7 FAIL Consume response's body as formData with correct urlencoded type promise_test: Unhandled rejection with value: undefined8 FAIL Consume response's body as formData without correct type (error case) promise_rejects_js: function "function () { throw e }" threw undefined with type "undefined", not an object 6 PASS Consume response's body as formData with correct multipart type (error case) 7 FAIL Consume response's body as formData with correct urlencoded type promise_test: Unhandled rejection with value: object "TypeError: Type error" 8 PASS Consume response's body as formData without correct type (error case) 9 9 PASS Consume empty blob response body as arrayBuffer 10 10 PASS Consume empty text response body as arrayBuffer -
trunk/Source/WebCore/ChangeLog
r279967 r279969 1 2021-07-15 Chris Dumez <cdumez@apple.com> 2 3 FetchResponse.formData() should reject promise with a TypeError if the body is null 4 https://bugs.webkit.org/show_bug.cgi?id=228007 5 6 Reviewed by Alex Christensen. 7 8 FetchResponse.formData() should reject promise with a TypeError if the body is null, to match 9 the behavior of Chrome and Firefox. 10 11 No new tests, rebaselined existing tests. 12 13 * Modules/fetch/FetchBodyOwner.cpp: 14 (WebCore::FetchBodyOwner::formData): 15 1 16 2021-07-15 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Source/WebCore/Modules/fetch/FetchBodyOwner.cpp
r278516 r279969 187 187 188 188 if (isBodyNullOrOpaque()) { 189 promise->reject( );189 promise->reject(TypeError); 190 190 return; 191 191 }
Note: See TracChangeset
for help on using the changeset viewer.