mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
bug 394014 - crash tests by Martijn Wargers.
This commit is contained in:
parent
3a31201fb0
commit
0ec12c0d75
21
layout/base/crashtests/394014-1-iframe.html
Normal file
21
layout/base/crashtests/394014-1-iframe.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<html><head></head>
|
||||||
|
<body>
|
||||||
|
<span id="a" style="display: none;">
|
||||||
|
<span id="b">
|
||||||
|
<span style="-moz-binding: url(data:text/xml;charset=utf-8,%3Cbindings%20xmlns%3D%22http%3A//www.mozilla.org/xbl%22%3E%0A%3Cbinding%20id%3D%22a%22%3E%0A%3Cimplementation%3E%0A%3Cconstructor%3E%0A%20%20this.style.outline%3D%27%27%3B%0A%3C/constructor%3E%0A%3C/implementation%3E%0A%3C/binding%3E%0A%3C/bindings%3E);"></span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<script>
|
||||||
|
for (var i=0;i<document.getElementsByTagName('*').length;i++){
|
||||||
|
document.getElementsByTagName('*')[i];
|
||||||
|
}
|
||||||
|
function doe2() {
|
||||||
|
//alert('t');
|
||||||
|
document.getElementById('b').addEventListener('DOMSubtreeModified', function(e) {window.frameElement.parentNode.removeChild(window.frameElement) }, true);
|
||||||
|
document.body.style.display = 'none';
|
||||||
|
document.getElementById('a').style.display = '';
|
||||||
|
}
|
||||||
|
setTimeout(doe2, 20);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
10
layout/base/crashtests/394014-1-inner.html
Normal file
10
layout/base/crashtests/394014-1-inner.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<html><head>
|
||||||
|
<title>Testcase bug 394014 - Crash [@ NS_ProcessNextEvent_P] with DOMSubtreeModified removing windows, binding and other stuff</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<iframe src="394014-1-iframe.html"></iframe>
|
||||||
|
<script>
|
||||||
|
setInterval(function() {window.location.reload()}, 1000);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
9
layout/base/crashtests/394014-1.html
Normal file
9
layout/base/crashtests/394014-1.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<html class="reftest-wait">
|
||||||
|
<head>
|
||||||
|
<script>
|
||||||
|
setTimeout('document.documentElement.className = ""', 1000);
|
||||||
|
</script>
|
||||||
|
<body>
|
||||||
|
<iframe src="394014-1-inner.html"></iframe>
|
||||||
|
</body>
|
||||||
|
</html>
|
6
layout/base/crashtests/394014-2-binding.xml
Normal file
6
layout/base/crashtests/394014-2-binding.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<binding id="c" inheritstyle="false">
|
||||||
|
<content><children/></content>
|
||||||
|
<implementation><constructor>
|
||||||
|
</constructor></implementation>
|
||||||
|
</binding></bindings>
|
10
layout/base/crashtests/394014-2-constructor.xml
Normal file
10
layout/base/crashtests/394014-2-constructor.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<bindings xmlns="http://www.mozilla.org/xbl">
|
||||||
|
<binding id="a">
|
||||||
|
<implementation>
|
||||||
|
<constructor>
|
||||||
|
window.frameElement.parentNode.removeChild(window.frameElement);
|
||||||
|
</constructor>
|
||||||
|
</implementation>
|
||||||
|
<content><children/></content>
|
||||||
|
</binding>
|
||||||
|
</bindings>
|
12
layout/base/crashtests/394014-2-constructordestructor.xml
Normal file
12
layout/base/crashtests/394014-2-constructordestructor.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<bindings xmlns="http://www.mozilla.org/xbl">
|
||||||
|
<binding id="a">
|
||||||
|
<implementation>
|
||||||
|
<destructor>
|
||||||
|
window.frameElement.parentNode.removeChild(window.frameElement);
|
||||||
|
</destructor>
|
||||||
|
</implementation>
|
||||||
|
<content>
|
||||||
|
<children/>
|
||||||
|
</content>
|
||||||
|
</binding>
|
||||||
|
</bindings>
|
13
layout/base/crashtests/394014-2-crash.html
Normal file
13
layout/base/crashtests/394014-2-crash.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<html><head>
|
||||||
|
</head><body>
|
||||||
|
|
||||||
|
<span style=" -moz-binding: url(394014-2-constructordestructor.xml#a);"></span>
|
||||||
|
|
||||||
|
<span style="-moz-binding: url(394014-2-constructor.xml#a);">
|
||||||
|
|
||||||
|
<style>style {-moz-binding:url(394014-2-binding.xml#c);</style>
|
||||||
|
|
||||||
|
<textarea></textarea>
|
||||||
|
</span>
|
||||||
|
</body>
|
||||||
|
</html>
|
7
layout/base/crashtests/394014-2.html
Normal file
7
layout/base/crashtests/394014-2.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<html><head>
|
||||||
|
<title>Testcase bug 394014 - Crash [@ NS_ProcessNextEvent_P] with DOMSubtreeModified removing windows, binding and other stuff</title>
|
||||||
|
</head>
|
||||||
|
<body>tt
|
||||||
|
<iframe src="394014-2-crash.html"></iframe>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -157,6 +157,8 @@ load 393326-1.html
|
|||||||
load 393326-2.html
|
load 393326-2.html
|
||||||
load 393661-1.html
|
load 393661-1.html
|
||||||
load 393801-1.html
|
load 393801-1.html
|
||||||
|
load 394014-1.html
|
||||||
|
load 394014-2.html
|
||||||
load 394150-1.xhtml
|
load 394150-1.xhtml
|
||||||
load 397011-1.xhtml
|
load 397011-1.xhtml
|
||||||
load 398510-1.xhtml
|
load 398510-1.xhtml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user