Closed
Bug 519296
Opened 16 years ago
Closed 16 years ago
openPopup with "after_pointer" doesn't work
Categories
(Core :: XUL, defect, P2)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
| Tracking | Status | |
|---|---|---|
| status1.9.2 | --- | beta1-fixed |
People
(Reporter: kazuho, Assigned: enndeakin)
References
Details
Attachments
(4 files)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier:
tooltip/menupopup openPopup function with "after_pointer" doesn't work if the element is on xul:panel.
Reproducible: Always
Steps to Reproduce:
1. Create xul:panel and xul:tooltip
2. Put some element on the panel
3. open tooltip with tooltip.openPanel(target, "after_pointer", 0, 0, false, false)
Actual Results:
tooltip won't appear, or appear wrong place.
Expected Results:
tooltip should appear near by mouse cursor.
Attached XUL file can reproduce this bug.
| Reporter | ||
Comment 1•16 years ago
|
||
Attachment #403334 -
Flags: review?
Comment 2•16 years ago
|
||
What does "tooltip won't appear, or appear wrong place" mean? In which cases does it not appear at all? And when it appears "in the wrong place", where exactly does it appear?
When I click the button in your testcase, the popup opens with its top left corner exactly under the cursors "click position". Does that not work for you?
| Reporter | ||
Comment 3•16 years ago
|
||
Oops, I didn't mention that this bug appears on latest Firefox trunk, works fine with 3.0/3.5. Not sure on 3.6beta.
| Reporter | ||
Updated•16 years ago
|
Version: unspecified → Trunk
Comment 4•16 years ago
|
||
I'm testing with today's trunk nightly and I don't see what you're seeing (or I don't understand it).
| Reporter | ||
Comment 5•16 years ago
|
||
Did you click "Search" Button on the panel? Pls try to click "Panel" then click "Search" button. On Fx 3.5, click search button opens tooltip after mouse cursor, but on Trunk, tooptip won't appear.
I tested this on http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
firefox-3.7a1pre.en-US.mac.dmg 28-Sep-2009 06:28 23M
Not tested on Win/Linux.
Comment 6•16 years ago
|
||
Aha, the search button! You could have said that in your STR ;)
OK, I see what you mean.
Updated•16 years ago
|
Attachment #403334 -
Flags: review?
Comment 7•16 years ago
|
||
Yeah, I could have read the code more thoroughly, but somehow I didn't see it...
| Reporter | ||
Comment 8•16 years ago
|
||
Sorry about not explain it clearly..
Comment 9•16 years ago
|
||
I can reproduce the described behavior on Windows Vista.
Regression range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7b8ca8c944f2&tochange=e45938aee309
Bug 279539 seems a possible cause. Please remove if the dependency is not correct.
| Assignee | ||
Comment 10•16 years ago
|
||
after_pointer has never really worked as it should, and the value should probably just be removed. This patch should fix the regression though.
Assignee: nobody → enndeakin
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #404064 -
Flags: review?(neil)
Updated•16 years ago
|
Attachment #404064 -
Flags: review?(neil) → review+
| Assignee | ||
Comment 11•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
| Reporter | ||
Comment 12•16 years ago
|
||
Is this fixed? I downloaded latest Firefox trunk, but it seems bug is still in there.
test in:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
firefox-3.7a1pre.en-US.mac.dmg 06-Oct-2009 04:33 23M
Comment 13•16 years ago
|
||
Can we get this on 1.9.2? Jetpack's menu impl (bug 494651) allows popups on arbitrary nodes in content via nsIPopupBoxObject.openPopup, and after_pointer is the best position for that. It's not a must since other positions are passable, but it would be nice.
Flags: wanted1.9.2?
Comment 14•16 years ago
|
||
Comment on attachment 404064 [details] [diff] [review]
fix
See previous comment.
Attachment #404064 -
Flags: approval1.9.2?
Flags: wanted1.9.2? → blocking1.9.2+
Priority: -- → P2
| Assignee | ||
Comment 15•16 years ago
|
||
status1.9.2:
--- → beta1-fixed
| Reporter | ||
Comment 16•16 years ago
|
||
This still bugs to me on Mac. Please check an attached screen shot. I open tooltip like following:
tooltip.openPopup(target, "after_pointer", 16, 8, false, false);
"before_end", or the other method works fine and this happens only on Mac, not happens on Windows.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Comment 17•16 years ago
|
||
Attachment #410321 -
Flags: review?
| Assignee | ||
Updated•16 years ago
|
Attachment #410321 -
Flags: review?
| Assignee | ||
Comment 18•16 years ago
|
||
Please attach a testcase showing what you think is wrong.
| Reporter | ||
Comment 19•16 years ago
|
||
Attached xpi file will reproduce the bug.
on Mac:
Popup open wrong place. If you modify overlay.js Line:5 to 'before_end' or something else, it works.
on Windows:
It works appropriately.
| Reporter | ||
Comment 20•16 years ago
|
||
Attachment #410324 -
Flags: review?
| Reporter | ||
Comment 21•16 years ago
|
||
P.S. I tested this on Firefox 3.5.4 and 3.6b1 for Mac & Windows. Only Firefox 3.6b1 on Mac couldn't handle this.
| Assignee | ||
Comment 22•16 years ago
|
||
Don't see any problem with this, either on Mac on Windows. The panel appears in the right place. If you can make a simple testcase (just one file, not an extension) which shows an issue, please file a new bug.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 23•16 years ago
|
||
Create a XUL file and new bug: https://bugzilla.mozilla.org/show_bug.cgi?id=526610
| Assignee | ||
Comment 24•16 years ago
|
||
Wait, you're testing on 3.6b1? Or a nightly build? The patch only went into 3.6 last week, so if you're using a build earlier than that, you won't see the fix.
| Reporter | ||
Comment 25•16 years ago
|
||
Grr, yes, I tested on 3.6b1. Downlaoded 3.6b2pre and confirmed that the bug is fixed. Thanks!
Comment 26•16 years ago
|
||
Neil, is it expected that the tooltip of the testcase doesn't close when you close the opened panel just by clicking in the white area? It even stays on top when I switch to other applications. Tested with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2b2pre) Gecko/20091104 Namoroka/3.6b2pre ID:20091104033600
Target Milestone: --- → mozilla1.9.3a1
| Assignee | ||
Comment 27•16 years ago
|
||
The 'tooltip' should not close as the testcase never closes it. Note that, despite using the <tooltip> tag, it isn't being opened as a tooltip, so the normal tooltip event handling isn't occurring.
Updated•16 years ago
|
Attachment #410324 -
Flags: review?
Comment 28•16 years ago
|
||
Ah ok, so comparing the behavior in Namoroka with Shiretoko shows me that we have a vertical offset to the search button now. While in Shiretoko the popup is opened directly beneath the button it's now shifted down by around 20px.
Updated•16 years ago
|
Attachment #404064 -
Flags: approval1.9.2?
You need to log in
before you can comment on or make changes to this bug.
Description
•