dom/base/test/test_navigator_resolve_identity.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=985827
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 985827</title>
     9   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11   <script type="application/javascript">
    13   /** Test for Bug 985827 **/
    15   // Test WebIDL NavigatorProperty objects
    16   var x = navigator.mozContacts;
    17   is(typeof x, "object", "Should have a mozContacts object");
    18   delete navigator.mozContacts;
    19   var y = navigator.mozContacts;
    20   is(x, y, "Should have gotten the same mozContacts object again");
    22   // Test Javascript-navigator-property objects
    23   x = navigator.mozApps;
    24   is(typeof x, "object", "Should have a mozApps object");
    25   delete navigator.mozApps;
    26   y = navigator.mozApps;
    27   is(x, y, "Should have gotten the same mozApps object again");
    29   </script>
    30 </head>
    31 <body>
    32 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=985827">Mozilla Bug 985827</a>
    33 <p id="display"></p>
    34 <div id="content" style="display: none">
    36 </div>
    37 <pre id="test">
    38 </pre>
    39 </body>
    40 </html>

mercurial