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) { |