MessageEvent-trusted.window.js (229B)
1 // META: title=MessagePort message events are trusted with window 2 3 async_test(t => { 4 window.onmessage = t.step_func_done(e => { 5 assert_equals(e.isTrusted, true); 6 }); 7 8 window.postMessage("ping", "*"); 9 }, "With window");