Changeset 197049 in webkit


Ignore:
Timestamp:
Feb 24, 2016 1:41:51 PM (8 years ago)
Author:
youenn.fablet@crf.canon.fr
Message:

[Fetch API] Implement Fetch API Response
https://bugs.webkit.org/show_bug.cgi?id=154536

Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

New tests covering fetch API.

  • web-platform-tests/fetch/api/response/response-clone-expected.txt: Added.
  • web-platform-tests/fetch/api/response/response-clone.html: Added.
  • web-platform-tests/fetch/api/response/response-consume-expected.txt: Added.
  • web-platform-tests/fetch/api/response/response-consume.html: Added.
  • web-platform-tests/fetch/api/response/response-error-expected.txt: Added.
  • web-platform-tests/fetch/api/response/response-error.html: Added.
  • web-platform-tests/fetch/api/response/response-idl-expected.txt: Added.
  • web-platform-tests/fetch/api/response/response-idl.html: Added.
  • web-platform-tests/fetch/api/response/response-init-001-expected.txt: Added.
  • web-platform-tests/fetch/api/response/response-init-001.html: Added.
  • web-platform-tests/fetch/api/response/response-init-002-expected.txt: Added.
  • web-platform-tests/fetch/api/response/response-init-002.html: Added.
  • web-platform-tests/fetch/api/response/response-static-error-expected.txt: Added.
  • web-platform-tests/fetch/api/response/response-static-error.html: Added.
  • web-platform-tests/fetch/api/response/response-static-redirect-expected.txt: Added.
  • web-platform-tests/fetch/api/response/response-static-redirect.html: Added.

Source/WebCore:

Tests: imported/w3c/web-platform-tests/fetch/api/response/response-clone.html

imported/w3c/web-platform-tests/fetch/api/response/response-consume.html
imported/w3c/web-platform-tests/fetch/api/response/response-error.html
imported/w3c/web-platform-tests/fetch/api/response/response-idl.html
imported/w3c/web-platform-tests/fetch/api/response/response-init-001.html
imported/w3c/web-platform-tests/fetch/api/response/response-init-002.html
imported/w3c/web-platform-tests/fetch/api/response/response-static-error.html
imported/w3c/web-platform-tests/fetch/api/response/response-static-redirect.html

Adding Fetch Response as FetchResponse class.
Constructor uses a built-in to pre-process the parameters.
Support of body as ReadableStream is missing.

  • CMakeLists.txt:
  • DerivedSources.make:
  • Modules/fetch/FetchBody.h:

(WebCore::FetchBody::empty):

  • Modules/fetch/FetchResponse.cpp: Added.

(WebCore::JSFetchResponse::body):
(WebCore::isRedirectStatus):
(WebCore::isNullBodyStatus):
(WebCore::FetchResponse::error):
(WebCore::FetchResponse::redirect):
(WebCore::FetchResponse::initializeWith):
(WebCore::FetchResponse::FetchResponse):
(WebCore::FetchResponse::clone):
(WebCore::FetchResponse::type):

  • Modules/fetch/FetchResponse.h: Added.

(WebCore::FetchResponse::create):
(WebCore::FetchResponse::redirect):
(WebCore::FetchResponse::url):
(WebCore::FetchResponse::redirected):
(WebCore::FetchResponse::status):
(WebCore::FetchResponse::ok):
(WebCore::FetchResponse::statusText):
(WebCore::FetchResponse::headers):
(WebCore::FetchResponse::isDisturbed):
(WebCore::FetchResponse::arrayBuffer):
(WebCore::FetchResponse::formData):
(WebCore::FetchResponse::blob):
(WebCore::FetchResponse::json):
(WebCore::FetchResponse::text):

  • Modules/fetch/FetchResponse.idl: Added.
  • Modules/fetch/FetchResponse.js: Added.

(initializeFetchResponse):

  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/WebCoreJSBuiltins.cpp:
  • bindings/js/WebCoreJSBuiltins.h:

(WebCore::JSBuiltinFunctions::JSBuiltinFunctions):
(WebCore::JSBuiltinFunctions::fetchResponseBuiltins):

LayoutTests:

Adding Response as constructor in global and worker scopes.

  • js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
  • js/dom/global-constructors-attributes-expected.txt:
  • platform/efl/js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
  • platform/efl/js/dom/global-constructors-attributes-expected.txt:
  • platform/gtk/js/dom/global-constructors-attributes-expected.txt:
  • platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
  • platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
  • platform/mac/js/dom/global-constructors-attributes-expected.txt:
  • platform/win/js/dom/global-constructors-attributes-expected.txt:
Location:
trunk
Files:
21 added
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r197043 r197049  
     12016-02-24  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        [Fetch API] Implement Fetch API Response
     4        https://bugs.webkit.org/show_bug.cgi?id=154536
     5
     6        Reviewed by Alex Christensen.
     7
     8        Adding Response as constructor in global and worker scopes.
     9
     10        * js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
     11        * js/dom/global-constructors-attributes-expected.txt:
     12        * platform/efl/js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
     13        * platform/efl/js/dom/global-constructors-attributes-expected.txt:
     14        * platform/gtk/js/dom/global-constructors-attributes-expected.txt:
     15        * platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
     16        * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
     17        * platform/mac/js/dom/global-constructors-attributes-expected.txt:
     18        * platform/win/js/dom/global-constructors-attributes-expected.txt:
     19
    1202016-02-24  Commit Queue  <commit-queue@webkit.org>
    221
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r197027 r197049  
     12016-02-24  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        [Fetch API] Implement Fetch API Response
     4        https://bugs.webkit.org/show_bug.cgi?id=154536
     5
     6        Reviewed by Alex Christensen.
     7
     8        New tests covering fetch API.
     9
     10        * web-platform-tests/fetch/api/response/response-clone-expected.txt: Added.
     11        * web-platform-tests/fetch/api/response/response-clone.html: Added.
     12        * web-platform-tests/fetch/api/response/response-consume-expected.txt: Added.
     13        * web-platform-tests/fetch/api/response/response-consume.html: Added.
     14        * web-platform-tests/fetch/api/response/response-error-expected.txt: Added.
     15        * web-platform-tests/fetch/api/response/response-error.html: Added.
     16        * web-platform-tests/fetch/api/response/response-idl-expected.txt: Added.
     17        * web-platform-tests/fetch/api/response/response-idl.html: Added.
     18        * web-platform-tests/fetch/api/response/response-init-001-expected.txt: Added.
     19        * web-platform-tests/fetch/api/response/response-init-001.html: Added.
     20        * web-platform-tests/fetch/api/response/response-init-002-expected.txt: Added.
     21        * web-platform-tests/fetch/api/response/response-init-002.html: Added.
     22        * web-platform-tests/fetch/api/response/response-static-error-expected.txt: Added.
     23        * web-platform-tests/fetch/api/response/response-static-error.html: Added.
     24        * web-platform-tests/fetch/api/response/response-static-redirect-expected.txt: Added.
     25        * web-platform-tests/fetch/api/response/response-static-redirect.html: Added.
     26
    1272016-02-24  Youenn Fablet  <youenn.fablet@crf.canon.fr>
    228
  • trunk/LayoutTests/js/dom/global-constructors-attributes-dedicated-worker-expected.txt

    r196599 r197049  
    170170PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    171171PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     172PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     173PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     174PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     175PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     176PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    172177PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Set').value is Set
    173178PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Set').hasOwnProperty('get') is false
  • trunk/LayoutTests/js/dom/global-constructors-attributes-expected.txt

    r196747 r197049  
    994994PASS Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    995995PASS Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     996PASS Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     997PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     998PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     999PASS Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     1000PASS Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    9961001PASS Object.getOwnPropertyDescriptor(global, 'SQLException').value is SQLException
    9971002PASS Object.getOwnPropertyDescriptor(global, 'SQLException').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-dedicated-worker-expected.txt

    r196599 r197049  
    7070PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    7171PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     72PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     73PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     74PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     75PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     76PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    7277PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').value is URL
    7378PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt

    r196747 r197049  
    10641064PASS Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    10651065PASS Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     1066PASS Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     1067PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     1068PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     1069PASS Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     1070PASS Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    10661071PASS Object.getOwnPropertyDescriptor(global, 'SQLException').value is SQLException
    10671072PASS Object.getOwnPropertyDescriptor(global, 'SQLException').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt

    r196747 r197049  
    10841084PASS Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    10851085PASS Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     1086PASS Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     1087PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     1088PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     1089PASS Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     1090PASS Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    10861091PASS Object.getOwnPropertyDescriptor(global, 'SQLException').value is SQLException
    10871092PASS Object.getOwnPropertyDescriptor(global, 'SQLException').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt

    r196747 r197049  
    10741074PASS Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    10751075PASS Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     1076PASS Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     1077PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     1078PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     1079PASS Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     1080PASS Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    10761081PASS Object.getOwnPropertyDescriptor(global, 'SQLException').value is SQLException
    10771082PASS Object.getOwnPropertyDescriptor(global, 'SQLException').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt

    r196747 r197049  
    11991199PASS Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    12001200PASS Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     1201PASS Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     1202PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     1203PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     1204PASS Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     1205PASS Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    12011206PASS Object.getOwnPropertyDescriptor(global, 'SQLException').value is SQLException
    12021207PASS Object.getOwnPropertyDescriptor(global, 'SQLException').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt

    r196747 r197049  
    11991199PASS Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    12001200PASS Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     1201PASS Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     1202PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     1203PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     1204PASS Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     1205PASS Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    12011206PASS Object.getOwnPropertyDescriptor(global, 'SQLException').value is SQLException
    12021207PASS Object.getOwnPropertyDescriptor(global, 'SQLException').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt

    r196747 r197049  
    914914PASS Object.getOwnPropertyDescriptor(global, 'Request').enumerable is false
    915915PASS Object.getOwnPropertyDescriptor(global, 'Request').configurable is true
     916PASS Object.getOwnPropertyDescriptor(global, 'Response').value is Response
     917PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('get') is false
     918PASS Object.getOwnPropertyDescriptor(global, 'Response').hasOwnProperty('set') is false
     919PASS Object.getOwnPropertyDescriptor(global, 'Response').enumerable is false
     920PASS Object.getOwnPropertyDescriptor(global, 'Response').configurable is true
    916921PASS Object.getOwnPropertyDescriptor(global, 'SQLException').value is SQLException
    917922PASS Object.getOwnPropertyDescriptor(global, 'SQLException').hasOwnProperty('get') is false
  • trunk/Source/WebCore/CMakeLists.txt

    r197016 r197049  
    167167    Modules/fetch/FetchHeaders.idl
    168168    Modules/fetch/FetchRequest.idl
     169    Modules/fetch/FetchResponse.idl
    169170
    170171    Modules/geolocation/Coordinates.idl
     
    814815    Modules/fetch/FetchHeaders.cpp
    815816    Modules/fetch/FetchRequest.cpp
     817    Modules/fetch/FetchResponse.cpp
    816818
    817819    Modules/geolocation/Coordinates.cpp
     
    36663668set(WebCore_BUILTINS_SOURCES
    36673669    ${WEBCORE_DIR}/Modules/fetch/FetchHeaders.js
     3670    ${WEBCORE_DIR}/Modules/fetch/FetchResponse.js
    36683671    ${WEBCORE_DIR}/Modules/mediastream/MediaDevices.js
    36693672    ${WEBCORE_DIR}/Modules/mediastream/NavigatorUserMedia.js
  • trunk/Source/WebCore/ChangeLog

    r197040 r197049  
     12016-02-24  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        [Fetch API] Implement Fetch API Response
     4        https://bugs.webkit.org/show_bug.cgi?id=154536
     5
     6        Reviewed by Alex Christensen.
     7
     8        Tests: imported/w3c/web-platform-tests/fetch/api/response/response-clone.html
     9               imported/w3c/web-platform-tests/fetch/api/response/response-consume.html
     10               imported/w3c/web-platform-tests/fetch/api/response/response-error.html
     11               imported/w3c/web-platform-tests/fetch/api/response/response-idl.html
     12               imported/w3c/web-platform-tests/fetch/api/response/response-init-001.html
     13               imported/w3c/web-platform-tests/fetch/api/response/response-init-002.html
     14               imported/w3c/web-platform-tests/fetch/api/response/response-static-error.html
     15               imported/w3c/web-platform-tests/fetch/api/response/response-static-redirect.html
     16
     17        Adding Fetch Response as FetchResponse class.
     18        Constructor uses a built-in to pre-process the parameters.
     19        Support of body as ReadableStream is missing.
     20
     21        * CMakeLists.txt:
     22        * DerivedSources.make:
     23        * Modules/fetch/FetchBody.h:
     24        (WebCore::FetchBody::empty):
     25        * Modules/fetch/FetchResponse.cpp: Added.
     26        (WebCore::JSFetchResponse::body):
     27        (WebCore::isRedirectStatus):
     28        (WebCore::isNullBodyStatus):
     29        (WebCore::FetchResponse::error):
     30        (WebCore::FetchResponse::redirect):
     31        (WebCore::FetchResponse::initializeWith):
     32        (WebCore::FetchResponse::FetchResponse):
     33        (WebCore::FetchResponse::clone):
     34        (WebCore::FetchResponse::type):
     35        * Modules/fetch/FetchResponse.h: Added.
     36        (WebCore::FetchResponse::create):
     37        (WebCore::FetchResponse::redirect):
     38        (WebCore::FetchResponse::url):
     39        (WebCore::FetchResponse::redirected):
     40        (WebCore::FetchResponse::status):
     41        (WebCore::FetchResponse::ok):
     42        (WebCore::FetchResponse::statusText):
     43        (WebCore::FetchResponse::headers):
     44        (WebCore::FetchResponse::isDisturbed):
     45        (WebCore::FetchResponse::arrayBuffer):
     46        (WebCore::FetchResponse::formData):
     47        (WebCore::FetchResponse::blob):
     48        (WebCore::FetchResponse::json):
     49        (WebCore::FetchResponse::text):
     50        * Modules/fetch/FetchResponse.idl: Added.
     51        * Modules/fetch/FetchResponse.js: Added.
     52        (initializeFetchResponse):
     53        * WebCore.xcodeproj/project.pbxproj:
     54        * bindings/js/WebCoreJSBuiltins.cpp:
     55        * bindings/js/WebCoreJSBuiltins.h:
     56        (WebCore::JSBuiltinFunctions::JSBuiltinFunctions):
     57        (WebCore::JSBuiltinFunctions::fetchResponseBuiltins):
     58
    1592016-02-24  Ryosuke Niwa  <rniwa@webkit.org>
    260
  • trunk/Source/WebCore/DerivedSources.cpp

    r197016 r197049  
    157157#include "JSFetchHeaders.cpp"
    158158#include "JSFetchRequest.cpp"
     159#include "JSFetchResponse.cpp"
    159160#include "JSFile.cpp"
    160161#include "JSFileError.cpp"
  • trunk/Source/WebCore/DerivedSources.make

    r197016 r197049  
    8383    $(WebCore)/Modules/fetch/FetchHeaders.idl \
    8484    $(WebCore)/Modules/fetch/FetchRequest.idl \
     85    $(WebCore)/Modules/fetch/FetchResponse.idl \
    8586    $(WebCore)/Modules/gamepad/Gamepad.idl \
    8687    $(WebCore)/Modules/gamepad/GamepadButton.idl \
     
    12721273WebCore_BUILTINS_SOURCES = \
    12731274    $(WebCore)/Modules/fetch/FetchHeaders.js \
     1275    $(WebCore)/Modules/fetch/FetchResponse.js \
    12741276    $(WebCore)/Modules/mediastream/MediaDevices.js \
    12751277    $(WebCore)/Modules/mediastream/NavigatorUserMedia.js \
  • trunk/Source/WebCore/Modules/fetch/FetchBody.h

    r195954 r197049  
    7171    static FetchBody fromJSValue(JSC::ExecState&, JSC::JSValue);
    7272    static FetchBody fromRequestBody(FetchBody*);
     73    static FetchBody empty() { return FetchBody(); }
    7374
    7475private:
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r197030 r197049  
    14981498                4129DF851BB5B80700322A16 /* JSReadableStreamPrivateConstructors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4129DF831BB5B7F700322A16 /* JSReadableStreamPrivateConstructors.cpp */; };
    14991499                4129DF861BB5B80C00322A16 /* JSReadableStreamPrivateConstructors.h in Headers */ = {isa = PBXBuildFile; fileRef = 4129DF841BB5B7F700322A16 /* JSReadableStreamPrivateConstructors.h */; settings = {ATTRIBUTES = (Private, ); }; };
     1500                413015D91C7B571400091C6E /* FetchResponse.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 413015D51C7B570400091C6E /* FetchResponse.cpp */; };
    15001501                4138D3351244054800323D33 /* EventContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 4138D3331244054800323D33 /* EventContext.h */; };
    15011502                4138D3361244054800323D33 /* EventContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4138D3341244054800323D33 /* EventContext.cpp */; };
     
    28142815                7E474E1F12494DC900235364 /* SQLiteDatabaseTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E474E1C12494DC900235364 /* SQLiteDatabaseTracker.h */; settings = {ATTRIBUTES = (Private, ); }; };
    28152816                7E474E2012494DC900235364 /* SQLiteDatabaseTracker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E474E1D12494DC900235364 /* SQLiteDatabaseTracker.cpp */; };
     2817                7E4C96DD1AD4483500365A50 /* JSFetchRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E4C96D91AD4483500365A50 /* JSFetchRequest.h */; };
    28162818                7E4C96DC1AD4483500365A50 /* JSFetchRequest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E4C96D81AD4483500365A50 /* JSFetchRequest.cpp */; };
    2817                 7E4C96DD1AD4483500365A50 /* JSFetchRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E4C96D91AD4483500365A50 /* JSFetchRequest.h */; };
     2819                8E4C96DD1AD4483500365A50 /* JSFetchResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 8E4C96D91AD4483500365A50 /* JSFetchResponse.h */; };
     2820                8E4C96DC1AD4483500365A50 /* JSFetchResponse.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8E4C96D81AD4483500365A50 /* JSFetchResponse.cpp */; };
    28182821                7E4DE10D198B10B60051CB02 /* DiskCacheMonitorCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7E4DE10C198B10B60051CB02 /* DiskCacheMonitorCocoa.mm */; };
    28192822                7E5D7A76161D3F8F00896C34 /* OESElementIndexUint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E5D7A73161D3F8F00896C34 /* OESElementIndexUint.cpp */; };
     
    89618964                4129DF831BB5B7F700322A16 /* JSReadableStreamPrivateConstructors.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSReadableStreamPrivateConstructors.cpp; sourceTree = "<group>"; };
    89628965                4129DF841BB5B7F700322A16 /* JSReadableStreamPrivateConstructors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSReadableStreamPrivateConstructors.h; sourceTree = "<group>"; };
     8966                413015D51C7B570400091C6E /* FetchResponse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FetchResponse.cpp; sourceTree = "<group>"; };
     8967                413015D61C7B570400091C6E /* FetchResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FetchResponse.h; sourceTree = "<group>"; };
     8968                413015D71C7B570400091C6E /* FetchResponse.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = FetchResponse.idl; sourceTree = "<group>"; };
     8969                413015D81C7B570400091C6E /* FetchResponse.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = FetchResponse.js; sourceTree = "<group>"; };
    89638970                4138D3331244054800323D33 /* EventContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventContext.h; sourceTree = "<group>"; };
    89648971                4138D3341244054800323D33 /* EventContext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EventContext.cpp; sourceTree = "<group>"; };
     
    1044210449                7E4C96D81AD4483500365A50 /* JSFetchRequest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSFetchRequest.cpp; sourceTree = "<group>"; };
    1044310450                7E4C96D91AD4483500365A50 /* JSFetchRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSFetchRequest.h; sourceTree = "<group>"; };
     10451                8E4C96D81AD4483500365A50 /* JSFetchResponse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSFetchResponse.cpp; sourceTree = "<group>"; };
     10452                8E4C96D91AD4483500365A50 /* JSFetchResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSFetchResponse.h; sourceTree = "<group>"; };
    1044410453                7E4DE10C198B10B60051CB02 /* DiskCacheMonitorCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DiskCacheMonitorCocoa.mm; sourceTree = "<group>"; };
    1044510454                7E5D7A73161D3F8F00896C34 /* OESElementIndexUint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OESElementIndexUint.cpp; sourceTree = "<group>"; };
     
    1675416763                                41F54F881C50C4F600338488 /* FetchRequest.h */,
    1675516764                                41F54F891C50C4F600338488 /* FetchRequest.idl */,
     16765                                413015D51C7B570400091C6E /* FetchResponse.cpp */,
     16766                                413015D61C7B570400091C6E /* FetchResponse.h */,
     16767                                413015D71C7B570400091C6E /* FetchResponse.idl */,
     16768                                413015D81C7B570400091C6E /* FetchResponse.js */,
    1675616769                        );
    1675716770                        path = fetch;
     
    1676716780                                7D4C96D81AD4483500365A50 /* JSFetchHeaders.cpp */,
    1676816781                                7D4C96D91AD4483500365A50 /* JSFetchHeaders.h */,
     16782                                8E4C96D81AD4483500365A50 /* JSFetchResponse.cpp */,
     16783                                8E4C96D91AD4483500365A50 /* JSFetchResponse.h */,
    1676916784                        );
    1677016785                        name = FetchAPI;
     
    2668526700                                7F4C96DD1AD4483500365A50 /* JSFetchBody.h in Headers */,
    2668626701                                7E4C96DD1AD4483500365A50 /* JSFetchRequest.h in Headers */,
     26702                                8E4C96DD1AD4483500365A50 /* JSFetchResponse.h in Headers */,
    2668726703                                7D4C96DD1AD4483500365A50 /* JSFetchHeaders.h in Headers */,
    2668826704                                7C4C96DD1AD4483500365A50 /* JSReadableStream.h in Headers */,
     
    3042730443                                7D4C96DC1AD4483500365A50 /* JSFetchHeaders.cpp in Sources */,
    3042830444                                7E4C96DC1AD4483500365A50 /* JSFetchRequest.cpp in Sources */,
     30445                                8E4C96DC1AD4483500365A50 /* JSFetchResponse.cpp in Sources */,
    3042930446                                7C4C96DC1AD4483500365A50 /* JSReadableStream.cpp in Sources */,
    3043030447                                6C4C96DE1AD4483500365A50 /* JSReadableStreamController.cpp in Sources */,
     
    3069330710                                D3F3D36B1A69B7C50059FC2B /* JSWebGLRenderingContextBaseCustom.cpp in Sources */,
    3069430711                                49EED14F1051971A00099FAB /* JSWebGLRenderingContextCustom.cpp in Sources */,
     30712                                413015D91C7B571400091C6E /* FetchResponse.cpp in Sources */,
    3069530713                                6F995A331A70833700A735F4 /* JSWebGLSampler.cpp in Sources */,
    3069630714                                49C7B9A21042D2D30009D447 /* JSWebGLShader.cpp in Sources */,
  • trunk/Source/WebCore/bindings/js/WebCoreJSBuiltins.cpp

    r195584 r197049  
    3030#include "CountQueuingStrategyBuiltins.cpp"
    3131#include "FetchHeadersBuiltins.cpp"
     32#include "FetchResponseBuiltins.cpp"
    3233#include "MediaDevicesBuiltins.cpp"
    3334#include "NavigatorUserMediaBuiltins.cpp"
  • trunk/Source/WebCore/bindings/js/WebCoreJSBuiltins.h

    r195584 r197049  
    3131#include "CountQueuingStrategyBuiltins.h"
    3232#include "FetchHeadersBuiltins.h"
     33#include "FetchResponseBuiltins.h"
    3334#include "MediaDevicesBuiltins.h"
    3435#include "NavigatorUserMediaBuiltins.h"
     
    5253#if ENABLE(FETCH_API)
    5354        , m_fetchHeadersBuiltins(&vm)
     55        , m_fetchResponseBuiltins(&vm)
    5456#endif
    5557#if ENABLE(STREAMS_API)
     
    8284#if ENABLE(FETCH_API)
    8385    FetchHeadersBuiltinsWrapper& fetchHeadersBuiltins() { return m_fetchHeadersBuiltins; }
     86    FetchResponseBuiltinsWrapper& fetchResponseBuiltins() { return m_fetchResponseBuiltins; }
    8487#endif
    8588#if ENABLE(STREAMS_API)
     
    105108#if ENABLE(FETCH_API)
    106109    FetchHeadersBuiltinsWrapper m_fetchHeadersBuiltins;
     110    FetchResponseBuiltinsWrapper m_fetchResponseBuiltins;
    107111#endif
    108112#if ENABLE(STREAMS_API)
Note: See TracChangeset for help on using the changeset viewer.