summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webmessaging/MessageEvent-trusted.window.js
blob: 11cf48beed9abda7d44816918364982ba1eb8824 (plain)
1
2
3
4
5
6
7
8
9
// META: title=MessagePort message events are trusted with window

async_test(t => {
  window.onmessage = t.step_func_done(e => {
    assert_equals(e.isTrusted, true);
  });

  window.postMessage("ping", "*");
}, "With window");