summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/window-failure.https.html
blob: 203a9f637fe61a2367fd4b58523af601401991be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<div id=log></div>
<script>
async_test(t => {
  const frame = document.createElement("iframe");
  t.add_cleanup(() => frame.remove());
  frame.src = get_host_info().HTTPS_NOTSAMESITE_ORIGIN + new URL("resources/iframe-failure.html", location).pathname;
  window.onmessage = t.unreached_func("Got a message event, expected a messageerror event");
  window.onmessageerror = t.step_func_done();
  document.body.append(frame);
}, "SharedArrayBuffer and a cross-site <iframe>");
</script>