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