);
      return data.open;
    }

    promise_test(async (t) => {
      await awaitEvent(iframe1, "load", t.get_signal());
      await awaitEvent(iframe2, "load", t.get_signal());

      assert_true(await iframeDialogIsOpen(iframe1, t.get_signal()), "Dialog 1 is open");
      assert_true(await iframeDialogIsOpen(iframe2, t.get_signal()), "Dialog 2 is open");

      await test_driver.send_keys(iframe1, "\uE00C");

      assert_false(await iframeDialogIsOpen(iframe1, t.get_signal()), "Dialog 1 is now closed")