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

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

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Some cleanup Created 9 years 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/app_process_apitest.cc
diff --git a/chrome/browser/extensions/app_process_apitest.cc b/chrome/browser/extensions/app_process_apitest.cc
index fa4251ac7a0a60cae888390a6a456e9f83326786..99623dcc4b4789d3aa000719a55e27f05e99e1e7 100644
--- a/chrome/browser/extensions/app_process_apitest.cc
+++ b/chrome/browser/extensions/app_process_apitest.cc
@@ -152,12 +152,9 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, AppProcess) {
WindowOpenHelper(browser(), host,
base_url.Resolve("path2/empty.html"), true);
LOG(INFO) << "WindowOpenHelper 2.";
- // TODO(creis): This should open in a new process (i.e., false for the last
- // argument), but we temporarily avoid swapping processes away from an app
- // until we're able to support cross-process postMessage calls.
- // See crbug.com/59285.
+ // This should open in a new process (i.e., false for the last argument).
WindowOpenHelper(browser(), host,
- base_url.Resolve("path3/empty.html"), true);
+ base_url.Resolve("path3/empty.html"), false);
LOG(INFO) << "WindowOpenHelper 3.";
// Now let's have these pages navigate, into or out of the extension web
@@ -168,10 +165,7 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, AppProcess) {
LOG(INFO) << "NavigateTabHelper 1.";
NavigateTabHelper(browser()->GetTabContentsAt(3), app_url);
LOG(INFO) << "NavigateTabHelper 2.";
- // TODO(creis): This should swap out of the app's process (i.e., EXPECT_NE),
- // but we temporarily avoid swapping away from an app in case the window
- // tries to send a postMessage to the app. See crbug.com/59285.
- EXPECT_EQ(host->process(),
+ EXPECT_NE(host->process(),
browser()->GetTabContentsAt(2)->render_view_host()->process());
EXPECT_EQ(host->process(),
browser()->GetTabContentsAt(3)->render_view_host()->process());
@@ -368,7 +362,7 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, MAYBE_AppProcessRedirectBack) {
// 8. Renderer navigates to empty.html, and finishes loading, counting as the
// third load stop
Matt Perry 2011/12/20 19:46:36 This comment should be updated. We were trying to
supersat 2011/12/23 03:22:46 Done.
ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(
- browser(), base_url.Resolve("path1/redirect.html"), 3);
+ browser(), base_url.Resolve("path1/redirect.html"), 2);
// 3 tabs, including the initial about:blank. The last 2 should be the same
// process.

Powered by Google App Engine
This is Rietveld 408576698