layout/generic/test/bug421839-2-page.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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>
michael@0 2 <head>
michael@0 3 </head>
michael@0 4 <body style="position: absolute;">
michael@0 5 <iframe id="a"></iframe>
michael@0 6 <iframe></iframe>
michael@0 7 <script>
michael@0 8 function tripleclick(){
michael@0 9 var wu = SpecialPowers.getDOMWindowUtils(window);
michael@0 10 wu.sendMouseEvent('mousedown', 100, 100, 0, 1, 0);
michael@0 11 setTimeout(tripleclick,20);
michael@0 12 }
michael@0 13 setTimeout(tripleclick,200,0, 0);
michael@0 14
michael@0 15 function doe2() {
michael@0 16 document.body.setAttribute('style', 'position: absolute;');
michael@0 17 document.body.offsetHeight;
michael@0 18 document.getElementById('a').setAttribute('style', 'position: absolute; direction: rtl; ');
michael@0 19 setTimeout(doe3,200);
michael@0 20 }
michael@0 21
michael@0 22 function doe3() {
michael@0 23 document.getElementsByTagName('*')[2].setAttribute('style', 'unicode-bidi: inherit; ime-mode: disabled; font-family: Al Bayan; ');
michael@0 24 }
michael@0 25 setTimeout(doe2,500,0);
michael@0 26
michael@0 27 setTimeout(function(){window.location.reload()}, 1000);
michael@0 28
michael@0 29
michael@0 30 function designmodes(i){
michael@0 31 if (i>=0)
michael@0 32 {
michael@0 33 try {
michael@0 34 window.frames[i].document.designMode='on';
michael@0 35 window.frames[i].document.execCommand('inserthtml', false, 'tesxt ');
michael@0 36 window.frames[i].document.designMode='off';
michael@0 37 }
michael@0 38 catch(e) {}
michael@0 39 }
michael@0 40 else {
michael@0 41 i = window.frames.length-1;
michael@0 42 }
michael@0 43 i--;
michael@0 44 setTimeout(designmodes,50,i);
michael@0 45 }
michael@0 46 setTimeout(designmodes,500,window.frames.length-1);
michael@0 47
michael@0 48 function doe2(i) {
michael@0 49 document.body.style.position == 'absolute' ? document.body.style.position = '' : document.body.style.position = 'absolute';
michael@0 50 setTimeout(doe2,200,i);
michael@0 51 }
michael@0 52 setTimeout(doe2,500,0);
michael@0 53 </script>
michael@0 54 </body>
michael@0 55 </html>

mercurial