dom/xbl/test/test_bug372769.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=372769
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 372769</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   SimpleTest.waitForExplicitFinish();
    15   // Embed the real test. It will take care of everything else.
    16   function setup() {
    17     SpecialPowers.pushPrefEnv({'set': [['dom.use_xbl_scopes_for_remote_xul', false]]}, go);
    18   }
    19   function go() {
    20     $('ifr').setAttribute('src', 'file_bug372769.xhtml');
    21   }
    23   </script>
    24 </head>
    25 <body onload="setup();">
    26 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=372769">Mozilla Bug 372769</a>
    27 <p id="display"></p>
    28 <div id="content">
    29 <iframe id="ifr"></iframe>
    30 </div>
    31 <pre id="test">
    32 </pre>
    33 </body>
    34 </html>

mercurial