summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/testcase3.html
blob: d67bde26f432f03f311334f6d774d1638da15f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<meta charset="utf-8"/>
<title>Testcase 3: frameElement attribute must return null if the container\'s document does not have the same effective script origin</title>
<script>
window.addEventListener("message", function (event) {
  try {
    var result = "window.frameElement = " + window.frameElement;
  } catch (e) {
    result = e.message;
  }
  event.source.postMessage(JSON.stringify({name: "testcase3", result: result}),
                           "*");
}, false);
</script>