-
Notifications
You must be signed in to change notification settings - Fork 313
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
addRoutes should check for requestMethod #1747
Comments
Merged
sounds good to me. |
Also filed https://issues.chromium.org/issues/391722219 to address this in Chromium. |
yoshisatoyanagisawa
added a commit
that referenced
this issue
Jan 27, 2025
As suggested in #1747, addRoutes() checks requestMethod is valid, and matching will happens with a normalized method.
The specification has been updated to follow the suggestions. |
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jan 28, 2025
As proposed in w3c/ServiceWorker#1747, let me make the Chromium validate the requestMethod with https://fetch.spec.whatwg.org/#concept-method and https://fetch.spec.whatwg.org/#forbidden-method There is also ongoing spec change in: w3c/ServiceWorker#1748 Change-Id: I34b4ebb467b7e45bf36d972764c2cfaf8b059019 Bug: 391722219
aarongable
pushed a commit
to chromium/chromium
that referenced
this issue
Jan 28, 2025
As proposed in w3c/ServiceWorker#1747, let me make the Chromium validate the requestMethod with https://fetch.spec.whatwg.org/#concept-method and https://fetch.spec.whatwg.org/#forbidden-method There is also ongoing spec change in: w3c/ServiceWorker#1748 Change-Id: I34b4ebb467b7e45bf36d972764c2cfaf8b059019 Bug: 391722219 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6191305 Reviewed-by: Keita Suzuki <[email protected]> Reviewed-by: Shunya Shishido <[email protected]> Reviewed-by: Takashi Toyoshima <[email protected]> Commit-Queue: Yoshisato Yanagisawa <[email protected]> Reviewed-by: Minoru Chikamune <[email protected]> Cr-Commit-Position: refs/heads/main@{#1412047}
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jan 28, 2025
As proposed in w3c/ServiceWorker#1747, let me make the Chromium validate the requestMethod with https://fetch.spec.whatwg.org/#concept-method and https://fetch.spec.whatwg.org/#forbidden-method There is also ongoing spec change in: w3c/ServiceWorker#1748 Change-Id: I34b4ebb467b7e45bf36d972764c2cfaf8b059019 Bug: 391722219 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6191305 Reviewed-by: Keita Suzuki <[email protected]> Reviewed-by: Shunya Shishido <[email protected]> Reviewed-by: Takashi Toyoshima <[email protected]> Commit-Queue: Yoshisato Yanagisawa <[email protected]> Reviewed-by: Minoru Chikamune <[email protected]> Cr-Commit-Position: refs/heads/main@{#1412047}
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jan 28, 2025
As proposed in w3c/ServiceWorker#1747, let me make the Chromium validate the requestMethod with https://fetch.spec.whatwg.org/#concept-method and https://fetch.spec.whatwg.org/#forbidden-method There is also ongoing spec change in: w3c/ServiceWorker#1748 Change-Id: I34b4ebb467b7e45bf36d972764c2cfaf8b059019 Bug: 391722219 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6191305 Reviewed-by: Keita Suzuki <[email protected]> Reviewed-by: Shunya Shishido <[email protected]> Reviewed-by: Takashi Toyoshima <[email protected]> Commit-Queue: Yoshisato Yanagisawa <[email protected]> Reviewed-by: Minoru Chikamune <[email protected]> Cr-Commit-Position: refs/heads/main@{#1412047}
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this issue
Jan 29, 2025
…utes(), a=testonly Automatic update from web-platform-tests Check the requestMethod field with addRoutes() As proposed in w3c/ServiceWorker#1747, let me make the Chromium validate the requestMethod with https://fetch.spec.whatwg.org/#concept-method and https://fetch.spec.whatwg.org/#forbidden-method There is also ongoing spec change in: w3c/ServiceWorker#1748 Change-Id: I34b4ebb467b7e45bf36d972764c2cfaf8b059019 Bug: 391722219 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6191305 Reviewed-by: Keita Suzuki <[email protected]> Reviewed-by: Shunya Shishido <[email protected]> Reviewed-by: Takashi Toyoshima <[email protected]> Commit-Queue: Yoshisato Yanagisawa <[email protected]> Reviewed-by: Minoru Chikamune <[email protected]> Cr-Commit-Position: refs/heads/main@{#1412047} -- wpt-commits: 0f129137aac7bdec6c498430b8cde75cc5b325fe wpt-pr: 50325
i3roly
pushed a commit
to i3roly/firefox-dynasty
that referenced
this issue
Feb 5, 2025
…utes(), a=testonly Automatic update from web-platform-tests Check the requestMethod field with addRoutes() As proposed in w3c/ServiceWorker#1747, let me make the Chromium validate the requestMethod with https://fetch.spec.whatwg.org/#concept-method and https://fetch.spec.whatwg.org/#forbidden-method There is also ongoing spec change in: w3c/ServiceWorker#1748 Change-Id: I34b4ebb467b7e45bf36d972764c2cfaf8b059019 Bug: 391722219 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6191305 Reviewed-by: Keita Suzuki <[email protected]> Reviewed-by: Shunya Shishido <[email protected]> Reviewed-by: Takashi Toyoshima <[email protected]> Commit-Queue: Yoshisato Yanagisawa <[email protected]> Reviewed-by: Minoru Chikamune <[email protected]> Cr-Commit-Position: refs/heads/main@{#1412047} -- wpt-commits: 0f129137aac7bdec6c498430b8cde75cc5b325fe wpt-pr: 50325
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Route condition requestMethod is compared to a request method as part of https://w3c.github.io/ServiceWorker/#match-router-condition.
Like done for Request constructor, requestMethod should be:
The text was updated successfully, but these errors were encountered: