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

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

Issue 2736863003: Test that no crash happens with the CWS error page.
Patch Set: Created 3 years, 9 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/process_management_browsertest.cc
diff --git a/chrome/browser/extensions/process_management_browsertest.cc b/chrome/browser/extensions/process_management_browsertest.cc
index 012fb553d0cf27c65aba7a9f90c980fe9cedae4e..050410226712b6639e2aa33e98ccee2ef913a344 100644
--- a/chrome/browser/extensions/process_management_browsertest.cc
+++ b/chrome/browser/extensions/process_management_browsertest.cc
@@ -390,3 +390,14 @@ IN_PROC_BROWSER_TEST_F(ChromeWebStoreProcessTest,
// Verify that Chrome Web Store is isolated in a separate renderer process.
EXPECT_NE(old_process_host, new_process_host);
}
+
+// This problem is similar to crbug.com/622385. It happens when an iframe error
nasko 2017/03/09 05:07:22 nit: https://crbug.com...
arthursonzogni 2017/03/09 15:40:52 Done.
+// page with the Chrome Web Store URL is displayed and the iframe and the
+// embedder reside in the same process. In this case, a renderer is killed with
nasko 2017/03/09 05:07:22 nit: s/embedder/parent document/, s/a renderer/the
arthursonzogni 2017/03/09 15:40:52 Done.
+// the RFH_CAN_COMMIT_URL_BLOCKED IPC. This test asserts that no crash happens.
nasko 2017/03/09 05:07:22 RFH_CAN_COMMIT_URL_BLOCKED is not an IPC, but an e
arthursonzogni 2017/03/09 15:40:52 Done.
+IN_PROC_BROWSER_TEST_F(ChromeWebStoreProcessTest,
+ ChromeWebStoreBlockedByFrameSrc) {
+ GURL url = embedded_test_server()->GetURL(
+ "/extensions/webstore_blocked_by_frame_src.html");
+ ui_test_utils::NavigateToURL(browser(), url);
nasko 2017/03/09 05:07:22 How does this test assert that there is no crash?
arthursonzogni 2017/03/09 15:40:52 Currently, there is no crash but a DCHECK I put a
+}

Powered by Google App Engine
This is Rietveld 408576698