content/html/document/test/test_bug380383.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=380383
     5 -->
     6 <head>
     7   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
     8   <title>Test for Bug 380383</title>
     9   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>        
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    11 </head>
    12 <body>
    13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=380383">Mozilla Bug 380383</a>
    14 <p id="display">
    15   <iframe id="f1" name="f1"></iframe>
    16   <iframe id="f2" name="f2"></iframe>
    17 </p>
    18 <div id="content" style="display: none">
    20 </div>
    21 <pre id="test">
    22 <script class="testbody" type="text/javascript">
    23   /** Test for Bug 380383 **/
    24   is($("f1").contentDocument.characterSet, "UTF-8",
    25      "Unexpected charset for f1");
    27   function runTest() {
    28     is($("f2").contentDocument.characterSet, "UTF-8",
    29        "Unexpected charset for f2");
    30   }
    32   addLoadEvent(runTest);
    33   addLoadEvent(SimpleTest.finish);
    34   SimpleTest.waitForExplicitFinish();
    35 </script>
    36 </pre>
    37 </body>
    38 </html>

mercurial