mirror of
https://github.com/servo/servo
synced 2026-04-29 02:47:55 +02:00
15 lines
497 B
HTML
15 lines
497 B
HTML
<!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>
|