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

Unified Diff: ppapi/tests/test_case.html

Issue 2123093005: Add a test for Flash Fullscreen from a cross-site subframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more fix Created 4 years, 5 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
Index: ppapi/tests/test_case.html
diff --git a/ppapi/tests/test_case.html b/ppapi/tests/test_case.html
index 529c97448c1aaea0db5241cd429f459e6ada0c20..e28091e7db4ca31c38a451a44c83488ba696d4b9 100644
--- a/ppapi/tests/test_case.html
+++ b/ppapi/tests/test_case.html
@@ -60,8 +60,9 @@ function DidExecuteTests(result) {
return;
// Otherwise, we are in a subframe, so we can use this opportunity to resize
- // ourselves.
- AdjustHeight(window);
+ // ourselves. This can only be done if the parent frame has the same origin.
+ if (window.frameElement)
+ AdjustHeight(window);
}
function AppendFrame(testcase, i) {

Powered by Google App Engine
This is Rietveld 408576698