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.
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <!--
4 XUL Widget Test for preferences window. This particular test ensures that
5 a checkbox with a command attribute properly updates even though the command
6 event gets retargeted.
7 -->
8 <prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
9 title="preferences window"
10 windowtype="test:preferences"
11 buttons="accept,cancel"
12 onload="RunTest(window.arguments)">
13 <script type="application/javascript">
14 <;
18 document.documentElement.cancelDialog();
19 }
20 ]]>
21 </script>
23 <prefpane id="sample_pane" label="Sample Prefpane">
24 <preferences id="sample_preferences">
25 <preference id="tests.static_preference_bool"
26 name="tests.static_preference_bool"
27 type="bool"/>
28 </preferences>
30 <commandset>
31 <command id="cmd_test" preference="tests.static_preference_bool"/>
32 </commandset>
34 <checkbox id="checkbox" label="Enable Option" preference="tests.static_preference_bool" command="cmd_test"/>
35 </prefpane>
36 </prefwindow>