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 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <meta charset="UTF-8"> |
michael@0 | 5 | <script> |
michael@0 | 6 | |
michael@0 | 7 | function boom() |
michael@0 | 8 | { |
michael@0 | 9 | var root = document.documentElement; |
michael@0 | 10 | while(root.firstChild) { root.removeChild(root.firstChild); } |
michael@0 | 11 | root.appendChild(document.createElement("body")); |
michael@0 | 12 | root.offsetHeight; |
michael@0 | 13 | |
michael@0 | 14 | var bigText = document.createTextNode(""); |
michael@0 | 15 | bigText.data += "\u202D"; |
michael@0 | 16 | bigText.data += "A"; |
michael@0 | 17 | bigText.data += "\x1C"; |
michael@0 | 18 | bigText.data += "\u062A"; |
michael@0 | 19 | bigText.data += "E"; |
michael@0 | 20 | bigText.data += "\u062E"; |
michael@0 | 21 | bigText.data += " "; |
michael@0 | 22 | bigText.data += "\u202D"; |
michael@0 | 23 | bigText.data += "X"; |
michael@0 | 24 | bigText.data += "\x1C"; |
michael@0 | 25 | bigText.data += "Y"; |
michael@0 | 26 | root.appendChild(bigText); |
michael@0 | 27 | |
michael@0 | 28 | var smallText = document.createTextNode("Z"); |
michael@0 | 29 | root.appendChild(smallText); |
michael@0 | 30 | |
michael@0 | 31 | root.focus(); |
michael@0 | 32 | |
michael@0 | 33 | function del() |
michael@0 | 34 | { |
michael@0 | 35 | var range = document.createRange(); |
michael@0 | 36 | range.setStart(root, 0); |
michael@0 | 37 | range.setEnd(bigText, bigText.data.length); |
michael@0 | 38 | range.deleteContents(); |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | del(); |
michael@0 | 42 | |
michael@0 | 43 | function finish() { |
michael@0 | 44 | document.documentElement.removeAttribute('class'); |
michael@0 | 45 | } |
michael@0 | 46 | |
michael@0 | 47 | setTimeout(finish, 0); |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | </script> |
michael@0 | 51 | </head> |
michael@0 | 52 | |
michael@0 | 53 | <body onload="boom();"></body> |
michael@0 | 54 | </html> |