dom/tests/mochitest/whatwg/file_bug500328_1.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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