Add test expectations around changing minimum BrowsingInstance ID.
This modifies an existing test, DynamicIsolatedOriginTest.NewBrowsingInstanceInOldProcess, to explicitly exercise a scenario where a process's minimum BrowsingInstance ID changes, and where this may affect a CanAccessDataForOrigin decision. In particular, this would happen if the new minimum BrowsingInstance ID makes a particular origin eligible for isolation. Currently, the minimum BrowsingInstance ID stored for a process in ChildProcessSecurityPolicy does not change even if the corresponding BrowsingInstance goes away, so the outcome of CanAccessDataForOrigin can't change. This will change once multiple BrowsingInstances are tracked for each process, rather than just a minimum ID, in issue 1135539. In particular, after this change, CanAccessDataForOrigin may start denying access to an origin which is considered isolated in all of the process's remaining BrowsingInstances, due to citadel enforcement. Bug: 1135539 Change-Id: I8d388f6099f224172b8a77129362de8300e37ecc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2528128Reviewed-by:Charlie Reis <creis@chromium.org> Commit-Queue: Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#825683}
Showing
Please register or sign in to comment