toolkit/content/tests/chrome/test_bug570192.xul

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 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet 
     4   href="chrome://mochikit/content/tests/SimpleTest/test.css"
     5   type="text/css"?>
     6 <!--
     7 https://bugzilla.mozilla.org/show_bug.cgi?id=570192
     8 -->
     9 <window title="Mozilla Bug 558406"
    10   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    12   <script type="application/javascript" 
    13           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    14   <script type="application/javascript"
    15           src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
    16   <script type="application/javascript"
    17           src="RegisterUnregisterChrome.js"></script>
    19   <body  xmlns="http://www.w3.org/1999/xhtml">
    20     <a target="_blank" 
    21        href="https://bugzilla.mozilla.org/show_bug.cgi?id=570192">
    22       Mozilla Bug 570192
    23     </a>
    25     <p id="display">
    26     </p>
    27     <div id="content" style="display: none">
    28     </div>
    29     <pre id="test">
    30     </pre>
    31   </body>
    33   <script type="application/javascript">
    34     <![CDATA[
    36     addLoadEvent(function() {
    37       try {
    38         var content = document.getElementById("content");
    39         content.innerHTML = '<textbox newlines="pasteintact" ' +
    40           'xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>';
    41         var textbox = content.firstChild;
    42         ok(textbox, "created the textbox");
    43         ok(!textbox.editor, "do we have an editor?");
    44       } catch (e) {
    45         ok(false, "Got an exception: " + e);
    46       }
    47       SimpleTest.finish();
    48     });
    49     SimpleTest.waitForExplicitFinish();
    51    ]]>
    52   </script>
    53 </window>

mercurial