https://github.com/web-platform-tests/wpt
Raw File
Tip revision: cb0c9da3fc19b0e553036b07d304b264c40386eb authored by Mike Pennisi on 07 September 2018, 01:57:53 UTC
Log suspicious test declarations
Tip revision: cb0c9da
018.html
<!doctype html>
<title>origin of the script that invoked the method, javascript:</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe src="javascript:''"></iframe>
<div id=log></div>
<script>
async_test(function() {
  window[0].postMessage('', '*');
  window[0].onmessage = this.step_func(function(e) {
    assert_equals(e.origin, location.protocol + '//' + location.host);
    this.done();
  });
});
</script>


back to top