B2G/gecko/browser/components/places/tests/browser/browser_views_liveupdate.js
/**
 * Simulates popup opening causing it to populate.
 * We cannot just use menu.open, since it would not work on Mac due to native menubar.
 */
Simulates popup opening causing it to populate.
We cannot just use menu.open, since it would not work on Mac due to native menubar.
Simulates popup opening causing it to populate . We cannot just use menu . open since it would not work on Mac due to native menubar .
function fakeOpenPopup(aPopup) {
  var popupEvent = document.createEvent("MouseEvent");
  popupEvent.initMouseEvent("popupshowing", true, true, window, 0,
                            0, 0, 0, 0, false, false, false, false,
                            0, null);
  aPopup.dispatchEvent(popupEvent);  
}
function fakeOpenPopup ( aPopup ) { var popupEvent = document . createEvent ( "MouseEvent" ) ; popupEvent . initMouseEvent ( "popupshowing" , true , true , window , 0 , 0 , 0 , 0 , 0 , false , false , false , false , 0 , null ) ; aPopup . dispatchEvent ( popupEvent ) ; }
Simulates popup opening causing it to populate.
Simulates popup opening causing it to populate .