User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:126.96.36.199) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729) Build Identifier: document.getElementById("contentAreaContextMenu").openPopup(null, 'after_pointer') opens the popup in the top-left corner of the window, but not vertically offset a few pixels from the mouse pointer. Is it a bug or intended behavior? Reproducible: Always
after_pointer is not currently implemented with respect to the mouse pointer. It currently offsets 21 pixels vertically from the anchor.
This has been documented in several places for a long while. Should the documents be corrected or this bug be fixed? https://developer.mozilla.org/en/XUL/menupopup#a-popup.position https://developer.mozilla.org/en/XUL/Attribute/popup.position https://developer.mozilla.org/en/XUL/PopupGuide/Positioning#The_position_attribute https://developer.mozilla.org/en/XUL_Tutorial/Popup_Menus#Popup_Alignment
It seems that "at_pointer" is not implemented as well. I've updated the docs linking to this bug.