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

Clarify that request.origin cannot be "client" at certain points #1776

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

simonwuelker
Copy link
Contributor

@simonwuelker simonwuelker commented Sep 24, 2024

Previously, the code implicitly guaranteed that a requests origin could not be "client" after Step 10 of
https://fetch.spec.whatwg.org/#concept-fetch.

Other algorithms then simply relied on this fact. This is confusing. Instead, we now explicitly assert that the origin is not client whereever we need it.

This closes #1773


(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

fetch.bs Outdated Show resolved Hide resolved
fetch.bs Outdated Show resolved Hide resolved
fetch.bs Outdated Show resolved Hide resolved
fetch.bs Outdated Show resolved Hide resolved
Previously, the code implicitly guaranteed that a requests
origin could not be "client" after Step 10 of
https://fetch.spec.whatwg.org/#concept-fetch.

Other algorithms then simply relied on this fact. This is
confusing. Instead, we now explicitly assert that the origin
is not client whereever we need it.

Signed-off-by: Simon Wülker <[email protected]>
@simonwuelker simonwuelker force-pushed the client-asserts branch 2 times, most recently from 62bf823 to 4b23d5e Compare September 25, 2024 13:27
@annevk annevk merged commit 761c414 into whatwg:main Oct 1, 2024
2 checks passed
@annevk
Copy link
Member

annevk commented Oct 1, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Unclear how to serialize request origin "client"
2 participants