docshell/test/file_bug385434_3.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 <!--
     2 Inner frame for test of bug 385434.
     3 https://bugzilla.mozilla.org/show_bug.cgi?id=385434
     4 -->
     5 <html>
     6 <head>
     7   <script type="application/javascript">
     8     // Notify our parent if we have a hashchange and once we're done loading.
     9     window.addEventListener("hashchange", parent.onIframeHashchange, false);
    11     window.addEventListener("DOMContentLoaded", function() {
    12       // This also should trigger a hashchange, becuase the readystate is
    13       // "interactive", not "complete" during DOMContentLoaded.
    14       window.location.hash = "2";
    15     }, false);
    17   </script>
    18 </head>
    20 <body>
    21 </body>
    22 </html>

mercurial