Open Bug 623952 Opened 12 years ago Updated 6 months ago
if onpopuphiding attribute in a menupopup element displays an alert the whole GUI of the desktop is locked out and it's impossible to directly close the alert
(Firefox :: General, defect)
(Reporter: karolis.n, Unassigned)
3.68 KB, application/octet-stream
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.45 Safari/534.13 Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:22.214.171.124pre) Gecko/20110107 Ubuntu/10.10 (maverick) Namoroka/3.6.14pre Not sure how important this bug is, but here we go. Here is an example of an overlay that reproduces the problem: <?xml version="1.0" encoding="UTF-8"?> <overlay id="onpopuphidingBug" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <popupset id="mainPopupSet"> <menupopup id="onpopuphidingBug-menupopup" onpopuphiding="alert('hiding');"> <menuitem label="DON'T CLICK ON THESE MENU ITEMS" /> <menuitem label="RATHER CLICK ANYWHERE ELSE ON THE SCREEN TO CLOSE THE CONTEXT MENU" /> <menuitem label="now the whole GUI of your whole desktop should be locked out" /> <menuitem label="try using" /> <menuitem label="up and down" /> <menuitem label="arrows" /> <menuitem label="and enter to 'close' that alert box" /> <menuitem label="by opening a new one" /> </menupopup> </popupset> <statusbar id="status-bar"> <label id="onpopuphidingBug-icon" value="right click me" tooltiptext="" context="onpopuphidingBug-menupopup" /> </statusbar> </overlay> When the alert dialog is displayed upon the closing of the context menu, the whole desktop GUI (Gnome) is locked out from the user. It doesn't freeze, but no mouse clicks or keyboard events seem to be handled. The only thing that I found to be working are the arrow keys that let you select some option in the context menu. Pressing enter on some menu item causes a second alert box to appear and unlocks the desktop. Now both alerts can be closed. Reproducible: Always Steps to Reproduce: 1. Install the extension provided / Run an extension with an overlay that is provided in details / add onpopuphiding="alert('hiding');" attribute to some menupopup element. 2. Cause the menupopup to appear (by right clicking on the label in case of the provided extension) 3. Click anywhere EXCEPT for the menu items. 4. The popuphiding event is fired and the alert is displayed. 3. Actual Results: I can't click anywhere with the mouse, not the alert box, not Firefox, not other applications. Keyboard keys are not functioning either. I can change the terminal by pressing ctrl+alt+F5 for example. I can also use up and down arrow keys to select an item in the menupopup. By selecting some item, the onpopuphiding event is triggered again, another alert is displayed. Now I can close both alerts. Expected Results: While the alert is displayed, I can't click on the context menu, cause it's locked out. I can click on other applications on my desktop (not Firefox). I can close the alert box by clicking OK, after that the menupopup hides. I'm using Ubuntu 10.10 with Gnome. My friend could not reproduce it on Windows. I can reproduce it with both Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:126.96.36.199pre) Gecko/20110107 Ubuntu/10.10 (maverick) Namoroka/3.6.14pre and Mozilla/5.0 (X11; Linux x86_64; rv:2.0b9pre) Gecko/20110105 Firefox-4.0/4.0b9pre
12 years ago
Version: unspecified → 3.6 Branch
12 years ago
I've experienced this in 6.0.
6 months ago
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.