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

Unified Diff: chrome/browser/extensions/app_process_apitest.cc

Issue 7624011: Keep normal popups opened from same-origin iframes in an extension process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Note implications for apps in test. Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/app_process_apitest.cc
diff --git a/chrome/browser/extensions/app_process_apitest.cc b/chrome/browser/extensions/app_process_apitest.cc
index 7b56929dc7ebc77f6cf02c7ac36d4fed4ec744b4..957718fede1322cabfe78fe53dd68d4280e52514 100644
--- a/chrome/browser/extensions/app_process_apitest.cc
+++ b/chrome/browser/extensions/app_process_apitest.cc
@@ -133,8 +133,12 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, MAYBE_AppProcess) {
WindowOpenHelper(browser(), host,
base_url.Resolve("path2/empty.html"), true);
// This should open in a new process (i.e., false for the last argument).
+ // TODO(creis): Do we want the fix to change this behavior? The alternative
+ // is to require the opener URL to be a non-extension URL in order to keep the
Mihai Parparita -not on Chrome 2011/08/17 20:33:09 I think requiring this makes sense (it would still
Charlie Reis 2011/08/17 21:55:24 Agreed-- I've updated the logic so we don't affect
+ // popup in process. (I'm not sure whether we want an app page to open a
+ // non-app popup in the same process, just because they're same origin.)
WindowOpenHelper(browser(), host,
- base_url.Resolve("path3/empty.html"), false);
+ base_url.Resolve("path3/empty.html"), true);
// Now let's have these pages navigate, into or out of the extension web
// extent. They should switch processes.
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698