Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE HTML>
<meta charset="utf-8">
<iframe src="file_sample.html"></iframe>
<script>
"use strict";
// Dereference frames[0] to ensure the creation of the frame's window context.
// Without this, the frame's browsingContext.currentWindowGlobal is null in the
// parent on Android with --disable-fission (bug 1902709).
void frames[0];
console.log("This is " + document.URL + " and opener=" + opener);
</script>