content/xul/document/test/test_bug418216.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 href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
     4 <!--
     5 https://bugzilla.mozilla.org/show_bug.cgi?id=418216
     6 -->
     7 <window title="Mozilla Bug 418216"
     8   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     9   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
    11   <!-- test results are displayed in the html:body -->
    12   <body xmlns="http://www.w3.org/1999/xhtml">
    13   <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=418216"
    14      target="_blank">Mozilla Bug 418216</a>
    15   </body>
    17   <!-- test code goes here -->
    18   <script type="application/javascript"><![CDATA[
    20     /** Test for Bug 418216 **/
    21   SimpleTest.waitForExplicitFinish();
    22   window.onload = function onload() {
    23     var element = $("item");
    24     $("container").removeChild($("item"));
    25     $("broadcaster").removeAttribute("disabled");
    26     $("container").appendChild(element);
    27     is($("item").hasAttribute("disabled"), $("broadcaster").hasAttribute("disabled"));
    28     SimpleTest.finish();
    29   }
    34   ]]></script>
    36 <box id="container">
    37 <textbox id="item">
    38     <observes element="broadcaster" attribute="disabled"/>
    39 </textbox>
    40 </box>
    42 <broadcasterset>
    43     <broadcaster id="broadcaster" disabled="true"/>
    44 </broadcasterset>
    46 </window>

mercurial