Bug 993712 - Try to fix intermittent browser_984455_bookmarks_items_reparenting.js by using openPopup to open menus instead of synthesized mouse events. rs=jaws.

This commit is contained in:
Mike Conley 2014-05-23 14:18:00 -04:00
parent 0f9122e97d
commit 65c6a341ef

View File

@ -85,7 +85,7 @@ function checkSpecialContextMenus() {
let menuPopup = document.getElementById(kSpecialItemIDs[menuID]);
info("Waiting to open menu for " + menuID);
let shownPromise = popupShown(menuPopup);
EventUtils.synthesizeMouseAtCenter(menuItem, {});
menuPopup.openPopup(menuItem, null, 0, 0, false, false, null);
yield shownPromise;
yield checkPlacesContextMenu(menuPopup);