summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prerender/prerender_browsertest.cc
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 20:13:32 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 20:13:32 +0000
commit52a6a1c9278e0b6ead61278ca2ea83e67e90f048 (patch)
treed6b8a02df9cf34bd0430674265c3e7314e462309 /chrome/browser/prerender/prerender_browsertest.cc
parentc90c6ca59378d7e86d1a2f28fe96bada35df1508 (diff)
downloadchromium_src-52a6a1c9278e0b6ead61278ca2ea83e67e90f048.zip
chromium_src-52a6a1c9278e0b6ead61278ca2ea83e67e90f048.tar.gz
chromium_src-52a6a1c9278e0b6ead61278ca2ea83e67e90f048.tar.bz2
Fix for not delay loading plugins in subframes when prerendering.
BUG=71966 TEST=PrerenderBrowserTest.PrerenderIframeDelayLoadPlugin Review URL: http://codereview.chromium.org/6502005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75171 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prerender/prerender_browsertest.cc')
-rw-r--r--chrome/browser/prerender/prerender_browsertest.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/prerender/prerender_browsertest.cc b/chrome/browser/prerender/prerender_browsertest.cc
index 18710a0..7972ae8 100644
--- a/chrome/browser/prerender/prerender_browsertest.cc
+++ b/chrome/browser/prerender/prerender_browsertest.cc
@@ -233,6 +233,14 @@ IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderDelayLoadPlugin) {
NavigateToDestURL();
}
+// Checks that plugins in an iframe are not loaded while a page is
+// being preloaded, but are loaded when the page is displayed.
+IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderIframeDelayLoadPlugin) {
+ PrerenderTestURL("prerender_iframe_plugin_delay_load.html",
+ FINAL_STATUS_USED, 1);
+ NavigateToDestURL();
+}
+
// Renders a page that contains a prerender link to a page that contains an
// iframe with a source that requires http authentication. This should not
// prerender successfully.