content/html/document/crashtests/631421.html

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 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head>
     4 <script>
     5 "use strict";
     7 var f2;
     9 function newIframe()
    10 {
    11   var f = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
    12   f.setAttributeNS(null, "src", "631421.png");
    13   document.body.appendChild(f);
    14   return f;
    15 }
    17 function b1()
    18 {
    19   void newIframe();
    20   f2 = newIframe();
    21   setTimeout(b2, 0);
    22 }
    24 function b2()
    25 {
    26   document.body.removeChild(f2);
    27   document.documentElement.removeAttribute("class");
    28 }
    30 </script>
    31 </head>
    33 <body onload="b1();"></body>
    34 </html>

mercurial