docshell/test/file_bug385434_1.html
author ffxbld
Thu, 04 Dec 2014 02:15:50 -0500
branchMOBILE350b1_2014120402_RELBRANCH
changeset 234125 7b452fbb95809c0abb444edb0f191dc929fe3f9e
parent 29975 da57f50c3be8843c302c6035bee98d8320a58cad
permissions -rw-r--r--
Added FENNEC_35_0b1_RELEASE FENNEC_35_0b1_BUILD2 tag(s) for changeset 0976e57727f3. DONTBUILD CLOSED TREE a=release

<!--
Inner frame for test of bug 385434.
https://bugzilla.mozilla.org/show_bug.cgi?id=385434
-->
<html>
<head>
  <script type="application/javascript">
    function hashchange() {
      parent.onIframeHashchange();
    }

    function load() {
      parent.onIframeLoad();
    }

    function scroll() {
      parent.onIframeScroll();
    }
  </script>
</head>

<body onscroll="scroll()" onload="load()" onhashchange="hashchange()">
<a href="#link1" id="link1">link1</a>
<!-- Our parent loads us in an iframe with height 100px, so this spacer ensures
     that switching between #link1 and #link2 causes us to scroll -->
<div style="height:200px;"></div>
<a href="#link2" id="link2">link2</a>
</body>
</html>