layout/reftests/bugs/366207-1.xul

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <?xml version="1.0"?>
michael@0 2
michael@0 3 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 4
michael@0 5 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 6 onload="loaded()"
michael@0 7 class="reftest-wait">
michael@0 8
michael@0 9 <hbox style="display: none">
michael@0 10 <bindings xmlns="http://www.mozilla.org/xbl"
michael@0 11 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 12 <binding id="foo">
michael@0 13 <content>
michael@0 14 <xul:hbox
michael@0 15 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 16 <xul:label>After</xul:label>
michael@0 17 </xul:hbox>
michael@0 18 <xul:hbox style="display:none">
michael@0 19 <children/>
michael@0 20 </xul:hbox>
michael@0 21 </content>
michael@0 22 <implementation>
michael@0 23 <constructor>
michael@0 24 var win = XPCNativeWrapper.unwrap(window);
michael@0 25 win.setTimeout(function() {
michael@0 26 win.document.documentElement.clientHeight;
michael@0 27 win.setTimeout(win.finish, 0);
michael@0 28 }, 0);
michael@0 29 </constructor>
michael@0 30 </implementation>
michael@0 31 </binding>
michael@0 32 </bindings>
michael@0 33 </hbox>
michael@0 34
michael@0 35 <script>
michael@0 36 function loaded()
michael@0 37 {
michael@0 38 setTimeout(function() {
michael@0 39 document.documentElement.clientHeight;
michael@0 40 setTimeout(boom, 0);
michael@0 41 }, 0);
michael@0 42 }
michael@0 43 function boom()
michael@0 44 {
michael@0 45 document.documentElement.style.MozBinding = "url('#foo')";
michael@0 46 }
michael@0 47 function finish()
michael@0 48 {
michael@0 49 document.documentElement.removeAttribute("class");
michael@0 50 }
michael@0 51 </script>
michael@0 52 <label>Before</label>
michael@0 53 </window>
michael@0 54

mercurial