Closed Bug 132592 Opened 23 years ago Closed 22 years ago

onMouseOut triggered by mouse click prevents menu from working

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 102578

People

(Reporter: per.angstrom, Assigned: saari)

References

()

Details

(Keywords: platform-parity, testcase)

Attachments

(2 files, 1 obsolete file)

The menus on this web site drop down OK in Mozilla when I click on the menu bar, but there is no response when I click on individual menu items. Tested in build 2002031921 on Linux. The site works OK in stock 0.9.9 on Windows 98. In Netscape 6.2.1 on Linux, the menus don't even drop down, although the code looks as if it's written with NS 6 in mind.
The information about Windows 98 was a mistake. In fact, the information is about stock 0.9.9 (2002020511) on Linux.
Summary: svenskaspel.se - no response on menu click (OK on Windows) → svenskaspel.se - no response on menu click
Are there any errors in the javascript console? (please clear the console, then load the site, then click on the menu/menuitem). The menus work for me, linux build 2002-03-21-08.
Reassigning to Browser-General until we can get the requested information. This is not likely to be JS Engine issue. cc'ing self - The site also WORKSFORME with Mozilla trunk binary 20020317xx.
Assignee: rogerl → asa
Component: JavaScript Engine → Browser-General
QA Contact: pschwartau → doronr
The Javascript Console remains clean as I move the cursor and click the menus.
Could you try the site with a new profile? To do this, launch Mozilla from the command line as follows: [(path to Mozilla)] ./mozilla.exe -profilemanager When the Profile Manager comes up, there's a button called "Create Profile".
I created a new user profile, and started Mozilla using that profile. The problem is exactly as before.
When you click on a menu item, does the "throbber" start to run? (the icon in the upper-right corner of the browser) Or does the browser just do nothing at all?
The browser does nothing at all. The throbber does not start to run. The menu goes away when I click an item, that's all. In every other respect, the menus behave OK: they drop down, the cursor changes to a hand, the active item is underlined on mouse-over, the status bar shows the different destinations as I move the mouse pointer over the items.
What happens if you RIGHT-click on the dropdown menus items, to open them in a new window. Does that work?
I'm seeing this with Linux build 20020321. right-click => open in new tab works fine.
But left-click does nothing at all?
OK, let me assign this to Event Handling. We're recognizing the links in the submenus: right-clicking on them will open in a new window. But left-clicking on them does nothing. Confirming based on Comment #10 -
Assignee: asa → joki
Status: UNCONFIRMED → NEW
Component: Browser-General → Event Handling
Ever confirmed: true
QA Contact: doronr → madhur
the onClick event is never executed. I changed it to: onclick="alert(0);" and it never pops up the alert. The menu is being erased by the winClick function which seems to be interfering with the onclick handler. If I disable the "menuArray[i].lay.hide()" line in the winClick function, then the onclick handler behaves properly.
Re comment #9: Right-clicking on a menu item will make the menu disappear before Mozilla's context menu appears. The context menu is the one I get when I right-click directly on the page; it doesn't have "Open in New Window" and other link-related items.
It works for me in build 20020320-19, Linux.
> It works for me in build 20020320-19, Linux. Per: I'm going to resolve this bug as WORKSFORME, then, OK? If not, please reopen the bug; thanks -
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
I'm sorry, but I have to reopen the bug. It's so weird: now, the same site, using the same build, does not work - it is the same problem as before. After seeing this, I have uninstalled Mozilla, deleted the directory structure, reinstalled Mozilla, and renamed the .mozilla directory. The problem is exactly as before. See also: bug #132968.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I still don't know what causes the problem, but I have found out that restarting the X-Window system can cure it, at least temporarily. I got it to work yesterday, by restarting X, and I was just about to assert that it works today, only to discover that it has gone back to not working.
Per, what happens if you try the reduced testcase? Note: some of the pages that come up have document.layers errors, but at least they come up for me when I click on the menu items. One menu item that has no document.layers errors is "Logga in".
Attached file testcase #2
Phil: your testcase doesn't exhibit the bug for me, but testcase #2 does. It appears that clicking activates onmouseout event (why?) before anything else, which screws everything up. Also see bug 130999 and bug 130265
Also note bug 110072, "onMouseOver/onMouseOut event problems with image maps", particularly http://bugzilla.mozilla.org/show_bug.cgi?id=110072#c3, which shows onMouseOut events firing at the wrong time...
The site worked fine yesterday, after having started the X session. Testcase #1 and #2 both worked as expected. Today, some 24 hours later in the same X-session, the menus on the site have gone back to not working, and testcase #2 has stopped working (nothing happens on clicking the link, except that the string "winClick false" is output). Testcase #1 works as before. Using 0.9.9+ 20020401-08 on Linux.
Andrew: Per has found that all the testcases can work perfectly at the beginning of his X session, but they start to fail after X has run for some time on his box. Do you have the same experience? That is, if you restart X, do the testcases all work for awhile?
I have never seen the URL or testcase to work. I tried it out when I first logged in (X exits at logout) and it still didn't work. Per: have you ever seen this bug with testcase #1?
Re comment #26: I have only tried the testcases over the last two days, but so far, #1 has always worked for me.
Attachment #75962 - Attachment is obsolete: true
It works for me in build 20020406-16, as well as in builds 0404 and 0405. How's it working for you, Andrew?
testcase and URL don't work for me with build 20020407
It had been working flawlessly for almost a week until today, when I had to restart X to get the the menus on the problem URL working again. Before restarting X, I tested in builds 0404, 0410 and 0411, and I saw the same problem in each build. I forgot to try testcase #2.
QA Contact: madhur → rakeshmishra
*** Bug 154492 has been marked as a duplicate of this bug. ***
I have found another site that exhibits the same problem: <http://www.aderagroup.com/>. I also note that when a submenu is active it will disappear before I can reach any item on it, unless I'm very quick with the mouse. The site works fine in Netscape 7 PR1 and Mozilla 0.9.9, both on Windows 98. Svenska Spel is still misbehaving occasionally for me. Tested in: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1a+) Gecko/20020627.
Resolving as dupe of bug 132968. See bug 134904 comment 23. *** This bug has been marked as a duplicate of 132968 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago22 years ago
Resolution: --- → DUPLICATE
reopening. this bug has a testcase and we know what's going wrong (comment 22). we just don't know why or how to fix it. bug 132968 has a bunch of URLs, some of which appear to be experiencing this bug and some which I don't understand.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
QA Contact: rakeshmishra → trix
*** Bug 139470 has been marked as a duplicate of this bug. ***
This is a reduced testcase based on the URL given in bug 139470. The testcase contains two "Mozilla" links. One of them should work, the other shouldn't. The nonworking link has an onMouseOut handler which causes the two links to become hidden. For some reason, this handler is triggered by clicking on the link, and for some reason this prevents mozilla from following the link. Moving your mouse over "Appear" and "Disappear" will make the two links appear or vanish.
Better summary; adding to bug 113492, the dynamic menu tracking bug.
Blocks: 113492
Keywords: testcase
Summary: svenskaspel.se - no response on menu click → onMouseOut prevents menu from working
*** Bug 173015 has been marked as a duplicate of this bug. ***
resummarizing a bit more
Summary: onMouseOut prevents menu from working → onMouseOut triggered by mouse click prevents menu from working
*** Bug 187534 has been marked as a duplicate of this bug. ***
*** Bug 187805 has been marked as a duplicate of this bug. ***
*** Bug 138452 has been marked as a duplicate of this bug. ***
reassign
Assignee: joki → saari
Status: REOPENED → NEW
Keywords: pp
*** Bug 187534 has been marked as a duplicate of this bug. ***
See also bug 102578, which is more generally about onmouseout being triggered by clicking.
*** Bug 159622 has been marked as a duplicate of this bug. ***
marking dupe. these two are really about the same problem and developers aren't paying attention to this bug anyway. *** This bug has been marked as a duplicate of 102578 ***
Status: NEW → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → DUPLICATE
No longer blocks: 113492
ContinuesToNotWorkForMe Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: