mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
9 lines
229 B
JavaScript
9 lines
229 B
JavaScript
// 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");
|