toolkit/forgetaboutsite/test/browser/browser_clearplugindata.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   Any copyright is dedicated to the Public Domain.
     3   http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <html>
     6   <head>
     7     <title>Plugin Clear Site Data clear by domain test</title>
     9     <embed id="plugin1" type="application/x-test" width="200" height="200"></embed>
    11     <script type="application/javascript">
    12       function testSteps()
    13       {
    14         var p = document.getElementById("plugin1");
    16         p.setSitesWithData(
    17           "foo.com:0:0," +
    18           "bar.foo.com:0:0," +
    19           "baz.foo.com:0:0," +
    20           "bar.com:1:0," +
    21           "[192.168.1.1]:0:0," +
    22           "localhost:0:0"
    23         );
    25         setTimeout(testFinishedCallback, 0);
    26       }
    27     </script>
    28   </head>
    30   <body onload="testSteps();"></body>
    32 </html>

mercurial