toolkit/components/places/tests/bug94514-postpage.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=94514
     5 Specifically, this is a test page that actually submits a form.
     6 -->
     7 <head>
     8   <title>Test Page for Bug 94515</title>
     9 </head>
    10 <body>
    11 <form id="testForm" method="POST">
    12   <input type="submit" id="send"/>
    13 </form>
    15 <script class="testbody" type="text/javascript">
    17 if (!window.location.href.match("posted=1")) {
    18   // Here we just submit the form
    19   var form = document.getElementById("testForm");
    20   form.action = window.location.href + "?posted=1";
    21   form.submit();
    22 } else {
    23   window.location.href = "http://mochi.test:8888/tests/toolkit/components/places/tests/bug94514-postpage.html";
    24 }
    26 </script>
    27 </body>
    28 </html>

mercurial