| Index: content/browser/browser_plugin/browser_plugin_host_browsertest.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
|
| index 97203e2fe0fb73df95ad332f482649ce615c9602..c1852917cf0bd6676cdc51d31b3e434b9af635b6 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
|
| @@ -605,35 +605,6 @@ IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, VerifyInputMethodActive) {
|
| EXPECT_TRUE(rvh->input_method_active());
|
| }
|
|
|
| -// Verify that navigating to an invalid URL (e.g. 'http:') doesn't cause
|
| -// a crash.
|
| -IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, DoNotCrashOnInvalidNavigation) {
|
| - const char kEmbedderURL[] = "/browser_plugin_embedder.html";
|
| - StartBrowserPluginTest(kEmbedderURL, kHTMLForGuest, true, std::string());
|
| - TestBrowserPluginGuestDelegate* delegate =
|
| - new TestBrowserPluginGuestDelegate();
|
| - test_guest()->SetDelegate(delegate);
|
| -
|
| - const char kValidSchemeWithEmptyURL[] = "http:";
|
| - ExecuteSyncJSFunction(
|
| - test_embedder()->web_contents()->GetMainFrame(),
|
| - base::StringPrintf("SetSrc('%s');", kValidSchemeWithEmptyURL));
|
| - EXPECT_TRUE(delegate->load_aborted());
|
| - EXPECT_FALSE(delegate->load_aborted_url().is_valid());
|
| - EXPECT_EQ(kValidSchemeWithEmptyURL,
|
| - delegate->load_aborted_url().possibly_invalid_spec());
|
| -
|
| - delegate->ResetStates();
|
| -
|
| - // Attempt a navigation to chrome-guest://abc123, which is a valid URL. But it
|
| - // should be blocked because the scheme isn't web-safe or a pseudo-scheme.
|
| - ExecuteSyncJSFunction(
|
| - test_embedder()->web_contents()->GetMainFrame(),
|
| - base::StringPrintf("SetSrc('%s://abc123');", kGuestScheme));
|
| - EXPECT_TRUE(delegate->load_aborted());
|
| - EXPECT_TRUE(delegate->load_aborted_url().is_valid());
|
| -}
|
| -
|
| // Tests involving the threaded compositor.
|
| class BrowserPluginThreadedCompositorTest : public BrowserPluginHostTest {
|
| public:
|
|
|