er("resources/incrementer-worker.js");

  return testSharingViaIncrementerScript(t, worker, "window", worker, "worker", undefined);
}, "postMessaging to a dedicated worker allows them to instantiate");

promise_test(t => {
  return new Promise(resolve => {
    const iframe = document.createElement("iframe");
    iframe.onload = t.step_func(() => {
      resolve(testSharingViaIncrementerScript(t, window, "window", iframe.contentWindow, "iframe", "*"));
    });
    iframe.src = "resources/incrementer-iframe.h