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" |
michael@0 | 4 | type="text/css"?> |
michael@0 | 5 | |
michael@0 | 6 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 7 | title="Accessibility Role XUL Test."> |
michael@0 | 8 | |
michael@0 | 9 | <script type="application/javascript" |
michael@0 | 10 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> |
michael@0 | 11 | |
michael@0 | 12 | <script type="application/javascript" |
michael@0 | 13 | src="../common.js"></script> |
michael@0 | 14 | <script type="application/javascript" |
michael@0 | 15 | src="../role.js"></script> |
michael@0 | 16 | |
michael@0 | 17 | <script type="application/javascript"> |
michael@0 | 18 | <![CDATA[ |
michael@0 | 19 | function doTest() |
michael@0 | 20 | { |
michael@0 | 21 | ok(!isAccessible("statusbarpanel"), |
michael@0 | 22 | "statusbarpanel shouldn't be accessible."); |
michael@0 | 23 | testRole("statusbarpanel-iconic", ROLE_PUSHBUTTON); |
michael@0 | 24 | testRole("statusbarpanel-iconic-text", ROLE_PUSHBUTTON); |
michael@0 | 25 | |
michael@0 | 26 | SimpleTest.finish(); |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 30 | addA11yLoadEvent(doTest); |
michael@0 | 31 | ]]> |
michael@0 | 32 | </script> |
michael@0 | 33 | |
michael@0 | 34 | <hbox flex="1" style="overflow: auto;"> |
michael@0 | 35 | |
michael@0 | 36 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 37 | <a target="_blank" |
michael@0 | 38 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=900097" |
michael@0 | 39 | title="statusbarpanel shouldn't be a button accessible"> |
michael@0 | 40 | Mozilla Bug 900097 |
michael@0 | 41 | </a> |
michael@0 | 42 | <p id="display"></p> |
michael@0 | 43 | <div id="content" style="display: none"> |
michael@0 | 44 | </div> |
michael@0 | 45 | <pre id="test"> |
michael@0 | 46 | </pre> |
michael@0 | 47 | </body> |
michael@0 | 48 | |
michael@0 | 49 | <statusbarpanel id="statusbarpanel"></statusbarpanel> |
michael@0 | 50 | <statusbarpanel id="statusbarpanel-iconic" class="statusbarpanel-iconic"></statusbarpanel> |
michael@0 | 51 | <statusbarpanel id="statusbarpanel-iconic-text" class="statusbarpanel-iconic-text"></statusbarpanel> |
michael@0 | 52 | |
michael@0 | 53 | </hbox> |
michael@0 | 54 | </window> |
michael@0 | 55 |