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.

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

mercurial