Index: chrome/browser/apps/guest_view/web_view_browsertest.cc |
diff --git a/chrome/browser/apps/guest_view/web_view_browsertest.cc b/chrome/browser/apps/guest_view/web_view_browsertest.cc |
index 750604c7d3c2ccdb91a89afbdeb3031f25385ba2..d72e4f87f4d5884ef668d4f54d6218614b967b1e 100644 |
--- a/chrome/browser/apps/guest_view/web_view_browsertest.cc |
+++ b/chrome/browser/apps/guest_view/web_view_browsertest.cc |
@@ -20,6 +20,7 @@ |
#include "chrome/browser/ui/browser_dialogs.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
#include "chrome/test/base/ui_test_utils.h" |
+#include "components/content_settings/core/browser/host_content_settings_map.h" |
#include "content/public/browser/gpu_data_manager.h" |
#include "content/public/browser/interstitial_page.h" |
#include "content/public/browser/interstitial_page_delegate.h" |
@@ -2748,6 +2749,14 @@ IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, |
TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); |
} |
+// This test tests that webview won't crash when trying to load plugin |
lazyboy
2015/04/15 19:18:27
nit:
// Tests that browser process does not crash
lfg
2015/04/15 19:22:32
Done.
|
+// resources in CONTENT_SETTING_BLOCK. |
+IN_PROC_BROWSER_TEST_F(WebViewTest, TestPlugin) { |
+ browser()->profile()->GetHostContentSettingsMap()->SetDefaultContentSetting( |
+ CONTENT_SETTINGS_TYPE_PLUGINS, CONTENT_SETTING_BLOCK); |
+ TestHelper("testPlugin", "web_view/shim", NEEDS_TEST_SERVER); |
+} |
+ |
#if defined(OS_WIN) |
// Test is disabled on Windows because it times out often. |
// http://crbug.com/403325 |