Closed Bug 1284851 Opened 8 years ago Closed 8 years ago

Unable to scroll if the focus from the filename is lost while the tooltip is visible

Categories

(DevTools :: Netmonitor, defect, P1)

50 Branch
defect

Tracking

(firefox47 unaffected, firefox48 unaffected, firefox49 unaffected, firefox50 verified)

VERIFIED FIXED
Firefox 50
Iteration:
50.3 - Jul 18
Tracking Status
firefox47 --- unaffected
firefox48 --- unaffected
firefox49 --- unaffected
firefox50 --- verified

People

(Reporter: adalucinet, Assigned: jdescottes)

References

Details

(Keywords: regression, Whiteboard: [devtools-html])

Attachments

(2 files)

Attached video Screen recording
[Affected versions]:
- latest Nightly 50.0a1

[Affected platforms]:
- Windows 10 64-bit
- Mac OS X 10.11.1
- Ubuntu 16.04 64-bit

[Steps to reproduce]:
1. Launch Firefox
2. Open Network Monitor.
3. Navigate to any page (E.g.: http://imgur.com/)
4. In the Network request list, hover over a thumbnail of any image.
5. Move mouse cursor at the bottom of the thumbnail (so that the focus from the filename is lost, but the tooltip is still displayed)
6. Scroll up/down.

[Expected result]: Scrolling up/down is working accordingly.

[Actual result]: Unable to scroll.

[Regression range]:
- Last good revision: ddb6b30149221f00eb5dd180530e9033093d4c2b
- First bad revision: 53f5b5c289fba6ad82c675578cf1c548ae37f0c1
- Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=ddb6b30149221f00eb5dd180530e9033093d4c2b&tochange=53f5b5c289fba6ad82c675578cf1c548ae37f0c1 
- I guess this was regressed by bug 1277264

[Additional notes]:
- Screen recording attached.
Whiteboard: [devtools-html] [triage]
No longer blocks: devtools-html-1
QA Whiteboard: [qe-dthtml]
Whiteboard: [devtools-html] [triage] → [devtools-html][triage]
Needs to block the Track #1 Meta for tracking team work.
Flags: qe-verify+
Priority: -- → P3
QA Contact: alexandra.lucinet
Whiteboard: [devtools-html][triage] → [reserve-html]
Took me a while to understand what the actual regression was about, so I'll add some details here in case it helps the review.

The tooltip arrow is a ::before element wrapped in a container. Pointer events used to be enabled on the whole container, which means that the mouse pointer could be visually outside of the arrow while still being on the arrow container (as we can see in the screen recording).

This patch simply moves the "pointer-events: all" rule to the ::before element (the actual arrow) instead of the arrow container. This restores the same behavior as before the HTMLTooltip migration. Of course if the pointer is really on the arrow or on the tooltip, the scroll will not occur, but that's the expected behavior.
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Comment on attachment 8768528 [details]
Bug 1284851 - fix HTMLTooltip capturing events on invisible arrow container;

Just tested using the XUL panel wrapper and it looks like scroll events are swallowed much more often now. Will take a look before submitting for review.
Attachment #8768528 - Flags: review?(bgrinstead)
Iteration: --- → 50.3 - Jul 18
Priority: P3 → P1
Whiteboard: [reserve-html] → [devtools-html]
I have decided to propose to switch the xulWrapper off by default (Bug 1285189). I will open dedicated Bugs to resolve the scroll issue linked to the XUL wrapper.

This way we can move forward and discuss the fix for the initial issue here.
Depends on: 1285189
Attachment #8768528 - Flags: review?(bgrinstead)
Attachment #8768528 - Flags: review?(bgrinstead) → review+
Comment on attachment 8768528 [details]
Bug 1284851 - fix HTMLTooltip capturing events on invisible arrow container;

https://reviewboard.mozilla.org/r/62722/#review59750
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/8be08b36d5d8
fix HTMLTooltip capturing events on invisible arrow container;r=bgrins
Out of curiosity, why wasn't this autolanded using MozReview?
Flags: needinfo?(bgrinstead)
(In reply to Gregory Szorc [:gps] from comment #9)
> Out of curiosity, why wasn't this autolanded using MozReview?

Mostly because I'm used to letting the patch author decide when to push / mark for checkin.  Also didn't see the button in the UI, although now I do.
Flags: needinfo?(bgrinstead)
https://hg.mozilla.org/mozilla-central/rev/8be08b36d5d8
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Verified fixed using latest Nightly 50.0a1, under Windows 10 64-bit, Ubuntu 16.04 64-bit and Mac OS X 10.11.1.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: