dom/smil/crashtests/588287-2.svg

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <?xml version="1.0"?>
     2 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
     3 <script>
     5 function boom()
     6 {
     7   var animate = document.createElementNS("http://www.w3.org/2000/svg", "animate");
     8   animate.setAttributeNS(null, "begin", "0.5s");
     9   document.documentElement.appendChild(animate);
    11   setTimeout(function() {
    12     var g = document.createElement("g");
    13     var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
    14     g.appendChild(svg);
    15     document.documentElement.appendChild(g);
    16     svg.setCurrentTime(0.2);
    17     svg.appendChild(animate);
    18     svg.setCurrentTime(0.0); // Trigger backwards seek
    19     document.documentElement.removeAttribute("class");
    20   }, 400);
    21 }
    23 window.addEventListener("load", function() { setTimeout(boom, 200) }, false);
    25 </script>
    26 </svg>

mercurial