content/base/crashtests/849601.html

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 <!DOCTYPE html>
     2 <html>
     3 <head>
     4 <meta charset="UTF-8">
     5 <script>
     7 function addEmptyMutationObserver()
     8 {
     9   var m = new MutationObserver(function () {});
    10   var e = document.createElement('i');
    11   m.observe(e, { childList: true });
    12 }
    14 function addPointlessMutationListener()
    15 {
    16   var a = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
    17   a.appendChild(document.createTextNode("1"));
    19   function f() {
    20     window.removeEventListener("DOMSubtreeModified", f, false);
    21     a.insertAdjacentHTML("afterBegin", "<span></span>");
    22   };
    24   window.addEventListener("DOMSubtreeModified", f, false);
    25 }
    27 function boom()
    28 {
    29   addEmptyMutationObserver();
    30   addPointlessMutationListener();
    31   document.body.outerHTML = "";
    32 }
    34 </script>
    35 </head>
    37 <body onload="boom();"></body>
    38 </html>

mercurial