content/html/document/crashtests/564461.xhtml

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <head>
     5 <bindings xmlns="http://www.mozilla.org/xbl">
     6   <binding id="editable"><content><div contenteditable="true" xmlns="http://www.w3.org/1999/xhtml"></div></content></binding>
     7 </bindings>
     9 <script type="text/javascript">
    10 <![CDATA[
    12 function boom()
    13 {
    14   while (document.documentElement.firstChild) document.documentElement.removeChild(document.documentElement.firstChild);
    16   document.addEventListener("DOMSubtreeModified", function(){}, false);
    17   document.addEventListener("DOMNodeInsertedIntoDocument", function(){}, false);
    18   document.documentElement.appendChild(document.createElementNS("http://www.w3.org/1999/xhtml", "body"));
    19   document.body.style.MozBinding = 'url(#editable)';
    20 }
    22 ]]>
    23 </script></head>
    25 <body onload="boom();"></body>
    26 </html>

mercurial