docshell/test/iframesandbox/file_top_navigation_by_location_exotic.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_exotic.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     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 onBlock() {
    1.11 +    opener.postMessage({ name: window.name, blocked: true }, '*');
    1.12 +  }
    1.13 +
    1.14 +  function onNav() {
    1.15 +    opener.postMessage({ name: window.name, blocked: false }, '*');
    1.16 +  }
    1.17 +
    1.18 +  function setOwnHref() {
    1.19 +    location.href = location.href;
    1.20 +  }
    1.21 +
    1.22 +  window.onload = onNav;
    1.23 +</script>
    1.24 +</head>
    1.25 +<body>
    1.26 +  <iframe name="if1" sandbox="allow-scripts allow-same-origin"></iframe>
    1.27 +  <iframe name="if2" sandbox="allow-scripts allow-same-origin allow-top-navigation"></iframe>
    1.28 +</body>
    1.29 +</html>

mercurial