https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 940c743ef143aa60d71f4c3236c24572d53ecc5d authored by Eric Willigers on 12 April 2018, 14:56:39 UTC
Update by testing Firefox nightly 61.01a
Tip revision: 940c743
postMessage_clone_port_error.htm
<!DOCTYPE html>
<title> postMessage(): cloning source port </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
test(function() {
  var channel = new MessageChannel();
  channel.port1.start();
  assert_throws("DataCloneError", function() {
    channel.port1.postMessage("ports", [channel.port1]);
  });
});
</script>
back to top