summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/sandboxing/sandbox-navigation-timing-iframe.tentative.html
blob: 43726e7720065d9fe3c7d2ea3f3563f5f80315bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<meta charset="utf-8">
<script>
  let result;
  try {
    parent.document.getElementsByClassName('script');
    result = 'iframe not sandboxed'
  } catch (e) {
    result = 'iframe sandboxed(' + e.message + ')';
  }
  window.onmessage = m => {
    window.parent.postMessage({
      result: result
    }, '*');
  };
</script>