layout/reftests/bugs/582476-1-ref.svg

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <svg xmlns="http://www.w3.org/2000/svg">
     2   <script>
     3     iframeLoadedFirst = false;
     4     parentLoadedFirst = false;
     6     function iframeLoad() {
     7       if (parentLoadedFirst) {
     8         setup();
     9       } else {
    10         iframeLoadedFirst = true;
    11       }
    12     }
    14     window.onload = function() {
    15       if (iframeLoadedFirst) {
    16         setup();
    17       } else {
    18         parentLoadedFirst = true;
    19       }
    20     }
    22     function setup() {
    23       var scrollTarget = document.getElementById("ifrm").contentWindow;
    24       scrollTarget.scrollTo(0,100000);
    25     }
    26   </script>
    27   <foreignObject height="100%" width="100%">
    28     <iframe id="ifrm" onload="iframeLoad();" width="100%" height="100%" xmlns="http://www.w3.org/1999/xhtml" src="582476-1-ref-helper.html"/>
    29   </foreignObject>
    30 </svg>

mercurial