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 | XUL Widget Test for cell selection tree |
michael@0 | 6 | --> |
michael@0 | 7 | <window title="Cell Selection Tree" width="500" height="600" |
michael@0 | 8 | onload="setTimeout(testtag_tree, 0, 'tree-cell', 'treechildren-cell', 'cell', '', 'cell selection tree');" |
michael@0 | 9 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 10 | <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 11 | <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script> |
michael@0 | 12 | |
michael@0 | 13 | <script src="tree_shared.js"/> |
michael@0 | 14 | |
michael@0 | 15 | <tree id="tree-cell" rows="4" seltype="cell"> |
michael@0 | 16 | <treecols> |
michael@0 | 17 | <treecol id="name" label="Name" primary="true" |
michael@0 | 18 | sort="label" properties="one two" flex="1"/> |
michael@0 | 19 | <treecol id="address" label="Address" flex="2"/> |
michael@0 | 20 | <treecol id="planet" label="Planet" flex="1"/> |
michael@0 | 21 | <treecol id="gender" label="Gender" flex="1" cycler="true"/> |
michael@0 | 22 | </treecols> |
michael@0 | 23 | <treechildren id="treechildren-cell"> |
michael@0 | 24 | <treeitem> |
michael@0 | 25 | <treerow properties="firstrow"> |
michael@0 | 26 | <treecell label="Mary" value="mary" properties="firstname"/> |
michael@0 | 27 | <treecell label="206 Garden Avenue" value="206ga"/> |
michael@0 | 28 | <treecell label="Earth"/> |
michael@0 | 29 | <treecell label="Female" value="f"/> |
michael@0 | 30 | </treerow> |
michael@0 | 31 | </treeitem> |
michael@0 | 32 | <treeitem> |
michael@0 | 33 | <treerow> |
michael@0 | 34 | <treecell/> |
michael@0 | 35 | <treecell value="19ms"/> |
michael@0 | 36 | <treecell label="Earth"/> |
michael@0 | 37 | <treecell label="Male" value="m"/> |
michael@0 | 38 | </treerow> |
michael@0 | 39 | </treeitem> |
michael@0 | 40 | <treeitem container="true"> |
michael@0 | 41 | <treerow> |
michael@0 | 42 | <treecell label="Sarah"/> |
michael@0 | 43 | <treecell label="702 Fern Avenue" editable="false"/> |
michael@0 | 44 | <treecell label="Saturn"/> |
michael@0 | 45 | <treecell label="Female" value="f"/> |
michael@0 | 46 | </treerow> |
michael@0 | 47 | <treechildren> |
michael@0 | 48 | <treeitem> |
michael@0 | 49 | <treerow> |
michael@0 | 50 | <treecell label="Mary"/> |
michael@0 | 51 | <treecell label="206 Garden Avenue"/> |
michael@0 | 52 | <treecell label="Female" value="f"/> |
michael@0 | 53 | <treecell label="Neptune"/> |
michael@0 | 54 | </treerow> |
michael@0 | 55 | </treeitem> |
michael@0 | 56 | <treeitem> |
michael@0 | 57 | <treerow> |
michael@0 | 58 | <treecell label="Chris"/> |
michael@0 | 59 | <treecell label="19 Marion Street"/> |
michael@0 | 60 | <treecell label="Omicron Persei 8"/> |
michael@0 | 61 | <treecell label="Male" value="m"/> |
michael@0 | 62 | </treerow> |
michael@0 | 63 | </treeitem> |
michael@0 | 64 | <treeitem> |
michael@0 | 65 | <treerow> |
michael@0 | 66 | <treecell label="Sarah"/> |
michael@0 | 67 | <treecell label="702 Fern Avenue" editable="false"/> |
michael@0 | 68 | <treecell label="Earth"/> |
michael@0 | 69 | <treecell label="Female" value="f"/> |
michael@0 | 70 | </treerow> |
michael@0 | 71 | </treeitem> |
michael@0 | 72 | <treeitem> |
michael@0 | 73 | <treerow> |
michael@0 | 74 | <treecell label="John"/> |
michael@0 | 75 | <treecell label="99 Westminster Avenue"/> |
michael@0 | 76 | <treecell label="Neptune"/> |
michael@0 | 77 | <treecell label="Male" value="m"/> |
michael@0 | 78 | </treerow> |
michael@0 | 79 | </treeitem> |
michael@0 | 80 | </treechildren> |
michael@0 | 81 | </treeitem> |
michael@0 | 82 | <treeitem> |
michael@0 | 83 | <treerow> |
michael@0 | 84 | <treecell label="John"/> |
michael@0 | 85 | <treecell label="99 Westminster Avenue"/> |
michael@0 | 86 | <treecell/> |
michael@0 | 87 | <treecell label="Male" value="m"/> |
michael@0 | 88 | </treerow> |
michael@0 | 89 | </treeitem> |
michael@0 | 90 | <treeitem> |
michael@0 | 91 | <treerow> |
michael@0 | 92 | <treecell label="Mary"/> |
michael@0 | 93 | <treecell label="206 Garden Avenue" selectable="false"/> |
michael@0 | 94 | <treecell label=""/> |
michael@0 | 95 | <treecell label="Female" value="f"/> |
michael@0 | 96 | </treerow> |
michael@0 | 97 | </treeitem> |
michael@0 | 98 | <treeitem> |
michael@0 | 99 | <treerow> |
michael@0 | 100 | <treecell label="Chris"/> |
michael@0 | 101 | <treecell label="19 Marion Street"/> |
michael@0 | 102 | <treecell label="Neptune"/> |
michael@0 | 103 | <treecell label="Male" value="m"/> |
michael@0 | 104 | </treerow> |
michael@0 | 105 | </treeitem> |
michael@0 | 106 | <treeitem> |
michael@0 | 107 | <treerow> |
michael@0 | 108 | <treecell label="Sarah"/> |
michael@0 | 109 | <treecell label="702 Fern Avenue"/> |
michael@0 | 110 | <treecell label="Earth"/> |
michael@0 | 111 | <treecell label="Female" value="f"/> |
michael@0 | 112 | </treerow> |
michael@0 | 113 | </treeitem> |
michael@0 | 114 | <treeitem> |
michael@0 | 115 | <treerow> |
michael@0 | 116 | <treecell label="John"/> |
michael@0 | 117 | <treecell label="99 Westminster Avenue"/> |
michael@0 | 118 | <treecell label="Mars"/> |
michael@0 | 119 | <treecell label="Male" value="m"/> |
michael@0 | 120 | </treerow> |
michael@0 | 121 | </treeitem> |
michael@0 | 122 | </treechildren> |
michael@0 | 123 | </tree> |
michael@0 | 124 | |
michael@0 | 125 | <!-- test results are displayed in the html:body --> |
michael@0 | 126 | <body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/> |
michael@0 | 127 | |
michael@0 | 128 | <!-- test code goes here --> |
michael@0 | 129 | <script type="application/javascript"><![CDATA[ |
michael@0 | 130 | |
michael@0 | 131 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 132 | |
michael@0 | 133 | ]]> |
michael@0 | 134 | </script> |
michael@0 | 135 | |
michael@0 | 136 | </window> |