rem: parentMenu.addEventListener("create", updateViewMenu, false); 
add: parentMenu.addEventListener("popupshowing", updateViewMenu, false); 
context: function registerZoomManager(){  if (navigator.platform.indexOf("Mac") != -1)    return; // Macs suck ;-)  var textZoomMenu = document.getElementById("menu_textZoom");  if (textZoomMenu) {    var zoom = ZoomManager.prototype.getInstance();    textZoomMenu.removeAttribute("hidden");    var parentMenu = textZoomMenu.parentNode;    parentMenu.addEventListener("create", updateViewMenu, false);    var insertBefore = document.getElementById("menu_textZoomInsertBefore");    var popup = insertBefore.parentNode;    var accessKeys = zoom.bundle.getString("accessKeys").split(",");    var zoomFactors = zoom.getZoomFactors();    for (var i = 0; i < zoomFactors.length; ++i) {      var menuItem = document.createElement("menuitem");      menuItem.setAttribute("type", "radio");      menuItem.setAttribute("name", "textZoom");      var label;      if (zoomFactors[i] == 100)        label = zoom.bundle.getString("labelOriginal");      else        label = zoom.bundle.getString("label");      menuItem.setAttribute("label", label.replace(/%zoom%/, zoomFactors[i]));      menuItem.setAttribute("accesskey", accessKeys[i]);      menuItem.setAttribute("oncommand", "ZoomManager.prototype.getInstance().textZoom = this.value;");      menuItem.setAttribute("value", zoomFactors[i]);      popup.insertBefore(menuItem, insertBefore);    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/560af613c583307c2668275ab0e4d9c6f1a72d80/viewZoomOverlay.js/buggy/suite/common/viewZoomOverlay.js