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.
Fix test failing with kProcessSharingWithStrictSiteInstances enabled.
This change fixes a few tests that were failing when the "default process" process model is enabled. - Removed DCHECK from RemoteFrameData and removed the tests that verified the DCHECK fired. The default process model allows remote frames to be in the same process as a local frame so this check is overly strict. - Fixed a few tests that needed origins isolated so that the default process mode would not place multiple sites in a single process when the test explicitly needed multiple processes. - Made the ProcessSharingWithStrictSiteInstances feature flag available to some android tests so they could change their expectations when the flag was set. The expectations needed to be modified to reflect that the default process mode puts multiple sites in a single process. - Changed SiteInstanceImpl::DoesSiteInfoForURLMatch() to use an exact SiteInfo comparison because COOPIsolationTest.SameOrigin would fail in default process mode with the "same principal" match. - Added MayReuseAndIsSuitable() checks to SiteInstanceImpl::GetDefaultProcessIfUsable() and MaybeSetBrowsingInstanceDefaultProcess() because tests were failing because the default process was being used for unsuitable SiteInstances which were causing tests to crash. Bug: 1158650 Change-Id: I7c5bea2739f2695ca2da2a02c42ee4cce822baa3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2792001 Reviewed-by: Chris Hamilton <chrisha@chromium.org> Reviewed-by: Nasko Oskov <nasko@chromium.org> Commit-Queue: Aaron Colwell <acolwell@chromium.org> Cr-Commit-Position: refs/heads/master@{#869538}
- Loading branch information
Showing
10 changed files
with
86 additions
and
54 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