docshell/test/file_bug385434_1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/test/file_bug385434_1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +<!--
     1.5 +Inner frame for test of bug 385434.
     1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=385434
     1.7 +-->
     1.8 +<html>
     1.9 +<head>
    1.10 +  <script type="application/javascript">
    1.11 +    function hashchange() {
    1.12 +      parent.onIframeHashchange();
    1.13 +    }
    1.14 +
    1.15 +    function load() {
    1.16 +      parent.onIframeLoad();
    1.17 +    }
    1.18 +
    1.19 +    function scroll() {
    1.20 +      parent.onIframeScroll();
    1.21 +    }
    1.22 +  </script>
    1.23 +</head>
    1.24 +
    1.25 +<body onscroll="scroll()" onload="load()" onhashchange="hashchange()">
    1.26 +<a href="#link1" id="link1">link1</a>
    1.27 +<!-- Our parent loads us in an iframe with height 100px, so this spacer ensures
    1.28 +     that switching between #link1 and #link2 causes us to scroll -->
    1.29 +<div style="height:200px;"></div>
    1.30 +<a href="#link2" id="link2">link2</a>
    1.31 +</body>
    1.32 +</html>

mercurial