2011-05-08 Jeremy Noble <jer.noble@apple.com>
Reviewed by Dan Bernstein.
Full-screen video disappears behind black screen with scrollbar, followed by crash at jerryseinfeld.com
https://bugs.webkit.org/show_bug.cgi?id=60449
* fullscreen/full-screen-remove-sibling-expected.txt: Added.
* fullscreen/full-screen-remove-sibling.html: Added.
2011-05-08 Jeremy Noble <jer.noble@apple.com>
Reviewed by Dan Bernstein.
Full-screen video disappears behind black screen with scrollbar, followed by crash at jerryseinfeld.com
https://bugs.webkit.org/show_bug.cgi?id=60449
Make RenderFullScreen a non-anonymous block, so that it does not get deleted when a parent attempts to
coalesce anonymous children.
Test: fullscreen/full-screen-remove-sibling.html
* rendering/RenderObject.h:
(WebCore::RenderObject::isAnonymousBlock):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/fullscreen/full-screen-remove-sibling.html b/LayoutTests/fullscreen/full-screen-remove-sibling.html
new file mode 100644
index 0000000..ae1bafc
--- /dev/null
+++ b/LayoutTests/fullscreen/full-screen-remove-sibling.html
@@ -0,0 +1,27 @@
+<body>
+<script src="full-screen-test.js"></script>
+<div id="one">
+ <div id="fullscreen"></div>
+ <div id="two"><span></span></div>
+</div>
+
+<script>
+// Bail out early if the full screen API is not enabled or is missing:
+if (Element.prototype.webkitRequestFullScreen == undefined) {
+ logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
+ endTest();
+} else {
+ var callback;
+ waitForEvent(document, 'webkitfullscreenchange', function() {
+ var one = document.getElementById('one');
+ var two = document.getElementById('two');
+ one.removeChild(two);
+ endTest();
+ });
+
+ function goFullScreen() {
+ document.getElementById('fullscreen').webkitRequestFullScreen();
+ }
+ runWithKeyDown(goFullScreen);
+}
+</script>
\ No newline at end of file