1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18

content / test / data / overlapping_cross_site_iframe.html [blame]

<html>
<title>Overlapping cross site iframe</title>

This is the main body content.
<iframe id="iframe" style="width:300px; height:300px; position:absolute; left:100px; top:100px"></iframe>
<div id="target" style="background-color: yellow; position: absolute; top: 120px; left: 120px; width: 100px; height: 100px"></div>

<script>

  var url = window.location.protocol + '//b.com';
  if (window.location.port)
    url += ':' + window.location.port;
  url += "/cross_site_iframe_factory.html?b()";

  document.getElementById('iframe').src = url;
</script>

</html>