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

Correctly match * as a host-part. #657

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Correctly match * as a host-part. #657

merged 2 commits into from
Apr 24, 2024

Conversation

mikewest
Copy link
Member

This PR adds support for * to the host-part matching algorithm, allowing patterns like https://*:123 to correctly match any host.

Fixes #656

This PR adds support for `*` to the `host-part` matching
algorithm, allowing patterns like `https://*:123` to correctly
match any host.
@mikewest
Copy link
Member Author

@evilpie, @antosart: Mind taking a look?

@mikewest
Copy link
Member Author

@mikewest mikewest requested a review from antosart April 22, 2024 07:32
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Apr 22, 2024
This tests the change made in
w3c/webappsec-csp#657.

Bug: 334278797
Change-Id: I7ecab785ac44456af00d0ec1af3f6d09aac02782
@evilpie
Copy link
Contributor

evilpie commented Apr 23, 2024

Makes sense to me. (Currently in Firefox we disallow certain schemes for *, but that is already handled in earlier steps in the spec)

@mikewest mikewest merged commit 8fe5fe8 into main Apr 24, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Apr 24, 2024
SHA: 8fe5fe8
Reason: push, by mikewest

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
aarongable pushed a commit to chromium/chromium that referenced this pull request Apr 24, 2024
This tests the change made in
w3c/webappsec-csp#657.

Bug: 334278797
Change-Id: I7ecab785ac44456af00d0ec1af3f6d09aac02782
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5471523
Reviewed-by: Antonio Sartori <[email protected]>
Commit-Queue: Mike West <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1291742}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Apr 24, 2024
This tests the change made in
w3c/webappsec-csp#657.

Bug: 334278797
Change-Id: I7ecab785ac44456af00d0ec1af3f6d09aac02782
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5471523
Reviewed-by: Antonio Sartori <[email protected]>
Commit-Queue: Mike West <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1291742}
@mikewest mikewest deleted the mikewest-patch-1 branch April 24, 2024 08:06
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Apr 24, 2024
This tests the change made in
w3c/webappsec-csp#657.

Bug: 334278797
Change-Id: I7ecab785ac44456af00d0ec1af3f6d09aac02782
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5471523
Reviewed-by: Antonio Sartori <[email protected]>
Commit-Queue: Mike West <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1291742}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Apr 29, 2024
…st-part`., a=testonly

Automatic update from web-platform-tests
CSP: Add a test for `*` in pattern's `host-part`.

This tests the change made in
w3c/webappsec-csp#657.

Bug: 334278797
Change-Id: I7ecab785ac44456af00d0ec1af3f6d09aac02782
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5471523
Reviewed-by: Antonio Sartori <[email protected]>
Commit-Queue: Mike West <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1291742}

--

wpt-commits: d0649743f613ff12c570642bd1782433d1b0d390
wpt-pr: 45816
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Apr 30, 2024
…st-part`., a=testonly

Automatic update from web-platform-tests
CSP: Add a test for `*` in pattern's `host-part`.

This tests the change made in
w3c/webappsec-csp#657.

Bug: 334278797
Change-Id: I7ecab785ac44456af00d0ec1af3f6d09aac02782
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5471523
Reviewed-by: Antonio Sartori <[email protected]>
Commit-Queue: Mike West <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1291742}

--

wpt-commits: d0649743f613ff12c570642bd1782433d1b0d390
wpt-pr: 45816
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Jun 1, 2024
…st-part`., a=testonly

Automatic update from web-platform-tests
CSP: Add a test for `*` in pattern's `host-part`.

This tests the change made in
w3c/webappsec-csp#657.

Bug: 334278797
Change-Id: I7ecab785ac44456af00d0ec1af3f6d09aac02782
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5471523
Reviewed-by: Antonio Sartori <[email protected]>
Commit-Queue: Mike West <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1291742}

--

wpt-commits: d0649743f613ff12c570642bd1782433d1b0d390
wpt-pr: 45816
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.

host-part match doesn't handle *
3 participants