Index: LayoutTests/fullscreen/anonymous-block-merge-crash.html |
diff --git a/LayoutTests/fullscreen/anonymous-block-merge-crash.html b/LayoutTests/fullscreen/anonymous-block-merge-crash.html |
index b5e4b789646d5b1566f6ced2fecdd89274f215d6..1e7ed8e740a46ebe13d2fd6fe5034561e26692eb 100644 |
--- a/LayoutTests/fullscreen/anonymous-block-merge-crash.html |
+++ b/LayoutTests/fullscreen/anonymous-block-merge-crash.html |
@@ -5,10 +5,16 @@ |
} else { |
var span = document.getElementsByTagName('span')[0]; |
+ count = 0; |
document.onwebkitfullscreenchange = function(event) { |
- document.body.appendChild(document.createElement('div')); |
- document.webkitCancelFullScreen(); |
- testRunner.notifyDone(); |
+ count++; |
+ if (count == 1) { |
+ document.body.appendChild(document.createElement('div')); |
+ document.webkitCancelFullScreen(); |
+ return; |
+ } |
+ if (testRunner && count == 2) |
+ testRunner.notifyDone(); |
}; |
runWithKeyDown(function(){span.webkitRequestFullScreen()}); |