-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #29640 - CYBAI:fix-response-empty-init, r=<try>
Reset to in-memory stream with empty byte sequence for None init body Because the response body stream is initialized with FetchResponse, it cannot be processed with in-memory empty sequence. Thus, instead of using the FetchResponse stream, we'll reset it to Memory body stream with empty byte sequence if there's no init body. With this PR, we can fix the TIMEOUT in `/fetch/content-type/response.window.html` so I think it should fix #22304. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22304 - [x] There are tests for these changes
- Loading branch information
Showing
7 changed files
with
107 additions
and
908 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
226 changes: 5 additions & 221 deletions
226
tests/wpt/metadata-layout-2020/fetch/api/basic/stream-safe-creation.any.js.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,226 +1,10 @@ | ||
[stream-safe-creation.any.html] | ||
expected: TIMEOUT | ||
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: TIMEOUT | ||
|
||
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
|
||
[stream-safe-creation.any.serviceworker.html] | ||
expected: ERROR | ||
[stream-safe-creation] | ||
expected: FAIL | ||
|
||
|
||
[stream-safe-creation.any.sharedworker.html] | ||
expected: ERROR | ||
|
||
[stream-safe-creation.any.worker.html] | ||
expected: TIMEOUT | ||
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: TIMEOUT | ||
|
||
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyResponse'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
|
||
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyRequest'] | ||
expected: NOTRUN | ||
[stream-safe-creation] | ||
expected: FAIL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.