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 <!DOCTYPE html>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=454997
5 -->
6 <head>
7 <title>nsIAccessible states tests of contenteditable body</title>
8 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
10 <script type="application/javascript"
11 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
13 <script type="application/javascript"
14 src="../common.js"></script>
15 <script type="application/javascript"
16 src="../role.js"></script>
17 <script type="application/javascript"
18 src="../states.js"></script>
20 <script type="application/javascript">
21 function doTest()
22 {
23 testStates(document, 0, EXT_STATE_EDITABLE);
24 testStates("p", 0, EXT_STATE_EDITABLE);
26 SimpleTest.finish();
27 }
29 SimpleTest.waitForExplicitFinish();
30 addA11yLoadEvent(doTest);
31 </script>
32 </head>
34 <body contentEditable="true">
36 <a target="_blank"
37 title="nsIAccessible states tests of contenteditable body"
38 href="https://bugzilla.mozilla.org/show_bug.cgi?id=454997">Mozilla Bug 454997</a>
39 <p id="display"></p>
40 <div id="content" style="display: none"></div>
41 <pre id="test">
42 </pre>
44 <p id="p">hello</p>
45 </body>
46 </html>