Commit 249a9e27 authored by Aaron Colwell's avatar Aaron Colwell Committed by Commit Bot

Isolate hosted apps.

Hosted apps no longer need to be a special case that does not require
a dedicated process. This change removes the special case logic and
isolates all extensions and all hosted apps in their own processes.

Change-Id: Id6322038fcf5bef91775cec20ea61cf7a3f6b458
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1628334Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Commit-Queue: Aaron Colwell <acolwell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664018}
parent 687054d6
......@@ -411,20 +411,8 @@ bool ChromeContentBrowserClientExtensionsPart::DoesSiteRequireDedicatedProcess(
const GURL& effective_site_url) {
const Extension* extension = GetEnabledExtensions(browser_or_resource_context)
->GetExtensionOrAppByURL(effective_site_url);
if (!extension)
return false;
// Always isolate Chrome Web Store.
if (extension->id() == kWebStoreAppId)
return true;
// Extensions should be isolated, except for hosted apps. Isolating hosted
// apps is a good idea, but ought to be a separate knob.
if (extension->is_hosted_app())
return false;
// Isolate all extensions.
return true;
return extension != nullptr;
}
// static
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment