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

Editorial: only invoke response's location URL once #6340

Merged
merged 3 commits into from
Feb 3, 2021
Merged

Conversation

annevk
Copy link
Member

@annevk annevk commented Jan 29, 2021

Complements whatwg/fetch#1149.

cc @davidben @wanderview

  • At least two implementers are interested (and none opposed):
    • See Fetch PR
  • Tests are written and can be reviewed and commented upon at:
    • See Fetch PR
  • Implementation bugs are filed:
    • See Fetch PR

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


/browsing-the-web.html ( diff )

@annevk annevk added topic: navigation integration Better coordination across standards needed labels Jan 29, 2021
@annevk annevk requested a review from domenic January 29, 2021 09:44
@annevk annevk changed the title Adopt Fetch's extract a location URL Editorial: only invoke response's location URL once Jan 30, 2021
@annevk
Copy link
Member Author

annevk commented Jan 30, 2021

Maybe the commit message should point out that now Fetch and HTML will both invoke location URL once when processing navigation redirects to HTTP(S) schemes. But as the operation should be idempotent that is fine.

annevk added a commit to whatwg/fetch that referenced this pull request Feb 2, 2021
It does not need to be stored on a response and therefore resulted in confusion.

Also clarify that synthetic responses need to have an absolute URL in the Location header field value (Response.redirect() does this automatically).

Corresponding HTML PR: whatwg/html#6340.

Tests: https://chromium-review.googlesource.com/c/chromium/src/+/2665871.

Closes #631, closes #633, closes #958, closes #1146, and closes web-platform-tests/wpt#10449. (Some of these can be closed due to #1030 making response's URL no longer null for network responses.)
@annevk
Copy link
Member Author

annevk commented Feb 3, 2021

Ping.

@annevk annevk merged commit 4d832b0 into main Feb 3, 2021
@annevk annevk deleted the annevk/location-url branch February 3, 2021 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Better coordination across standards needed topic: fetch topic: navigation
Development

Successfully merging this pull request may close these issues.

2 participants