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

Unified Diff: content/browser/frame_host/frame_tree_browsertest.cc

Issue 2940553003: Failure in reading Blob URL should results in network error
Patch Set: . Created 3 years, 6 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 | « content/browser/blob_storage/blob_url_unittest.cc ('k') | storage/browser/blob/blob_url_request_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree_browsertest.cc
diff --git a/content/browser/frame_host/frame_tree_browsertest.cc b/content/browser/frame_host/frame_tree_browsertest.cc
index ac1b31f7710a413c2886b5fc6fc1c7385b3bbe97..288e19202a844b572f8f1b7576e059e36622c4dd 100644
--- a/content/browser/frame_host/frame_tree_browsertest.cc
+++ b/content/browser/frame_host/frame_tree_browsertest.cc
@@ -727,38 +727,4 @@ class IsolateIcelandFrameTreeBrowserTest : public ContentBrowserTest {
DISALLOW_COPY_AND_ASSIGN(IsolateIcelandFrameTreeBrowserTest);
};
-// Regression test for https://crbug.com/644966
-IN_PROC_BROWSER_TEST_F(IsolateIcelandFrameTreeBrowserTest,
- ProcessSwitchForIsolatedBlob) {
- // Set up an iframe.
- WebContents* contents = shell()->web_contents();
- FrameTreeNode* root =
- static_cast<WebContentsImpl*>(contents)->GetFrameTree()->root();
- GURL main_url(embedded_test_server()->GetURL(
- "a.com", "/cross_site_iframe_factory.html?a(a)"));
- EXPECT_TRUE(NavigateToURL(shell(), main_url));
-
- // The navigation targets an invalid blob url; that's intentional to trigger
- // an error response. The response should commit in a process dedicated to
- // http://b.is.
- std::string result;
- EXPECT_TRUE(ExecuteScriptAndExtractString(
- root,
- "var iframe_element = document.getElementsByTagName('iframe')[0];"
- "iframe_element.onload = () => {"
- " domAutomationController.send('done');"
- "};"
- "iframe_element.src = 'blob:http://b.is:2932/';",
- &result));
- WaitForLoadStop(contents);
-
- // Make sure we did a process transfer back to "b.is".
- EXPECT_EQ(
- " Site A ------------ proxies for B\n"
- " +--Site B ------- proxies for A\n"
- "Where A = http://a.com/\n"
- " B = http://b.is/",
- FrameTreeVisualizer().DepictFrameTree(root));
-}
-
} // namespace content
« no previous file with comments | « content/browser/blob_storage/blob_url_unittest.cc ('k') | storage/browser/blob/blob_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698