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