Created
October 26, 2017 13:02
-
-
Save wanderview/b819e4c5357909e6ab40121d421960a0 to your computer and use it in GitHub Desktop.
Common about:blank replacement case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<script> | |
// self.bar === 'foobar' | |
</script> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<iframe id="foo" src="frame.html"></iframe> | |
<script> | |
let frame = document.getElementById('foo'); | |
frame.contentWindow.bar = 'foobar'; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment