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.
1 function test() {
2 waitForExplicitFinish();
4 var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/";
5 gBrowser.selectedTab = gBrowser.addTab(rootDir + "file_bug234628-8.html");
6 gBrowser.selectedBrowser.addEventListener("load", afterOpen, true);
7 }
9 function afterOpen(event) {
10 if (event.target != gBrowser.contentDocument) {
11 return;
12 }
14 gBrowser.selectedBrowser.removeEventListener("load", afterOpen, true);
16 is(gBrowser.contentDocument.documentElement.textContent.indexOf('\u0402'), 156, "Parent doc should be windows-1251");
18 is(gBrowser.contentDocument.getElementsByTagName("iframe")[0].contentDocument.documentElement.textContent.indexOf('\u0402'), 99, "Child doc should be windows-1251");
20 gBrowser.removeCurrentTab();
21 finish();
22 }