Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>MessageEvent tests</title> |
michael@0 | 5 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 7 | </head> |
michael@0 | 8 | <body onload="test()"> |
michael@0 | 9 | <p id="display"></p> |
michael@0 | 10 | <pre id="test"> |
michael@0 | 11 | <script> |
michael@0 | 12 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 13 | |
michael@0 | 14 | function test() |
michael@0 | 15 | { |
michael@0 | 16 | var loc = window.location; |
michael@0 | 17 | is(loc.hash, '', 'Unexpected hash.'); |
michael@0 | 18 | is(loc.host, 'mochi.test:8888', 'Unexpected host.'); |
michael@0 | 19 | is(loc.hostname, 'mochi.test', 'Unexpected hostname.'); |
michael@0 | 20 | is(loc.origin, 'http://mochi.test:8888', 'Unexpected origin.'); |
michael@0 | 21 | is(loc.pathname, '/tests/dom/tests/mochitest/dom-level0/test_location_getters.html', 'Unexpected pathname.'); |
michael@0 | 22 | is(loc.port, '8888', 'Unexpected port.'); |
michael@0 | 23 | is(loc.protocol, 'http:', 'Unexpected protocol.'); |
michael@0 | 24 | SimpleTest.finish(); |
michael@0 | 25 | } |
michael@0 | 26 | </script> |
michael@0 | 27 | </pre> |
michael@0 | 28 | </body> |
michael@0 | 29 | </html> |