Closed
Bug 171229
Opened 22 years ago
Closed 19 years ago
[FIX]Tooltip locations in frames and iframes are wrong
Categories
(Core Graveyard :: Embedding: GRE Core, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.8beta5
People
(Reporter: kawakami, Assigned: bzbarsky)
References
()
Details
(Keywords: fixed1.8)
Attachments
(3 files, 1 obsolete file)
1.77 KB,
text/html
|
Details | |
329 bytes,
text/html
|
Details | |
6.88 KB,
patch
|
roc
:
review+
roc
:
superreview+
brendan
:
approval1.8b5+
|
Details | Diff | Splinter Review |
When a tooltip is within an iFrame, it will be mis-positioned. The position should be relative to the iFrame's origin, but it comes up relative to the iFrame's parent. In other words, the tooltip usually appears higher and further to the left than it should.
Mark, what build ID are you reporting this bug against? Also, please provide an example URL or testcase attachment.
Summary: Tooltips in iframes are positioned relative to parent viewport → Tooltips in IFRAMEs are positioned relative to parent viewport
Reporter | ||
Comment 2•22 years ago
|
||
Greg: I've noticed this in all the builds, but for the recrod, I'm using Build ID: 2002092704
Reporter | ||
Updated•22 years ago
|
Updated•22 years ago
|
Summary: Tooltips in IFRAMEs are positioned relative to parent viewport → Tooltip locations in frames and iframes are wrong
Updated•22 years ago
|
Target Milestone: --- → Chimera1.1
Comment 6•21 years ago
|
||
Just to provide a testcase. Look at http://www.sparkasse-darmstadt.de/. Besides the fact, that this page looks really ugly with the current Panther-Bug the Tooltips are all positioned wrong. Tested with build 2004020303 (v0.7+)
*** Bug 202001 has been marked as a duplicate of this bug. ***
Comment 8•20 years ago
|
||
another url testcase is http://www.brodsoft.de/camino/frame.html
Target Milestone: Camino1.1 → Camino1.0
Comment 9•19 years ago
|
||
Comment 10•19 years ago
|
||
Comment 11•19 years ago
|
||
I guess we should we fix the caller of nsITooltipListener here: http://lxr.mozilla.org/mozilla/source/embedding/browser/webBrowser/nsDocShellTreeOwner.cpp#1122
Comment 12•19 years ago
|
||
nsITooltipListener states that the coordinates supplied are relative to the top, left of the browser content area, so we should make that so. This means that ChromeTooltipListener (in nsDocShellTreeOwner.cpp) needs to convert the clientX/clientY coords of the mouse move event into coords that are relative to the top DOMWindow. In order to do this, I guess it has to know which subframe the event was targed at, in order to know what clientX/clientY are relative to, then it has to walk the windows and fix up the offets. I'm not sure of the best way to do that.
Comment 13•19 years ago
|
||
Forgive my ignorance, but why is this completely different than Firefox?
Comment 14•19 years ago
|
||
(In reply to comment #13) > Forgive my ignorance, but why is this completely different than Firefox? Because Firefox tooltips are done using XUL.
Assignee | ||
Comment 15•19 years ago
|
||
And more to the point, Firefox doesn't use nsITooltipListener, or nsWebBrowser or nsDocShellTreeOwner... :( roc, what's our current One True Way on trunk and 1.8 branch to get from an event to coords in a given docshell's coordinate system? Do we just go through screen coords, or do we have something better? I do think we should fix this for 1.8....
Flags: blocking1.8b5?
I would suggest just going through screen coordinates since this can't be performance critical.
Updated•19 years ago
|
Flags: blocking1.8b5? → blocking1.8b5-
Assignee | ||
Comment 17•19 years ago
|
||
Asa, why is this not blocking Gecko 1.8, exactly? If we're not caring about embeddors being able to usefully use Gecko 1.8, just let me know and I'll stop worrying about whole classes of bugs here...
Assignee | ||
Comment 18•19 years ago
|
||
This doesn't quite work in TestGtkEmbed because for some reason the parent widget for the docshell is the outer window, as far as I can tell, and the docshell's offsets are 0. roc, do we have a guaranteed way to get at the widget _inside_ the docshell? That's the one we really want to be using here, I think...
Attachment #196394 -
Flags: review?(roc)
You could go get the document's presentation's view manager's root view's widget, that has to be correct. :-|
Attachment #196394 -
Flags: review?(roc)
Assignee | ||
Comment 20•19 years ago
|
||
Yeah... I was kinda hoping to avoid that, if only because we might be making those widgets go away at some point, no? And I'd really rather this code didn't break then, esp. since it's unfortunately not tested in Firefox-land. Perhaps we could consider exposing a getter for its screen coords on a docshell or something?
Sure, that sounds reasonable.
Assignee | ||
Comment 22•19 years ago
|
||
Attachment #196394 -
Attachment is obsolete: true
Attachment #196581 -
Flags: superreview?(roc)
Attachment #196581 -
Flags: review?(sfraser_bugs)
Assignee | ||
Updated•19 years ago
|
Attachment #196581 -
Flags: superreview?(roc)
Attachment #196581 -
Flags: review?(sfraser_bugs)
Assignee | ||
Updated•19 years ago
|
Assignee: pinkerton → dougt
Component: General → Embedding: GRE Core
Product: Camino → Core
QA Contact: winnie
Target Milestone: Camino1.0 → ---
Version: unspecified → Trunk
Assignee | ||
Updated•19 years ago
|
Attachment #196581 -
Flags: superreview?(roc)
Attachment #196581 -
Flags: review?(sfraser_bugs)
Assignee | ||
Updated•19 years ago
|
Assignee: dougt → bzbarsky
Priority: -- → P1
Summary: Tooltip locations in frames and iframes are wrong → [FIX]Tooltip locations in frames and iframes are wrong
Target Milestone: --- → mozilla1.8beta5
Assignee | ||
Comment 23•19 years ago
|
||
I'll file a followup bug on a better API for this, but I'd really rather not change apis on branch at this point if I can avoid it...
Comment on attachment 196581 [details] [diff] [review] This makes TestGtkEmbed happy, at least... Good enough for branch.
Attachment #196581 -
Flags: superreview?(roc)
Attachment #196581 -
Flags: superreview+
Attachment #196581 -
Flags: review?(sfraser_bugs)
Attachment #196581 -
Flags: review+
Comment 25•19 years ago
|
||
*** Bug 309074 has been marked as a duplicate of this bug. ***
Comment 26•19 years ago
|
||
Patch works in Camino. Thanks, bz!
Assignee | ||
Comment 27•19 years ago
|
||
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 28•19 years ago
|
||
Comment on attachment 196581 [details] [diff] [review] This makes TestGtkEmbed happy, at least... We should take this on the 1.8 branch... Only affects embedding clients, and is pretty safe.
Attachment #196581 -
Flags: approval1.8b5?
Updated•19 years ago
|
Flags: blocking1.8b5- → blocking1.8b5+
Comment 29•19 years ago
|
||
Comment on attachment 196581 [details] [diff] [review] This makes TestGtkEmbed happy, at least... Yup. /be
Attachment #196581 -
Flags: approval1.8b5? → approval1.8b5+
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•