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>
4 <head>
5 <title>Test HTML li and listitem bullet accessible insertion into editable document</title>
6 <link rel="stylesheet" type="text/css"
7 href="chrome://mochikit/content/tests/SimpleTest/test.css" />
9 <script type="application/javascript"
10 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
12 <script type="application/javascript"
13 src="../common.js"></script>
14 <script type="application/javascript"
15 src="../role.js"></script>
16 <script type="application/javascript"
17 src="../events.js"></script>
19 <script type="application/javascript">
21 ////////////////////////////////////////////////////////////////////////////
22 // Invokers
24 function addLi(aID)
25 {
26 this.listNode = getNode(aID);
27 this.liNode = document.createElement("li");
28 this.liNode.textContent = "item";
30 this.eventSeq = [
31 new invokerChecker(EVENT_SHOW, getAccessible, this.liNode),
32 new invokerChecker(EVENT_REORDER, this.listNode)
33 ];
35 this.invoke = function addLi_invoke()
36 {
37 this.listNode.appendChild(this.liNode);
38 }
40 this.finalCheck = function addLi_finalCheck()
41 {
42 var tree = {
43 role: ROLE_LIST,
44 children: [
45 {
46 role: ROLE_LISTITEM,
47 children: [
48 {
49 role: ROLE_STATICTEXT,
50 name: "1. ",
51 children: []
52 },
53 {
54 role: ROLE_TEXT_LEAF,
55 children: []
56 }
57 ]
58 }
59 ]
60 };
61 testAccessibleTree(aID, tree);
62 }
64 this.getID = function addLi_getID()
65 {
66 return "add li";
67 }
68 };
70 ////////////////////////////////////////////////////////////////////////////
71 // Test
73 //gA11yEventDumpID = "eventdump"; // debug stuff
75 var gQueue = null;
77 function doTest()
78 {
79 gQueue = new eventQueue();
81 gQueue.push(new addLi("list"));
83 gQueue.invoke(); // SimpleTest.finish() will be called in the end
84 }
86 SimpleTest.waitForExplicitFinish();
87 addA11yLoadEvent(doTest);
88 </script>
89 </head>
90 <body contentEditable="true">
92 <a target="_blank"
93 title="Wrong list bullet text of accessible for the first numbered HTML:li in CKEditor"
94 href="https://bugzilla.mozilla.org/show_bug.cgi?id=557795">Mozilla Bug 557795</a>
96 <p id="display"></p>
97 <div id="content" style="display: none"></div>
98 <pre id="test">
99 </pre>
101 <ol id="list">
102 </ol>
104 <div id="eventdump"></div>
105 </body>
106 </html>