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 <?xml version="1.0"?>
2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
3 <window title="Mozilla Bug 824917"
4 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
6 <iframe type="content"></iframe>
8 <script type="application/javascript">
9 <![CDATA[
10 /** Test for Bug 799299 **/
11 var SimpleTest = opener.wrappedJSObject.SimpleTest;
12 var ok = opener.wrappedJSObject.ok;
14 var doc = frames[0].document;
15 ok(doc.createElement("body") instanceof HTMLBodyElement,
16 "Should be instance of HTMLBodyElement");
17 ok(doc.createElement("div") instanceof HTMLDivElement,
18 "Should be instance of HTMLDivElement");
19 ok(doc.createElement("frameset") instanceof HTMLFrameSetElement,
20 "Should be instance of HTMLFrameSetElement");
21 ok(doc.createElement("h1") instanceof HTMLHeadingElement,
22 "Should be instance of HTMLHeadingElement");
23 ok(doc.createElement("label") instanceof HTMLLabelElement,
24 "Should be instance of HTMLLabelElement");
26 window.close();
27 opener.wrappedJSObject.SimpleTest.finish();
28 ]]>
29 </script>
30 </window>