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 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Bug 602580 - Test getting and setting innerWidth and Height after using setCSSViewport</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
7 <!--
8 This acts funny when run in the normal content frame
9 so instead We load it in a separate window.
10 -->
11 </head>
12 <body onload="startTest()">
13 <script class="testbody" type="text/javascript">
14 SimpleTest.waitForExplicitFinish();
15 var newWin = null;
16 function runTest() {
17 newWin = window.open("innerWidthHeight_script.html", '_new', 'width=600,height=400');
18 }
20 function finish() {
21 newWin.close();
22 SimpleTest.finish();
23 }
25 function startTest() {
26 SpecialPowers.pushPrefEnv({"set": [["dom.disable_window_move_resize", false]]}, runTest);
27 }
28 </script>
29 </body>
30 </html>