Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have "Handle Fetch" return error when request's streaming body is unusable #1563

Merged
merged 12 commits into from
Feb 18, 2021

Conversation

yutakahirano
Copy link
Contributor

@yutakahirano yutakahirano commented Feb 8, 2021

@yutakahirano
Copy link
Contributor Author

@annevk @yoichio

This is related to whatwg/fetch#1144.

docs/index.bs Outdated Show resolved Hide resolved
docs/index.bs Outdated Show resolved Hide resolved
docs/index.bs Outdated Show resolved Hide resolved
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this mostly looks good and I think I also misunderstood some things initially. Left suggestions for improvements.

docs/index.bs Outdated Show resolved Hide resolved
docs/index.bs Outdated Show resolved Hide resolved
docs/index.bs Outdated Show resolved Hide resolved
docs/index.bs Outdated Show resolved Hide resolved
@yutakahirano
Copy link
Contributor Author

Fixed the PR per the discussion at whatwg/fetch#1144.

docs/index.bs Outdated Show resolved Hide resolved
@yutakahirano yutakahirano changed the title Have "Handle Fetch" return the request body in addition to response Have "Handle Fetch" return error when request's streaming body is unusable Feb 16, 2021
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably also needs review from a service worker maintainer.

@yutakahirano
Copy link
Contributor Author

@jakearchibald , can you take a look? This is part of whatwg/fetch#1144.

docs/index.bs Outdated Show resolved Hide resolved
Co-authored-by: Mattias Buelens <[email protected]>
Copy link
Contributor

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Glad this turned out so simple.

@jakearchibald
Copy link
Contributor

@yutakahirano are you happy for this to be merged?

annevk pushed a commit to whatwg/fetch that referenced this pull request Feb 18, 2021
Also stop transmitting request's body in this scenario.

Service worker PR: w3c/ServiceWorker#1563.

Tests: web-platform-tests/wpt#27325.

Fixes w3c/ServiceWorker#1560 and fixes #572.
@yutakahirano
Copy link
Contributor Author

Yeah, thank you!

@jakearchibald jakearchibald merged commit 7777030 into w3c:main Feb 18, 2021
yutakahirano added a commit to web-platform-tests/wpt that referenced this pull request Feb 18, 2021
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 24, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <[email protected]>
Co-authored-by: Anne van Kesteren <[email protected]>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Feb 25, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: fc2a98935821f5df9bf73b8642ff68ab95e1ea17
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Feb 25, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: fc2a98935821f5df9bf73b8642ff68ab95e1ea17
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Feb 25, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: fc2a98935821f5df9bf73b8642ff68ab95e1ea17
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 5, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <[email protected]>
Co-authored-by: Anne van Kesteren <[email protected]>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 8, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <[email protected]>
Co-authored-by: Anne van Kesteren <[email protected]>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Mar 8, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <[email protected]>
Co-authored-by: Anne van Kesteren <[email protected]>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Mar 10, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: 2472b38eb2f886421d5a062314a87dc33029a393
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Mar 10, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: 02b382fb279e8edb2435787d95fd519f036320b3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Mar 10, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: 2472b38eb2f886421d5a062314a87dc33029a393
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Mar 10, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: 02b382fb279e8edb2435787d95fd519f036320b3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Mar 10, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: 2472b38eb2f886421d5a062314a87dc33029a393
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Mar 10, 2021
…before network fallback, a=testonly

Automatic update from web-platform-tests
Test cases where request body gets used before network fallback (#27325)

Tests for whatwg/fetch#1144 and w3c/ServiceWorker#1563.

Co-authored-by: Yutaka Hirano <yhiranochrmomium.org>
Co-authored-by: Anne van Kesteren <annevkannevk.nl>
--

wpt-commits: c30545df6a50c61f3673ed952c78c0a607100d45
wpt-pr: 27325

UltraBlame original commit: 02b382fb279e8edb2435787d95fd519f036320b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants