dom/base/test/test_urlutils_stringify.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.

     2 <!DOCTYPE HTML>
     3 <html>
     4 <!--
     5 https://bugzilla.mozilla.org/show_bug.cgi?id=959190
     6 -->
     7 <head>
     8   <meta charset="utf-8">
     9   <title>Test for Bug 959190</title>
    10   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    11   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    12 </head>
    13 <body>
    14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=959190">Mozilla Bug 959190</a>
    15 <p id="display"></p>
    16 <div id="content" style="display: none">
    17   <iframe name="x" id="x"></iframe>
    18   <iframe name="y" id="y"></iframe>
    19 </div>
    20 <pre id="test">
    21 </pre>
    22   <a id="link" href="http://www.example.com:8080">foobar</a>
    23   <area id="area" href="http://www.example.com:8080" />
    24   <script type="application/javascript">
    26   var url = new URL('http://www.example.com:8080');
    27   is(url + '', 'http://www.example.com:8080/', 'URL stringify');
    29   var link = document.getElementById("link");
    30   is(link + '', 'http://www.example.com:8080/', 'Anchor stringify');
    32   var area = document.getElementById("area");
    33   is(area + '', 'http://www.example.com:8080/', 'Area stringify');
    35   is((location + '').indexOf('http://mochi.test:8888/tests/dom/base/test/test_urlutils_stringify.html'), 0, 'Location stringify');
    36   </script>
    37 </body>
    38 </html>

mercurial