dom/xbl/crashtests/830614-1.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 2 onload="document.getElementById('trigger');">
michael@0 3 <box style="display: none">
michael@0 4 <bindings xmlns="http://www.mozilla.org/xbl">
michael@0 5 <binding id="crash">
michael@0 6 <implementation>
michael@0 7 <constructor>
michael@0 8 // Fetch it
michael@0 9 var obj = this.getElementsByTagName("box")[0];
michael@0 10 // And make it preserve its wrapper. Note that this will happen
michael@0 11 // while we're wrapping our box as the parent for id="trigger",
michael@0 12 // so then we'll unwind and things will be bad.
michael@0 13 if (obj) obj.expando = 5;
michael@0 14 </constructor>
michael@0 15 </implementation>
michael@0 16 </binding>
michael@0 17 </bindings>
michael@0 18 <box style="-moz-binding:url(#crash);">
michael@0 19 <box id="trigger"/>
michael@0 20 </box>
michael@0 21 </box>
michael@0 22 <!-- Make sure we load our XBL before we try to run our test -->
michael@0 23 <box style="-moz-binding:url(#crash);"/>
michael@0 24 </window>

mercurial