docshell/base/crashtests/678872-1.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>
     3 <head>
     4 <script>
     6 var f1, f2;
     8 function b1()
     9 {
    10   f1 = document.getElementById("f1");
    11   f2 = document.getElementById("f2");
    12   f1.contentWindow.document.write("11");
    13   f1.contentWindow.history.back();
    14   setTimeout(b2, 0);
    15 }
    17 function b2()
    18 {
    19   f2.contentWindow.history.forward();
    20   f2.contentWindow.location.reload();
    21   f1.parentNode.removeChild(f1);
    22 }
    24 </script>
    27 </script>
    28 </head>
    30 <body onload="setTimeout(b1, 0);">
    32 <iframe id="f1" src="data:text/html,1"></iframe>
    33 <iframe id="f2" src="data:text/html,2"></iframe>
    35 </body>
    36 </html>

mercurial