Commit e6f01592 authored by Markus Stange's avatar Markus Stange
Browse files

Bug 1704572 - Use openMenu(true) instead of openPopup() for opening the 'this...

Bug 1704572 - Use openMenu(true) instead of openPopup() for opening the 'this frame' submenu in browser/base/content/test/contextMenu/browser_contextmenu_iframe.js. r=Gijs

openMenu(true) works on both native and non-native context menus. openPopup() does not work on native context menus.

Differential Revision: https://phabricator.services.mozilla.com/D111682
parent 20cc879c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -47,12 +47,13 @@ add_task(async function test_open_iframe() {
  );

  // Open frame submenu
  const menuPopup = contextMenu.querySelector("#frame").menupopup;
  const frameItem = contextMenu.querySelector("#frame");
  const menuPopup = frameItem.menupopup;
  const menuPopupPromise = BrowserTestUtils.waitForEvent(
    menuPopup,
    "popupshown"
  );
  menuPopup.openPopup();
  frameItem.openMenu(true);
  await menuPopupPromise;

  let domItem = contextMenu.querySelector("#context-openframeintab");