layout/generic/crashtests/417902-2.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 <html>
     2 <head>
     3   <style>
     4     div:first-letter {
     5       float: left;
     6       background: orange;
     7     }
     8     /* Note: there's an upper-bound on widths that trigger a crash.
     9        This bound depends on the width of the characters in the div. */
    10     div#v {
    11       -moz-column-count: 2;
    12       width: 30px;
    13       height: 1em;
    14       background: lightblue;
    15     }
    16   </style>
    17   <script>
    18     function boom() {
    19       var v = document.getElementById("v");
    20       // Note: This seems to crash regardless of what the text node is;
    21       // e.g. it can be the empty string, a space character, or any number of
    22       // other characters.
    23       v.appendChild(document.createTextNode("CRASH"));
    24     }
    25   </script>
    26 </head>
    27 <body onload="boom();"><div id="v">a b</div></body>
    28 </html>

mercurial