intl/uconv/tests/test_bug335816.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=335816
     5 -->
     6 <head>
     7   <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
     8   <title>Test for Bug 335816</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 onload="test()">
    13 <pre id="test">
    14 <script class="testbody" type="text/javascript">
    16 /** Test for Bug 335816 **/
    17 function test()
    18 {
    19   ok($("display").innerHTML != "Keep that breathless charm", "Hidden script not executed");
    20   SimpleTest.finish();
    21 }
    23 function WontYouPleaseArrangeIt()
    24 {
    25   $("display").innerHTML = "Keep that breathless charm";
    26 }
    28 SimpleTest.waitForExplicitFinish();
    29 </script>
    30 </pre>
    31 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=335816">Mozilla Bug 335816</a>
    32 <p id="display">Lovely ... Never, ever change.</p>
    34 <!-- There is a UTF-8 BOM just here - - - 
    35                                          |  which should not be stripped 
    36                                          v      -->
    37 <div id="content" style="display: none"><script>WontYouPleaseArrangeIt();</script></div>
    38 </body>
    39 </html>

mercurial