docshell/test/test_bug728939.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

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 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=728939
     5 -->
     6 <head>
     7   <title>Test for Bug 728939</title>
     8   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    10 </head>
    11 <body>
    12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=728939">Mozilla Bug 728939</a>
    14 <script type="application/javascript;version=1.7">
    16 SimpleTest.waitForExplicitFinish();
    18 // Called when the popup finishes loading.
    19 function popupLoaded() {
    20   popup.location.hash = '#foo';
    21   is(popup.document.URL, popup.location.href, 'After hashchange.');
    23   popup.history.pushState('', '', 'bar');
    24   is(popup.document.URL, popup.location.href, 'After pushState.');
    26   popup.history.replaceState('', '', 'baz');
    27   is(popup.document.URL, popup.location.href, 'After replaceState.');
    29   popup.close();
    30   SimpleTest.finish();
    31 }
    33 var popup = window.open('file_bug728939.html');
    35 </script>
    36 </body>
    37 </html>

mercurial