forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass IsolatedOriginSource to SiteInstance::StartIsolatingSite().
Currently, SiteInstance::StartIsolatingSite implicitly assumes that the added isolated origin is from the USER_TRIGGERED IsolatedOriginSource. This is no longer the case with the addition of isolation triggered by COOP headers, which should use WEB_TRIGGERED. This CL adds a param to StartIsolatingSite, so callers can specify the proper source, and fixes the COOP isolation caller to pass WEB_TRIGGERED. A couple of unit tests are fixed to pass the TEST source. There should be no behavior changes for the other callers -- site isolation based on passwords, OAuth, and payment API is still considered USER_TRIGGERED. This will be needed in followup work on preserving COOP-isolated origins across restarts, since the storage policies for web-triggered isolated origins will be different from user-triggered ones. Bug: 1018656 Change-Id: Ic6124848b4ad19294e88df007463facdd88c0957 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877364 Reviewed-by: Peter Conn <peconn@chromium.org> Reviewed-by: Vadym Doroshenko <dvadym@chromium.org> Reviewed-by: Clark DuVall <cduvall@chromium.org> Reviewed-by: rajendrant <rajendrant@chromium.org> Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org> Commit-Queue: rajendrant <rajendrant@chromium.org> Auto-Submit: Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#880526}
- Loading branch information
Alex Moshchuk
authored and
Chromium LUCI CQ
committed
May 7, 2021
1 parent
b0fb0bc
commit 53cbc6d
Showing
12 changed files
with
88 additions
and
51 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
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
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
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