Last active
September 14, 2016 15:08
-
-
Save gunesacar/ca8edde306aa22ef214a70f5bbea3acc to your computer and use it in GitHub Desktop.
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> | |
<head> | |
<title>localStorage example - 3rd party frame</title> | |
</head> | |
<body> | |
<p>Test if we can detect localStorage set by a third-party frame</p> | |
<iframe src="https://rawgit.com/gunesacar/43e2ad2b76fa5a7f7c57/raw/44e7303338386514f1f5bb4166c8fd24a92e97fe/set_ls.html"></iframe> | |
</body> | |
</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> | |
<head> | |
<title>localStorage example</title> | |
<script type="application/javascript"> | |
function set_ls() { | |
localStorage['frameId'] = 'ABCDEF0123456789'; | |
} | |
</script> | |
</head> | |
<body onload="set_ls()"> | |
<p>Will set the following localStorage item: </p> | |
<p>frameId=ABCDEF0123456789</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The src attribute of the iframe in frame_ls.html should point to set_ls.html's URL.