diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/base/crashtests/288790-1-inner.xhtml | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/base/crashtests/288790-1-inner.xhtml')
-rw-r--r-- | layout/base/crashtests/288790-1-inner.xhtml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/layout/base/crashtests/288790-1-inner.xhtml b/layout/base/crashtests/288790-1-inner.xhtml new file mode 100644 index 000000000..15351dcff --- /dev/null +++ b/layout/base/crashtests/288790-1-inner.xhtml @@ -0,0 +1,47 @@ +<?xml version="1.0"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<title>Testcase bug 288790 - Crash [@ GetNearestContainingBlock] with this xbl testcase</title> +<head> +<style> +#z {position: relative;} +#z span{position: absolute;} +</style> + +<bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml"> + <binding id="m"></binding> + <binding id="ma" extends="#m"> + <content> + <html:div><children/></html:div> + </content> + </binding> +</bindings> + +</head> +<body> +<div id="z"><span></span></div> + + +<script> +function doe(){ +document.getElementById('z').setAttribute('style','-moz-binding:url(#ma)'); +setTimeout(doe2,0); +} + +function doe2(){ +document.getElementsByTagName('span')[0].setAttribute('style','-moz-binding:url(#m)'); +} +</script> +<button id="button" onclick="doe()">Click me</button><br/> +Clicking on the above button two times, should not crash Mozilla. +<script> +function clickbutton() +{ + var ev = document.createEvent('MouseEvents'); + ev.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); + var button = document.getElementById('button'); + button.dispatchEvent(ev); + button.dispatchEvent(ev); +} +clickbutton(); +</script> +</body></html> |