Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3682)

Unified Diff: chrome/browser/extensions/api/extension_action/browser_action_apitest.cc

Issue 2850793005: Remove command line/field trial support and configs for Isolate Extensions. (Closed)
Patch Set: Remove more cases of "isolate.*extension" Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/extension_action/browser_action_apitest.cc
diff --git a/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc b/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc
index 5250c1e77cf231954f3ef5b7c953e0d25e962005..3187355606386bfa839c79b690e3edc61f61734d 100644
--- a/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc
+++ b/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc
@@ -731,7 +731,7 @@ IN_PROC_BROWSER_TEST_F(BrowserActionApiTest, TestTriggerBrowserAction) {
}
// Test that a browser action popup with a web iframe works correctly. This
-// primarily targets --isolate-extensions and --site-per-process modes, where
+// primarily targets site isolation modes, such as --site-per-process, where
// the iframe runs in a separate process. See https://crbug.com/546267.
ncarter (slow) 2017/05/01 20:15:19 "This primarily targets ..." -> "The iframe is exp
nasko 2017/05/01 21:25:37 Done.
IN_PROC_BROWSER_TEST_F(BrowserActionApiTest, BrowserActionPopupWithIframe) {
host_resolver()->AddRule("*", "127.0.0.1");
@@ -950,31 +950,12 @@ class NavigatingExtensionPopupBrowserTest : public BrowserActionApiTest {
IN_PROC_BROWSER_TEST_F(NavigatingExtensionPopupBrowserTest, Webpage) {
GURL web_url(embedded_test_server()->GetURL("foo.com", "/title1.html"));
- // With and without --isolate-extension the GET request will be blocked in
- // ExtensionViewHost::OpenURLFromTab (which silently drops navigations with
- // CURRENT_TAB disposition).
+ // The GET request will be blocked in ExtensionViewHost::OpenURLFromTab
+ // (which silently drops navigations with CURRENT_TAB disposition).
TestPopupNavigationViaGet(web_url, EXPECTING_NAVIGATION_FAILURE);
// POST requests don't go through ExtensionViewHost::OpenURLFromTab.
- //
- // Without --isolate-extensions, there is no process transfer to isolate
- // extensions into separate processes and therefore
- // 1) navigating a popup extension to a webpage will succeed (because
- // ExtensionViewHost::ShouldTransferNavigation won't get called when there
- // is no transfer),
- // 2) the webpage will stay in the same renderer process.
- // This behavior is okay without --isolate-extensions (where webpages and
- // extensions can coexist in the same process in other scenarios) - therefore
- // no test verification is needed in this case.
- //
- // With --isolate-extensions the navigation should be blocked by
- // ExtensionViewHost::ShouldTransferNavigation. Test verification is
- // important in --isolate-extensions mode, because this mode is all about
- // isolating extensions and webpages into separate processes and therefore we
- // need to ensure the behavior described above doesn't occur (i.e. that
- // instead the webpage navigation in an extension popup fails).
- if (extensions::IsIsolateExtensionsEnabled())
- TestPopupNavigationViaPost(web_url, EXPECTING_NAVIGATION_FAILURE);
+ TestPopupNavigationViaPost(web_url, EXPECTING_NAVIGATION_FAILURE);
}
// Tests that an extension pop-up can be navigated to another page

Powered by Google App Engine
This is Rietveld 408576698