layout/svg/crashtests/880925-1.svg

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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