dom/tests/mochitest/whatwg/file_bug500328_1.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 Inner frame for testing bug 500328.
     5 https://bugzilla.mozilla.org/show_bug.cgi?id=500328
     6 -->
     7 <head>
     8 <title>test 1</title>
     9   <style>
    10     a           { fill:blue; }
    11     a:visited   { fill:purple; }
    12   </style>
    13 </head>
    14 <body onload="load(event);" onpopstate="popstate(event);" onpageshow="pageshow(event);">
    15 <script type="application/javascript">
    16   if (parent && parent.onChildScript)
    17     parent.onChildScript(history.state);
    18   if (opener && opener.onChildScript)
    19     opener.onChildScript(history.state);
    21   function load(e) {
    22     if(parent && parent.onChildLoad)
    23       parent.onChildLoad(e);
    24     if(opener && opener.onChildLoad)
    25       opener.onChildLoad(e);
    26   }
    28   function pageshow(e) {
    29     if(parent && parent.onChildPageShow)
    30       parent.onChildPageShow(e);
    31     if(opener && opener.onChildPageShow)
    32       opener.onChildPageShow(e);
    33   }
    35   function popstate(e) {
    36     if(parent && parent.onChildLoad)
    37       parent.onChildPopState(e);
    38     if(opener && opener.onChildLoad)
    39       opener.onChildPopState(e);
    40   }
    42   function navigateTo(loc) {
    43     location = loc;
    44   }
    46 </script>
    48 <a id="link-anchor1", href="#1">Link Anchor1</a>
    49 <a id="link-self" href="file_bug500328_1.html">Self</a>
    50 </body>
    51 </html>

mercurial