-
Notifications
You must be signed in to change notification settings - Fork 78
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
Revise port matching logic #596
Conversation
We need to ensure that: 1. We are consistently using strings 2. We handle cases where the default port isn't set 3. We handle the case where both ports are unset closes #591
@annevk have time to take a look? |
We don't allow url encoded hosts but do permit ports with leading 0s. w3c/webappsec-csp#597 w3c/webappsec-csp#596 Bug: 1418009 Change-Id: Ie8ddc509b63e1aa9d35d4e2b989df63483bfca6a
We don't allow url encoded hosts but do permit ports with leading 0s. w3c/webappsec-csp#597 w3c/webappsec-csp#596 Bug: 1418009 Change-Id: Ie8ddc509b63e1aa9d35d4e2b989df63483bfca6a
We don't allow url encoded hosts but do permit ports with leading 0s. w3c/webappsec-csp#597 w3c/webappsec-csp#596 Bug: 1418009 Change-Id: Ie8ddc509b63e1aa9d35d4e2b989df63483bfca6a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4454670 Reviewed-by: Dustin Mitchell <djmitche@chromium.org> Commit-Queue: Ari Chivukula <arichiv@chromium.org> Cr-Commit-Position: refs/heads/main@{#1134816}
We don't allow url encoded hosts but do permit ports with leading 0s. w3c/webappsec-csp#597 w3c/webappsec-csp#596 Bug: 1418009 Change-Id: Ie8ddc509b63e1aa9d35d4e2b989df63483bfca6a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4454670 Reviewed-by: Dustin Mitchell <djmitche@chromium.org> Commit-Queue: Ari Chivukula <arichiv@chromium.org> Cr-Commit-Position: refs/heads/main@{#1134816}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antosart should have a look at this as well.
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
@arichiv what did you think of making it accept a URL to compare against instead? |
It does now, I just updated it |
(The build error is unrelated, I am fixing it in #602) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how this ended up using url directly. I'll wait if @annevk has other comments, but this looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some tiny nits.
String formatting should maybe also consistently be "...
" rather than sometimes "..."?
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
SHA: ea230bc Reason: push, by arichiv Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…stonly Automatic update from web-platform-tests [CSP] WPTs for matching edge cases We don't allow url encoded hosts but do permit ports with leading 0s. w3c/webappsec-csp#597 w3c/webappsec-csp#596 Bug: 1418009 Change-Id: Ie8ddc509b63e1aa9d35d4e2b989df63483bfca6a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4454670 Reviewed-by: Dustin Mitchell <djmitche@chromium.org> Commit-Queue: Ari Chivukula <arichiv@chromium.org> Cr-Commit-Position: refs/heads/main@{#1134816} -- wpt-commits: 4f8df7ab83ab1562214fcca2f67bb1718cc28808 wpt-pr: 39631
…stonly Automatic update from web-platform-tests [CSP] WPTs for matching edge cases We don't allow url encoded hosts but do permit ports with leading 0s. w3c/webappsec-csp#597 w3c/webappsec-csp#596 Bug: 1418009 Change-Id: Ie8ddc509b63e1aa9d35d4e2b989df63483bfca6a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4454670 Reviewed-by: Dustin Mitchell <djmitche@chromium.org> Commit-Queue: Ari Chivukula <arichiv@chromium.org> Cr-Commit-Position: refs/heads/main@{#1134816} -- wpt-commits: 4f8df7ab83ab1562214fcca2f67bb1718cc28808 wpt-pr: 39631
We need to ensure that:
closes #591