Sat, 03 Jan 2015 20:18:00 +0100
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.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 3 | <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?> |
michael@0 | 4 | |
michael@0 | 5 | <window title="Toolbar" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 6 | onload="startTest();"> |
michael@0 | 7 | |
michael@0 | 8 | <script type="application/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script> |
michael@0 | 9 | <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | |
michael@0 | 11 | <toolbox> |
michael@0 | 12 | <toolbarpalette/> |
michael@0 | 13 | <toolbar id="toolbar" defaultset="node1,node2"> |
michael@0 | 14 | <toolbarbutton id="node1" label="node1" removable="true"/> |
michael@0 | 15 | <toolbarbutton id="node2" label="node2" removable="true"/> |
michael@0 | 16 | </toolbar> |
michael@0 | 17 | </toolbox> |
michael@0 | 18 | |
michael@0 | 19 | <!-- test resuls are displayed in the html:body --> |
michael@0 | 20 | <body xmlns="http://www.w3.org/1999/xhtml" |
michael@0 | 21 | style="height: 300px; overflow: auto;"/> |
michael@0 | 22 | |
michael@0 | 23 | <!-- test code goes here --> |
michael@0 | 24 | <script type="application/javascript"><![CDATA[ |
michael@0 | 25 | |
michael@0 | 26 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 27 | |
michael@0 | 28 | function startTest() { |
michael@0 | 29 | var toolbar = $("toolbar"); |
michael@0 | 30 | |
michael@0 | 31 | var splitter = document.createElement("splitter"); |
michael@0 | 32 | splitter.setAttribute("id", "dynsplitter"); |
michael@0 | 33 | splitter.setAttribute("skipintoolbarset", "true"); |
michael@0 | 34 | |
michael@0 | 35 | toolbar.insertBefore(splitter, $("node2")); |
michael@0 | 36 | |
michael@0 | 37 | function checkPos() { |
michael@0 | 38 | is($("dynsplitter").previousSibling, $("node1")); |
michael@0 | 39 | is($("dynsplitter").nextSibling, $("node2")); |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | checkPos(); |
michael@0 | 43 | toolbar.style.MozBinding = "url(chrome://global/content/bindings/toolbar.xml#toolbar-drag)"; |
michael@0 | 44 | toolbar.clientTop; // style flush |
michael@0 | 45 | checkPos(); |
michael@0 | 46 | |
michael@0 | 47 | SimpleTest.finish(); |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | ]]></script> |
michael@0 | 51 | </window> |