Changeset 220244 in webkit
- Timestamp:
- Aug 3, 2017 6:00:13 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r220223 r220244 1 2017-08-03 Youenn Fablet <youenn@apple.com> 2 3 [Fetch API] Add support for Request keepalive getter 4 https://bugs.webkit.org/show_bug.cgi?id=175151 5 6 Reviewed by Chris Dumez. 7 8 * web-platform-tests/fetch/api/request/request-idl-expected.txt: 9 * web-platform-tests/fetch/api/request/request-idl.html: 10 * web-platform-tests/fetch/api/request/request-keepalive-expected.txt: Added. 11 * web-platform-tests/fetch/api/request/request-keepalive.html: Added. 12 1 13 2017-08-03 Youenn Fablet <youenn@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-idl-expected.txt
r217047 r220244 17 17 PASS Request interface: attribute redirect 18 18 PASS Request interface: attribute integrity 19 PASS Request interface: attribute keepalive 19 20 PASS Request interface: operation clone() 20 21 FAIL Request interface: attribute body assert_true: The prototype object must have a property "body" expected true got false … … 37 38 PASS Request interface: new Request("") must inherit property "redirect" with the proper type (10) 38 39 PASS Request interface: new Request("") must inherit property "integrity" with the proper type (11) 39 PASS Request interface: new Request("") must inherit property "clone" with the proper type (12) 40 FAIL Request interface: new Request("") must inherit property "body" with the proper type (13) assert_inherits: property "body" not found in prototype chain 41 PASS Request interface: new Request("") must inherit property "bodyUsed" with the proper type (14) 42 PASS Request interface: new Request("") must inherit property "arrayBuffer" with the proper type (15) 43 PASS Request interface: new Request("") must inherit property "blob" with the proper type (16) 44 FAIL Request interface: new Request("") must inherit property "formData" with the proper type (17) assert_inherits: property "formData" not found in prototype chain 45 PASS Request interface: new Request("") must inherit property "json" with the proper type (18) 46 PASS Request interface: new Request("") must inherit property "text" with the proper type (19) 40 PASS Request interface: new Request("") must inherit property "keepalive" with the proper type (12) 41 PASS Request interface: new Request("") must inherit property "clone" with the proper type (13) 42 FAIL Request interface: new Request("") must inherit property "body" with the proper type (14) assert_inherits: property "body" not found in prototype chain 43 PASS Request interface: new Request("") must inherit property "bodyUsed" with the proper type (15) 44 PASS Request interface: new Request("") must inherit property "arrayBuffer" with the proper type (16) 45 PASS Request interface: new Request("") must inherit property "blob" with the proper type (17) 46 FAIL Request interface: new Request("") must inherit property "formData" with the proper type (18) assert_inherits: property "formData" not found in prototype chain 47 PASS Request interface: new Request("") must inherit property "json" with the proper type (19) 48 PASS Request interface: new Request("") must inherit property "text" with the proper type (20) 47 49 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-idl.html
r212202 r220244 47 47 readonly attribute RequestRedirect redirect; 48 48 readonly attribute DOMString integrity; 49 readonly attribute boolean keepalive; 49 50 50 51 [NewObject] Request clone(); -
trunk/Source/WebCore/ChangeLog
r220243 r220244 1 2017-08-03 Youenn Fablet <youenn@apple.com> 2 3 [Fetch API] Add support for Request keepalive getter 4 https://bugs.webkit.org/show_bug.cgi?id=175151 5 6 Reviewed by Chris Dumez. 7 8 Test: imported/w3c/web-platform-tests/fetch/api/request/request-keepalive.html 9 10 Adding keepalive as a fetch option. 11 Adding initialization and getter of keepalive into FetchRequest. 12 13 * Modules/fetch/FetchRequest.cpp: 14 (WebCore::buildOptions): 15 * Modules/fetch/FetchRequest.h: 16 * Modules/fetch/FetchRequest.idl: 17 * loader/FetchOptions.h: 18 1 19 2017-08-03 Yoshiaki Jitsukawa <jitsu@rd.scei.sony.co.jp> 2 20 -
trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp
r220241 r220244 105 105 request.options.integrity = init.integrity; 106 106 107 if (init.keepalive && init.keepalive.value()) 108 request.options.keepAlive = true; 109 107 110 if (!init.method.isNull()) { 108 111 if (auto exception = setMethod(request.request, init.method)) -
trunk/Source/WebCore/Modules/fetch/FetchRequest.h
r220241 r220244 68 68 Cache cache() const; 69 69 Redirect redirect() const; 70 bool keepalive() const { return m_internalRequest.options.keepAlive; }; 70 71 71 72 const String& integrity() const { return m_internalRequest.options.integrity; } -
trunk/Source/WebCore/Modules/fetch/FetchRequest.idl
r220241 r220244 57 57 readonly attribute FetchRequestRedirect redirect; 58 58 readonly attribute DOMString integrity; 59 // FIXME: Add support for keepalive. 60 // readonly attribute boolean keepalive; 59 readonly attribute boolean keepalive; 61 60 62 61 [CallWith=ScriptExecutionContext, MayThrowException, NewObject] FetchRequest clone(); -
trunk/Source/WebCore/loader/FetchOptions.h
r220208 r220244 56 56 57 57 String integrity; 58 59 bool keepAlive { false }; 58 60 }; 59 61
Note: See TracChangeset
for help on using the changeset viewer.