docshell/test/file_bug385434_1.html
author Sebastian Hengst <archaeopteryx@coole-files.de>
Fri, 14 Apr 2017 23:39:22 +0200
changeset 401420 d523c49136775a7187486dbc96858a2cb0383bfb
parent 29975 da57f50c3be8843c302c6035bee98d8320a58cad
child 494882 58adc643dcdc20eccb4d30bc454b50420e96c020
permissions -rw-r--r--
Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout

<!--
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>