Index: third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-about-blank.html |
diff --git a/third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-about-blank.html b/third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-about-blank.html |
index 80f59f51148f61d2b98b19858eaeca2c878b7dd9..12f936b0021eb781397f3137d36d33caf9a7845d 100644 |
--- a/third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-about-blank.html |
+++ b/third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-about-blank.html |
@@ -1,32 +1,11 @@ |
<html> |
<head> |
<script src="../../resources/js-test.js"></script> |
-<script> |
- |
-if (window.testRunner) |
- testRunner.dumpAsText(); |
- |
-window.onload = function() { |
- if (self.containing_frame.document.getElementById('plugin').destroyStream) |
- testPassed("containing frame was able to instantiate plugin"); |
- else |
- testFailed("containing frame was unable to instantiate plugin"); |
- |
- isSuccessfullyParsed(); |
-} |
- |
-</script> |
</head> |
-<body> |
- <iframe name="containing_frame" |
- src="resources/sandboxed-iframe-about-blank.html"> |
- </iframe> |
- |
- <p id="description"></p> |
- |
- <div id="console"></div> |
- |
+<body onload="finishJSTest()"> |
+ <iframe src="resources/sandboxed-iframe-about-blank.html"></iframe> |
<script> |
+ jsTestIsAsync = true; |
description("This test verifies that sandboxing 'about:blank' does not make the containing frame sandboxed."); |
</script> |
</body> |