Revision 2b8e0e7004fa407892b0966d2ae3d1ce68aaf678 authored by Anthony Ramine on 07 April 2018, 11:42:03 UTC, committed by Anthony Ramine on 09 April 2018, 09:29:35 UTC
1 parent 6fe36d7
Raw File
origin.window.js
async_test(t => {
  const crossOriginURL = new URL("resources/origin.html", self.location.href).href.replace("://", "://天気の良い日."),
        frame = document.createElement("iframe");
  frame.src = crossOriginURL;
  document.body.appendChild(frame);
  t.add_cleanup(() => frame.remove());
  self.onmessage = t.step_func_done(e => {
    assert_equals(e.data, self.origin.replace("://", "://xn--n8j6ds53lwwkrqhv28a."));
  });
}, "Serialization of BroadcastChannel origin");
back to top