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>
2 <html>
3 <body>
4 <div style="position: absolute">
5 <iframe src="data:text/html,<body contenteditable>foo</body>"></iframe>
6 </div>
7 <script type="text/javascript">
8 onload = function() {
9 var iframe = document.querySelector("iframe");
10 var win = iframe.contentWindow;
11 var body = win.document.body;
12 iframe.focus();
13 body.focus();
14 var sel = win.getSelection();
15 sel.collapse(body.firstChild, 0);
16 };
17 </script>
18 </body>
19 </html>