Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 2 | <head> |
michael@0 | 3 | <title>Test for bug 383383</title> |
michael@0 | 4 | <script src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 5 | <link rel="stylesheet" href="/tests/SimpleTest/test.css"/> |
michael@0 | 6 | </head> |
michael@0 | 7 | <body> |
michael@0 | 8 | <script> |
michael@0 | 9 | SimpleTest.waitForExplicitFinish() |
michael@0 | 10 | </script> |
michael@0 | 11 | <script for="window" event="bar"> |
michael@0 | 12 | // This script should not run, but should not cause a parse error either. |
michael@0 | 13 | ok(false, "Script was unexpectedly run") |
michael@0 | 14 | </script> |
michael@0 | 15 | <script> |
michael@0 | 16 | ok(true, "Script was run as it should") |
michael@0 | 17 | SimpleTest.finish() |
michael@0 | 18 | </script> |
michael@0 | 19 | </body> |
michael@0 | 20 | </html> |