Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE HTML><html class="reftest-wait"><head>
2 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
3 </head>
4 <body>
5 <div contenteditable="true">
6 <p id="p">A B CD EFG<br>
7 1234567890</p>
8 </div>
9 x
10 <script>
11 // Position the caret at the end of the P element
12 var p = document.getElementById('p');
13 var div = p.parentNode;
14 div.focus();
15 SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
16 onSpellCheck(div, function () {
17 var sel = window.getSelection();
18 sel.removeAllRanges();
19 var range = document.createRange();
20 range.setStart(p, p.childNodes.length);
21 range.setEnd(p, p.childNodes.length);
22 sel.addRange(range);
23 document.documentElement.classList.remove("reftest-wait");
24 });
25 </script>
27 </body>
28 </html>