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.
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script> |
michael@0 | 4 | <![CDATA[ |
michael@0 | 5 | |
michael@0 | 6 | function init() |
michael@0 | 7 | { |
michael@0 | 8 | setTimeout(function() |
michael@0 | 9 | { |
michael@0 | 10 | targetWindow = window.frames[0]; |
michael@0 | 11 | targetDocument = targetWindow.document; |
michael@0 | 12 | targetDocument.body.appendChild(targetDocument.importNode(document.getElementById('rootish'), true)); |
michael@0 | 13 | targetDocument.designMode = 'on'; |
michael@0 | 14 | setTimeout(boom, 30); |
michael@0 | 15 | }, 30); |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | function boom() |
michael@0 | 19 | { |
michael@0 | 20 | var r = targetDocument.createRange(); |
michael@0 | 21 | r.setStart(targetDocument.getElementById("bar"), 0); |
michael@0 | 22 | r.setEnd(targetDocument.getElementById("baz").firstChild, 0); |
michael@0 | 23 | targetWindow.getSelection().addRange(r); |
michael@0 | 24 | |
michael@0 | 25 | targetDocument.execCommand("indent", false, null); |
michael@0 | 26 | |
michael@0 | 27 | document.documentElement.removeAttribute("class"); |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | ]]> |
michael@0 | 31 | </script> |
michael@0 | 32 | </head> |
michael@0 | 33 | |
michael@0 | 34 | <body onload="init()"> |
michael@0 | 35 | |
michael@0 | 36 | <iframe src="data:text/html," style="width: 95%; height: 500px;"/> |
michael@0 | 37 | |
michael@0 | 38 | <div id="rootish"> |
michael@0 | 39 | <div>Foo</div> |
michael@0 | 40 | <div id="bar">Bar</div> |
michael@0 | 41 | <div><select><option id="baz">baz</option></select></div> |
michael@0 | 42 | </div> |
michael@0 | 43 | |
michael@0 | 44 | </body> |
michael@0 | 45 | </html> |