The MDN menu-button page provides an example that should work for you in the overlay. Here is an adaptation that can be inserted into your overlay (with a style proposal from Vladimir):
<toolbarbutton type="menu-button" label="" style="list-style-image: url('http://cdn.sstatic.net/stackoverflow/img/favicon.ico')"> <menupopup> <menuitem label="Save This Document"/> <menuitem label="Save All" oncommand="alert('Save All'); event.stopPropagation();"/> </menupopup> </toolbarbutton>
source share