toolkit/components/places/tests/test_bug_411966.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   <!--
     4     https://bugzilla.mozilla.org/show_bug.cgi?id=411966
     5   -->
     6   <head>
     7     <title>Test for Bug 411966</title>
     8     <script type="text/javascript" src="http://mochi.test:8888/tests/SimpleTest/SimpleTest.js"></script>
     9     <script type="text/javascript" src="http://mochi.test:8888/tests/toolkit/components/places/tests/mochitest/bug_411966/redirect.js"></script>
    10     <link rel="stylesheet" type="text/css" href="http://mochi.test:8888/tests/SimpleTest/test.css" />
    11   </head>
    12   <body>
    13     <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=411966">
    14       Mozilla Bug 411966</a>
    15     <p id="display"></p>
    16     <div id="content" style="display: none">
    17       <iframe id="iframe"></iframe>
    18     </div>
    19     <pre id="test">
    20       <script class="testbody" type="text/javascript">
    22       /** Test for Bug 411966 **/
    23       addVisits(typedURI, function() {
    24         histsvc.markPageAsTyped(typedURI);
    26         var clickedLinkChannel = ios.newChannelFromURI(clickedLinkURI);
    27         clickedLinkChannel.QueryInterface(Ci.nsIHttpChannel).referrer = typedURI;
    28         var listener = new StreamListener(clickedLinkChannel, checkDB);
    29         clickedLinkChannel.notificationCallbacks = listener;
    30         clickedLinkChannel.asyncOpen(listener, null);
    31       });
    33       SimpleTest.waitForExplicitFinish();
    35      </script>
    36    </pre>
    37  </body>
    38 </html>

mercurial