-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FedCM] Allow mismatching trailing slash for provider urls
The provider url from the API call must match the one in the manifest list by design. However, it's possible for developers to append a trailing slash in one of them but not in the other one especially when there's path involved. Besides, for GURL without path, |provider_.spec()| will append a trailing slash automatically. Therefore we relax the requirement by allowing mismatch on trailing slash. (cherry picked from commit 6aa3eee) Bug: 1316823 Change-Id: If28c8d94209a990f6136417dd6efb61ee2ba3967 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3589174 Reviewed-by: Sam Goto <goto@chromium.org> Commit-Queue: Yi Gu <yigu@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#993368} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3594941 Auto-Submit: Yi Gu <yigu@chromium.org> Reviewed-by: Peter Kotwicz <pkotwicz@chromium.org> Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> Cr-Commit-Position: refs/branch-heads/5005@{#44} Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
- Loading branch information
Showing
2 changed files
with
108 additions
and
18 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