1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/whatwg/file_bug500328_1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,51 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +Inner frame for testing bug 500328. 1.8 +https://bugzilla.mozilla.org/show_bug.cgi?id=500328 1.9 +--> 1.10 +<head> 1.11 +<title>test 1</title> 1.12 + <style> 1.13 + a { fill:blue; } 1.14 + a:visited { fill:purple; } 1.15 + </style> 1.16 +</head> 1.17 +<body onload="load(event);" onpopstate="popstate(event);" onpageshow="pageshow(event);"> 1.18 +<script type="application/javascript"> 1.19 + if (parent && parent.onChildScript) 1.20 + parent.onChildScript(history.state); 1.21 + if (opener && opener.onChildScript) 1.22 + opener.onChildScript(history.state); 1.23 + 1.24 + function load(e) { 1.25 + if(parent && parent.onChildLoad) 1.26 + parent.onChildLoad(e); 1.27 + if(opener && opener.onChildLoad) 1.28 + opener.onChildLoad(e); 1.29 + } 1.30 + 1.31 + function pageshow(e) { 1.32 + if(parent && parent.onChildPageShow) 1.33 + parent.onChildPageShow(e); 1.34 + if(opener && opener.onChildPageShow) 1.35 + opener.onChildPageShow(e); 1.36 + } 1.37 + 1.38 + function popstate(e) { 1.39 + if(parent && parent.onChildLoad) 1.40 + parent.onChildPopState(e); 1.41 + if(opener && opener.onChildLoad) 1.42 + opener.onChildPopState(e); 1.43 + } 1.44 + 1.45 + function navigateTo(loc) { 1.46 + location = loc; 1.47 + } 1.48 + 1.49 +</script> 1.50 + 1.51 +<a id="link-anchor1", href="#1">Link Anchor1</a> 1.52 +<a id="link-self" href="file_bug500328_1.html">Self</a> 1.53 +</body> 1.54 +</html>