dom/tests/mochitest/whatwg/file_bug500328_1.html

branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
equal deleted inserted replaced
-1:000000000000 0:8c0c0a0d0531
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);
20
21 function load(e) {
22 if(parent && parent.onChildLoad)
23 parent.onChildLoad(e);
24 if(opener && opener.onChildLoad)
25 opener.onChildLoad(e);
26 }
27
28 function pageshow(e) {
29 if(parent && parent.onChildPageShow)
30 parent.onChildPageShow(e);
31 if(opener && opener.onChildPageShow)
32 opener.onChildPageShow(e);
33 }
34
35 function popstate(e) {
36 if(parent && parent.onChildLoad)
37 parent.onChildPopState(e);
38 if(opener && opener.onChildLoad)
39 opener.onChildPopState(e);
40 }
41
42 function navigateTo(loc) {
43 location = loc;
44 }
45
46 </script>
47
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