docshell/test/iframesandbox/file_top_navigation_by_location.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/test/iframesandbox/file_top_navigation_by_location.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +<meta charset="utf-8">
     1.8 +<title>Test window for top navigation by location tests</title>
     1.9 +<script>
    1.10 +  function onNav() {
    1.11 +    opener.postMessage(window.name, "*");
    1.12 +  }
    1.13 +
    1.14 +  window.onload = onNav;
    1.15 +  window.onhashchange = onNav;
    1.16 +</script>
    1.17 +</head>
    1.18 +<body>
    1.19 +  <iframe name="if1" sandbox="allow-scripts allow-same-origin"></iframe>
    1.20 +  <iframe name="if2" sandbox="allow-scripts allow-same-origin allow-top-navigation"></iframe>
    1.21 +  <iframe name="if3" sandbox="allow-scripts allow-top-navigation"></iframe>
    1.22 +</body>
    1.23 +</html>

mercurial