Closed Bug 306669 Opened 19 years ago Closed 18 years ago

Need to hover twice to see the tooltip

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ria.klaassen, Assigned: enndeakin)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050831 Firefox/1.6a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050831 Firefox/1.6a1 I don't always see a tooltip on first mouseover. Reproducible: Always Steps to Reproduce: 1. Go to https://bugzilla.mozilla.org/show_bug.cgi?id=306662 and put your mouse on DUPLICATE of bug 245163 in one move. 2. If you don't see the bug reload the page first. Actual Results: Tooltip doesn't appear. Move your mouse, then the tooltip appears. Expected Results: Tooltip should always appear. Bug depends on the machine I'm using. On the computer I'm using now I never see the tooltip on first mouseover. On another computer I mostly need to reload first to see the bug.
I've seen this now and then, but very sporadically. If I remember correctly, a click in the document makes the tooltip appear again on hovering the link.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20050901 Firefox/1.6a1 ID:2005090108 I've seen this multiple times when first loading a bug page and hovering over the link to see a bug summary. Same thing as Martijn, though. Clicking on the page and then hoving again seems to fix this. This *might* be related to some of the focus issues when loading new pages in new tabs, although I can't say for sure I had loaded a new tab when this occured.
I did some testing and came up with the following: 1. I'm pretty sure this isn't related to bfcache. 2. I'm pretty sure this isn't related to JavaScript. 3. It seems like there is almost a timeout happening. If you wait long enough after the page loads to hover the link, it will always show the tooltip, but if you hover it pretty soon after the page loads it won't show it. 4. I also see this in 1.0. I tried to make a testcase for this but was unsuccessful.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: testcase?
OS: Windows XP → All
Hardware: PC → All
*** Bug 308224 has been marked as a duplicate of this bug. ***
hover is completely dead in SM suite when a timer is hosed, eg Bug 291386 and Bug 318419. So not same, but perhaps related?
Flags: in-testsuite?
It looks like this has become worse.
Depends on: 387533
What's happening here is that the js function FillinHTMLTooltip is returning false in its popupshowing handler causing the tooltip to not show, but mCurrentTooltip never gets cleared, causing a later tooltip to not appear. Here, a check is made to see if the tooltip actually opened and if not, clears mCurrentTooltip.
Assignee: general → enndeakin
Status: NEW → ASSIGNED
Attachment #271723 - Flags: superreview?(neil)
Attachment #271723 - Flags: review?(neil)
Blocks: 387539
Comment on attachment 271723 [details] [diff] [review] make sure current tooltip is cleared properly Note: Only marking r+ because I don't think I have r+sr powers here. > pm->ShowPopupAtScreen(mCurrentTooltip, mMouseClientX, mMouseClientY, PR_FALSE); >+ // Clear the current tooltip if the popup was not opened successfully. >+ if (!pm->IsPopupOpen(mCurrentTooltip)) I was slightly surprised that ShowPopupAtScreen doesn't tell you this... >+ PRBool IsPopupOpen(nsIContent* aPopup); ...but this looks useful, especially if we can have a scriptable wrapper ;-)
Attachment #271723 - Flags: review?(neil) → review+
Attachment #271723 - Flags: superreview?(neil) → superreview?(bzbarsky)
Comment on attachment 271723 [details] [diff] [review] make sure current tooltip is cleared properly >Index: layout/xul/base/src/nsXULPopupManager.cpp >- while (item) { >- if (item->Frame() == aPopup) >- return PR_FALSE; >- item = item->GetParent(); >- } >+ if (IsPopupOpen(aPopup->GetContent())) >+ return PR_TRUE; You mean |return PR_FALSE|, right? With that fixed, sr=bzbarsky
Attachment #271723 - Flags: superreview?(bzbarsky) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-litmus?
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: