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

Unified Diff: Source/web/tests/WebFrameTest.cpp

Issue 1180603002: Fix the logic that limits the number of frames in a page. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: +UAF Created 5 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 | « Source/core/html/HTMLFrameOwnerElement.cpp ('k') | Source/web/tests/data/max-frames-detach.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index bb621074e81eb74aae66bd11fb54563dd89f813e..6bb5402503e4e8b5692b19eb22999f1dcde2d02b 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -7733,4 +7733,12 @@ TEST_F(WebFrameTest, OrientationFrameDetach)
webViewImpl->mainFrameImpl()->sendOrientationChangeEvent();
}
+TEST_F(WebFrameTest, MaxFramesDetach)
+{
+ registerMockedHttpURLLoad("max-frames-detach.html");
+ FrameTestHelpers::WebViewHelper webViewHelper;
+ WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(m_baseURL + "max-frames-detach.html", true);
+ webViewImpl->mainFrameImpl()->collectGarbage();
+}
+
} // namespace blink
« no previous file with comments | « Source/core/html/HTMLFrameOwnerElement.cpp ('k') | Source/web/tests/data/max-frames-detach.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698