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.

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

mercurial