Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2 <head>
3 <script>
4 <![CDATA[
6 function init()
7 {
8 setTimeout(function()
9 {
10 targetWindow = window.frames[0];
11 targetDocument = targetWindow.document;
12 targetDocument.body.appendChild(targetDocument.importNode(document.getElementById('rootish'), true));
13 targetDocument.designMode = 'on';
14 setTimeout(boom, 30);
15 }, 30);
16 }
18 function boom()
19 {
20 var r = targetDocument.createRange();
21 r.setStart(targetDocument.getElementById("bar"), 0);
22 r.setEnd(targetDocument.getElementById("baz").firstChild, 0);
23 targetWindow.getSelection().addRange(r);
25 targetDocument.execCommand("indent", false, null);
27 document.documentElement.removeAttribute("class");
28 }
30 ]]>
31 </script>
32 </head>
34 <body onload="init()">
36 <iframe src="data:text/html," style="width: 95%; height: 500px;"/>
38 <div id="rootish">
39 <div>Foo</div>
40 <div id="bar">Bar</div>
41 <div><select><option id="baz">baz</option></select></div>
42 </div>
44 </body>
45 </html>