summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/extensions/get_app_details_for_frame.html
blob: 051dc897f4aefe7d9102483140f0755fada4ac88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script>
function getFrameURL(host) {
  var result = "http://" + host;
  if (location.port) {
    result += ":";
    result += location.port;
  }
  result += location.pathname;
  return result;
}

var iframe = document.createElement("iframe");
iframe.src = getFrameURL("app.com");
document.documentElement.appendChild(iframe);
</script>