layout/svg/crashtests/880925-1.svg

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <?xml version="1.0"?>
     3 <svg xmlns="http://www.w3.org/2000/svg">
     4 <script>
     5 <![CDATA[
     7 function boom()
     8 {
     9     var svgText = document.createElementNS("http://www.w3.org/2000/svg", "text");
    10     document.documentElement.appendChild(svgText);
    11     var text1 = document.createTextNode("A");
    12     svgText.appendChild(text1);
    13     var text2 = document.createTextNode("");
    14     svgText.appendChild(text2);
    15     document.caretPositionFromPoint(0, 0);
    16     setTimeout(function() {
    17         text2.data = "B";
    18         document.caretPositionFromPoint(0, 0);
    19     }, 0);
    20 }
    22 window.addEventListener("load", boom, false);
    24 ]]>
    25 </script>
    26 </svg>

mercurial