dom/xbl/test/test_bug844783.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=844783
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 844783</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 XBL running in content scope for XUL-whitelisted domains. **/
    14   SimpleTest.waitForExplicitFinish();
    16   // Disable the automation pref before loading the test to make sure we load
    17   // the proper configuration.
    18   function setup() {
    19     SpecialPowers.pushPrefEnv({clear: [['dom.use_xbl_scopes_for_remote_xul']] }, continueSetup);
    20   }
    22   // Embed the real test. It will take care of everything else.
    23   function continueSetup() {
    24     $('ifr').setAttribute('src', 'file_bug844783.xhtml');
    25   }
    27   </script>
    28 </head>
    29 <body onload="setup();">
    30 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=844783">Mozilla Bug 844783</a>
    31 <p id="display"></p>
    32 <div id="content">
    33 <iframe id="ifr"></iframe>
    34 </div>
    35 <pre id="test">
    36 </pre>
    37 </body>
    38 </html>

mercurial