- From: Boris Zbarsky <web-platform-tests-notifications@w3.org>
- Date: Thu, 23 Feb 2017 22:15:33 GMT
- To: public-web-platform-tests-notifications@w3.org
That's odd. I just tried this locally <!DOCTYPE html> <iframe src="subframe.html"></iframe> <script> onmessage = function(e) { console.log(e.source == frames[0]); console.log(e.source == this); } </script> where `subframe.html` is: <body onbeforeunload="return { toString: parent.postMessage.bind(parent, 'PASS', '*') };"> <a href="http://example.com">Click me</a> and I get `true` and `false` logged in that order. View on GitHub: https://github.com/w3c/web-platform-tests/pull/4988#issuecomment-282139229
Received on Thursday, 23 February 2017 22:15:46 UTC