Re: [html-tests] Add tests for the realms involved in compiling event handlers (#4988)

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