Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow trailing dot in host while checking valid origins for opt-in/out.
Prior to this CL, any origin with a trailing dot in the host name would fail the origin-validity check in ChildProcessSecurityPolicyImpl:: AddOriginIsolationStateForBrowsingInstance() during attempts to opt-in or out of origin isolation. This CL corrects this, and adds a test. (cherry picked from commit d8d31f0) Bug: 1446661 Change-Id: Iba17968adcb7d3c3af24b605f662318f5c5dc25b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4544436 Commit-Queue: James Maclean <wjmaclean@chromium.org> Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1149853} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4569065 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Reviewed-by: Rakina Zata Amni <rakina@chromium.org> Cr-Commit-Position: refs/branch-heads/5790@{#112} Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
- Loading branch information
W. James MacLean
authored and
Chromium LUCI CQ
committed
May 29, 2023
1 parent
bc23735
commit a072ee0
Showing
3 changed files
with
138 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters