Skip to content
Commit 9fa87659 authored by Alex Moshchuk's avatar Alex Moshchuk Committed by Commit Bot
Browse files

Disable opt-in origin isolation when under the memory threshold.

This CL adds logic to not honor opt-in origin isolation (typically
specified via the Origin-Isolation header) if the environment has a
site isolation memory threshold in effect, and the device is below
that threshold.  Memory thresholds are used on Android, where the
default threshold is currently 1900MB (overridable via field trials),
and where full site isolation is disabled by default.  They aren't
used on desktop, so this change does not apply to desktop platforms.

An exception is made to still honor opt-in origin isolation if full
site isolation is in effect, such as if the user manually turned it on
via chrome://flags or if this was done via enterprise policy.
Similarly, if the user manually turns off site isolation via
--disable-site-isolation-trials (or the equivalent chrome://flags
entry), that also disables opt-in origin isolation, including on
desktop platforms.

Bug: 1145860
Change-Id: Ibc5b2f6100ea9f6e2e46e25cefb52ba51ac697f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2520086


Reviewed-by: default avatarCharlie Reis <creis@chromium.org>
Reviewed-by: default avatarJames MacLean <wjmaclean@chromium.org>
Commit-Queue: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824763}
parent 4fd9ddf8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment