Changeset 208039 in webkit


Ignore:
Timestamp:
Oct 27, 2016 11:27:29 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[Fetch API] Fetch ReadableStream should only clone the second branch
https://bugs.webkit.org/show_bug.cgi?id=164058

Patch by Youenn Fablet <youenn@apple.com> on 2016-10-27
Reviewed by Darin Adler.

LayoutTests/imported/w3c:

  • web-platform-tests/fetch/api/response/response-clone-expected.txt:

Source/WebCore:

Covered by rebased tests.

  • Modules/streams/ReadableStreamInternals.js:

(readableStreamTeePullFunction):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r208010 r208039  
     12016-10-27  Youenn Fablet  <youenn@apple.com>
     2
     3        [Fetch API] Fetch ReadableStream should only clone the second branch
     4        https://bugs.webkit.org/show_bug.cgi?id=164058
     5
     6        Reviewed by Darin Adler.
     7
     8        * web-platform-tests/fetch/api/response/response-clone-expected.txt:
     9
    1102016-10-27  Joseph Pecoraro  <pecoraro@apple.com>
    211
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-clone-expected.txt

    r207939 r208039  
    77PASS Cloned responses should provide the same data
    88PASS Cancelling stream should not affect cloned one
    9 FAIL Check response clone use structureClone for teed ReadableStreams (Int8Arraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    10 FAIL Check response clone use structureClone for teed ReadableStreams (Int16Arraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    11 FAIL Check response clone use structureClone for teed ReadableStreams (Int32Arraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    12 FAIL Check response clone use structureClone for teed ReadableStreams (ArrayBufferchunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    13 FAIL Check response clone use structureClone for teed ReadableStreams (Uint8Arraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    14 FAIL Check response clone use structureClone for teed ReadableStreams (Uint8ClampedArraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    15 FAIL Check response clone use structureClone for teed ReadableStreams (Uint16Arraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    16 FAIL Check response clone use structureClone for teed ReadableStreams (Uint32Arraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    17 FAIL Check response clone use structureClone for teed ReadableStreams (Float32Arraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    18 FAIL Check response clone use structureClone for teed ReadableStreams (Float64Arraychunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
    19 FAIL Check response clone use structureClone for teed ReadableStreams (DataViewchunk) assert_true: Buffer of being-cloned response stream is the same as the original buffer expected true got false
     9PASS Check response clone use structureClone for teed ReadableStreams (Int8Arraychunk)
     10PASS Check response clone use structureClone for teed ReadableStreams (Int16Arraychunk)
     11PASS Check response clone use structureClone for teed ReadableStreams (Int32Arraychunk)
     12PASS Check response clone use structureClone for teed ReadableStreams (ArrayBufferchunk)
     13PASS Check response clone use structureClone for teed ReadableStreams (Uint8Arraychunk)
     14PASS Check response clone use structureClone for teed ReadableStreams (Uint8ClampedArraychunk)
     15PASS Check response clone use structureClone for teed ReadableStreams (Uint16Arraychunk)
     16PASS Check response clone use structureClone for teed ReadableStreams (Uint32Arraychunk)
     17PASS Check response clone use structureClone for teed ReadableStreams (Float32Arraychunk)
     18PASS Check response clone use structureClone for teed ReadableStreams (Float64Arraychunk)
     19PASS Check response clone use structureClone for teed ReadableStreams (DataViewchunk)
    2020
  • trunk/Source/WebCore/ChangeLog

    r208036 r208039  
     12016-10-27  Youenn Fablet  <youenn@apple.com>
     2
     3        [Fetch API] Fetch ReadableStream should only clone the second branch
     4        https://bugs.webkit.org/show_bug.cgi?id=164058
     5
     6        Reviewed by Darin Adler.
     7
     8        Covered by rebased tests.
     9
     10        * Modules/streams/ReadableStreamInternals.js:
     11        (readableStreamTeePullFunction):
     12
    1132016-10-27  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Source/WebCore/Modules/streams/ReadableStreamInternals.js

    r207337 r208039  
    184184                return;
    185185            if (!teeState.canceled1)
    186                 @readableStreamDefaultControllerEnqueue(teeState.branch1.@readableStreamController, shouldClone ? @doStructuredClone(result.value) : result.value);
     186                @readableStreamDefaultControllerEnqueue(teeState.branch1.@readableStreamController, result.value);
    187187            if (!teeState.canceled2)
    188188                @readableStreamDefaultControllerEnqueue(teeState.branch2.@readableStreamController, shouldClone ? @doStructuredClone(result.value) : result.value);
Note: See TracChangeset for help on using the changeset viewer.