Bug 1873833 - Make tooltips work on anonymous content / UA widgets. r=smaug,Gijs
We also simplify the tooltip text provider loop, and make it work better now that e.g. the anonymous button in file inputs can be targeted. Differential Revision: https://phabricator.services.mozilla.com/D203759
This commit is contained in:
@@ -1177,7 +1177,7 @@ nsresult ChromeTooltipListener::MouseMove(Event* aMouseEvent) {
|
||||
}
|
||||
|
||||
if (!mShowingTooltip) {
|
||||
if (nsCOMPtr<EventTarget> eventTarget = aMouseEvent->GetComposedTarget()) {
|
||||
if (nsCOMPtr<EventTarget> eventTarget = aMouseEvent->GetOriginalTarget()) {
|
||||
mPossibleTooltipNode = nsINode::FromEventTarget(eventTarget);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user