Open
Bug 1316597
Opened 9 years ago
Updated 2 years ago
Some select boxes flicker and do not remain open on click
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
REOPENED
mozilla53
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | unaffected |
| firefox50 | --- | unaffected |
| firefox51 | --- | unaffected |
| firefox52 | --- | unaffected |
| firefox53 | --- | fixed |
People
(Reporter: tracy, Unassigned)
References
(
URL
)
Details
(Keywords: regression, Whiteboard: tpi:+)
Attachments
(2 files, 1 obsolete file)
With latest Nightly 52.0a1, 20161110030211 on macOS 10.12
1) In this bug click on the select box for "Product"
Tested results: the select list flickers a few times. Then the select box returns to not selected state.
Expected results: the list doesn't flicker and the list remains visible for perusal. (Click on the select box for "Component" to observe correct behavior)
Neil: jimm said you have been doing some work recently on select. This appears to be a very recent regression. I began seeing it in yesterdays build, but haven't confirmed that is the actual first regressed build.
| Reporter | ||
Comment 1•9 years ago
|
||
wtf, now Product select works? bizarre, it fails in other bug reports. anyway, reproduce by clicking either of the select boxes for "Platform" Seems like it is more likely to happen if the select box has a smaller list. Less likely to happen of the list is long.
| Reporter | ||
Comment 2•9 years ago
|
||
moments later "Product" select buggy. Something racy is going on here.
| Reporter | ||
Updated•9 years ago
|
Priority: -- → P2
Whiteboard: tpi:+
Updated•9 years ago
|
status-firefox49:
--- → unaffected
status-firefox50:
--- → unaffected
status-firefox51:
--- → unaffected
Comment 3•9 years ago
|
||
I wonder of this is the same problem as bug 1316991?
Comment 5•9 years ago
|
||
[Tracking Requested - why for this release]: Regression in common user-facing UI.
Copying over the relevant info from the other bug: this is a regression from bug 430745.
Also copying over testcase and moving to the component where the regressing bug lived... And copying the tracking nomination.
This is really a case where dupping the other way might have made more sense. ;)
Blocks: 430745
URL: data:text/html,<select><option>click%...
tracking-firefox52:
--- → ?
Component: Widget: Cocoa → Layout: Form Controls
Flags: needinfo?(jaws)
Flags: needinfo?(beachjar)
Comment 6•9 years ago
|
||
We should back out bug 430745 until we can get this issue figured out. This is a pretty clear Nightly blocker to me.
Flags: needinfo?(jaws)
Comment 7•9 years ago
|
||
I backed out bug 430745 so this issue will no longer affect Firefox 52.
However, this bug is still reproducible with the patch from https://hg.mozilla.org/mozilla-central/rev/d67c6dcba478
Neil, are you able to reproduce it? Do you see what could be going wrong?
tracking-firefox52:
? → ---
Flags: needinfo?(beachjar) → needinfo?(enndeakin)
Comment 8•9 years ago
|
||
I can see it sometimes. I don't see it for menulists though.
There's a check for this in nsMenuFrame that ignores a mouseup immediately after a menu is opened unless another mousedown or mousemove occurs. It's possible that this check isn't applying to this case.
Alternatively we could implement a more correct check that distinguishes between a click or a menubutton and a quick down+hold.
Flags: needinfo?(enndeakin)
Comment 9•9 years ago
|
||
Actually, a possible easy fix may be to just move the setting of gMenuJustOpenedOrClosed from OpenMenu to PopupOpened.
Comment 11•9 years ago
|
||
Jared, can you attach your patch here?
Assignee: nobody → beachjar
Status: NEW → ASSIGNED
| Comment hidden (mozreview-request) |
Comment 13•9 years ago
|
||
Comment on attachment 8812229 [details]
Bug 1316597 Prevent immediate opening and closing of select dropdowns when anchored on selection
Neil will be the better reviewer for this change.
Attachment #8812229 -
Flags: review?(jaws) → review?(enndeakin)
Comment 14•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8812229 [details]
Bug 1316597 Prevent immediate opening and closing of select dropdowns when anchored on selection
https://reviewboard.mozilla.org/r/94062/#review94896
Let's try it.
Attachment #8812229 -
Flags: review?(enndeakin) → review+
Comment 15•9 years ago
|
||
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c7c83bfdd97a
Prevent immediate opening and closing of select dropdowns when anchored on selection r=enndeakin+6102
Comment 16•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
| Reporter | ||
Comment 17•9 years ago
|
||
With the latest Nightly 53.0a1, 20161123030208, this isn't fixed. This bug occurs more randomly than before.
Sometimes select boxes flicker (like the animation for an item being selected) and do not remain open on first click. However, click again and the second attempt results in expected behavior; no flicker and open select list. If you have trouble reproducing, focus on one select box, like "Need more information from" select below. go back and forth between clicking on the default item, of the list, and clicking on the select box icon. soon enough, you'll see the unexpected buggy behavior.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 18•9 years ago
|
||
Neil, can you take a look at what could be going wrong here?
Flags: needinfo?(enndeakin)
Comment 19•9 years ago
|
||
I don't see any issue and have tried many different ways.
Flags: needinfo?(enndeakin)
Comment 20•9 years ago
|
||
(In reply to Tracy Walker [:tracy] from comment #17)
> With the latest Nightly 53.0a1, 20161123030208, this isn't fixed. This bug
> occurs more randomly than before.
>
> Sometimes select boxes flicker (like the animation for an item being
> selected) and do not remain open on first click. However, click again and
> the second attempt results in expected behavior; no flicker and open select
> list. If you have trouble reproducing, focus on one select box, like "Need
> more information from" select below. go back and forth between clicking on
> the default item, of the list, and clicking on the select box icon. soon
> enough, you'll see the unexpected buggy behavior.
I'm having no luck reproducing this either. Hey tracy, would you be able to post a screenrecording of you reproducing this?
Flags: needinfo?(twalker)
| Reporter | ||
Comment 21•9 years ago
|
||
Happened a bit more often than usual during this recording. It is rather random whether the flicker happens or not.
Flags: needinfo?(twalker)
| Reporter | ||
Comment 22•9 years ago
|
||
I cannot reproduce this using the trackpad. Reproducible with a usb mouse.
Comment 23•9 years ago
|
||
| STR | ||
I _think_ I've got a reproducible test case:
This is both reproducible with a mouse and a trackpad, but I definitely find it easier with a mouse.
1) On OS X, visit https://bug1266575.bmoattachments.org/attachment.cgi?id=8753475
2) Make sure "Volvo" is selected, and that the menupopup overlaps the <select> when it is open.
3) Make sure the <select> popup is closed.
4) This part is tricky and might take a few times: Click on the <select> dropdown, and move the mouse within the rect of the first menuitem "Volvo" _before_ the menupopup appears (there's a very small window of time to do this - maybe easier on slower machines).
ER:
The popup should display.
AR:
The mousemove seems to be interpreted as a selection on the menuitem, and so the item is selected and the popup closes.
Comment 24•9 years ago
|
||
Hey Enn - is this at all related to the work you're doing in bug 1311279? Part 3 in particular appears to cancel capture on mousemove... do you think that will fix this bug?
Flags: needinfo?(enndeakin)
Comment 25•9 years ago
|
||
I can't reproduce this at all so I don't know. Note that moving the mouse after mousedown should select the item and close the menulist.
Flags: needinfo?(enndeakin)
| Reporter | ||
Comment 26•9 years ago
|
||
(In reply to Neil Deakin (not available until Aug 9) from comment #25)
> I can't reproduce this at all so I don't know. Note that moving the mouse
> after mousedown should select the item and close the menulist.
Yes. If I hold my mouse extremely steady with one hand and perform the click with the other hand, the mouse doesn't move and this bug isn't reproducible. It seems there is no room for mouse "slip" here. The mouse I use and my hand aren't always perfectly steady on mouse click, thus a pixel or so of movement often happens during a rapid click.
Is there a way to allow a little bit of mouse pointer "slip?" Say a couple pixels?
Comment 27•7 years ago
|
||
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Comment 28•4 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: beachjar → nobody
Updated•3 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Attachment #9385343 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•