Closed Bug 600340 Opened 15 years ago Closed 15 years ago

hidden contextmenu appear when attaching an event to contentAreaContextMenu

Categories

(Firefox :: Extension Compatibility, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: aissam, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 all hidden context related firefox menus appears Reproducible: Always Steps to Reproduce: 1.prepare an empty extension with an overlay 2. add menuitem to contextAreaContextMenu <menupopup id="contentAreaContextMenu" onpopupshowing="alert('oki')"> <menuitem id="thumbnailShow" label="View Thumbnail" oncommand="alert('doki');"/> </menupopup> 3. install extension and right click on a page Actual Results: all hidden menu are shown Expected Results: only related context menu should be shown
onpopupshowing override firefox method that's the reason of this behavior. event should be added in javascript after full load (for eg. window.load) using contentAreaContextMenu before (for eg. by calling document.getElementById("contentAreaContextMenu");) will cause another strange stuff: no added menuitem (in xul) will appear.
That's correct. Seems like this bug can be closed.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.