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> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script> |
michael@0 | 4 | |
michael@0 | 5 | function testDone() { |
michael@0 | 6 | document.body.removeChild(document.body.firstChild); |
michael@0 | 7 | var isOK = false; |
michael@0 | 8 | try { |
michael@0 | 9 | isOK = history.previous != location; |
michael@0 | 10 | } catch(ex) { |
michael@0 | 11 | // history.previous should throw if this is the first page in shistory. |
michael@0 | 12 | isOK = true; |
michael@0 | 13 | } |
michael@0 | 14 | document.body.textContent = isOK ? "PASSED" : "FAILED"; |
michael@0 | 15 | opener.ok(isOK, "Duplicate session history transactions should have been removed!"); |
michael@0 | 16 | opener.nextTest(); |
michael@0 | 17 | window.close(); |
michael@0 | 18 | } |
michael@0 | 19 | function ifrload() { |
michael@0 | 20 | setTimeout(testDone, 0); |
michael@0 | 21 | } |
michael@0 | 22 | function test() { |
michael@0 | 23 | var ifr = document.getElementsByTagName("iframe")[0]; |
michael@0 | 24 | ifr.onload = ifrload; |
michael@0 | 25 | ifr.src = "data:text/html,doc2"; |
michael@0 | 26 | } |
michael@0 | 27 | </script> |
michael@0 | 28 | </head> |
michael@0 | 29 | <body onload="setTimeout(test, 0)"><iframe src="data:text/html,doc1"></iframe> |
michael@0 | 30 | </body> |
michael@0 | 31 | </html> |