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 | |
michael@0 | 4 | <window title="Popup Removing Frame Tests" |
michael@0 | 5 | onload="setTimeout(init, 0)" |
michael@0 | 6 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 7 | |
michael@0 | 8 | <hbox> |
michael@0 | 9 | |
michael@0 | 10 | <menu id="separatemenu1" label="Menu"> |
michael@0 | 11 | <menupopup id="separatepopup1" onpopupshown="document.getElementById('separatemenu2').open = true"> |
michael@0 | 12 | <menuitem label="L1 One"/> |
michael@0 | 13 | <menuitem label="L1 Two"/> |
michael@0 | 14 | <menuitem label="L1 Three"/> |
michael@0 | 15 | </menupopup> |
michael@0 | 16 | </menu> |
michael@0 | 17 | |
michael@0 | 18 | <menu id="separatemenu2" label="Menu"> |
michael@0 | 19 | <menupopup id="separatepopup2" onpopupshown="document.getElementById('separatemenu3').open = true"> |
michael@0 | 20 | <menuitem label="L2 One"/> |
michael@0 | 21 | <menuitem label="L2 Two"/> |
michael@0 | 22 | <menuitem label="L2 Three"/> |
michael@0 | 23 | </menupopup> |
michael@0 | 24 | </menu> |
michael@0 | 25 | |
michael@0 | 26 | <menu id="separatemenu3" label="Menu" onpopupshown="document.getElementById('separatemenu4').open = true"> |
michael@0 | 27 | <menupopup id="separatepopup3"> |
michael@0 | 28 | <menuitem label="L3 One"/> |
michael@0 | 29 | <menuitem label="L3 Two"/> |
michael@0 | 30 | <menuitem label="L3 Three"/> |
michael@0 | 31 | </menupopup> |
michael@0 | 32 | </menu> |
michael@0 | 33 | |
michael@0 | 34 | <menu id="separatemenu4" label="Menu" onpopupshown="document.getElementById('nestedmenu1').open = true"> |
michael@0 | 35 | <menupopup id="separatepopup3"> |
michael@0 | 36 | <menuitem label="L4 One"/> |
michael@0 | 37 | <menuitem label="L4 Two"/> |
michael@0 | 38 | <menuitem label="L4 Three"/> |
michael@0 | 39 | </menupopup> |
michael@0 | 40 | </menu> |
michael@0 | 41 | |
michael@0 | 42 | </hbox> |
michael@0 | 43 | |
michael@0 | 44 | <menu id="nestedmenu1" label="Menu"> |
michael@0 | 45 | <menupopup id="nestedpopup1" onpopupshown="if (event.target == this) this.firstChild.open = true"> |
michael@0 | 46 | <menu id="nestedmenu2" label="Menu"> |
michael@0 | 47 | <menupopup id="nestedpopup2" onpopupshown="if (event.target == this) this.firstChild.open = true"> |
michael@0 | 48 | <menu id="nestedmenu3" label="Menu"> |
michael@0 | 49 | <menupopup id="nestedpopup3" onpopupshown="if (event.target == this) this.firstChild.open = true"> |
michael@0 | 50 | <menu id="nestedmenu4" label="Menu" onpopupshown="parent.popupsOpened()"> |
michael@0 | 51 | <menupopup id="nestedpopup4"> |
michael@0 | 52 | <menuitem label="Nested One"/> |
michael@0 | 53 | <menuitem label="Nested Two"/> |
michael@0 | 54 | <menuitem label="Nested Three"/> |
michael@0 | 55 | </menupopup> |
michael@0 | 56 | </menu> |
michael@0 | 57 | </menupopup> |
michael@0 | 58 | </menu> |
michael@0 | 59 | </menupopup> |
michael@0 | 60 | </menu> |
michael@0 | 61 | </menupopup> |
michael@0 | 62 | </menu> |
michael@0 | 63 | |
michael@0 | 64 | <script class="testbody" type="application/javascript"> |
michael@0 | 65 | <![CDATA[ |
michael@0 | 66 | |
michael@0 | 67 | function init() |
michael@0 | 68 | { |
michael@0 | 69 | document.getElementById("separatemenu1").open = true; |
michael@0 | 70 | } |
michael@0 | 71 | |
michael@0 | 72 | ]]> |
michael@0 | 73 | </script> |
michael@0 | 74 | |
michael@0 | 75 | </window> |