Closed
Bug 1194027
Opened 10 years ago
Closed 9 years ago
[e10s] DoubleClicking a select doesn't collapse when clicking on the dropmarker
Categories
(Core :: Layout: Form Controls, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla51
People
(Reporter: arni2033, Assigned: enndeakin)
References
(Blocks 1 open bug, )
Details
(Whiteboard: e10st?)
Attachments
(3 files)
461.07 KB,
video/webm
|
Details | |
1.56 KB,
patch
|
enndeakin
:
feedback-
|
Details | Diff | Splinter Review |
10.33 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
STR: (Win7, Nightly 43.0a1 (2015-08-12))
1. Open https://bug1186972.bmoattachments.org/attachment.cgi?id=8638018 (attachment on bug 1186972)
OR page data:text/html,<select><option>First<option>Second
2. DoubleClick on dropmarker
Result: The drop-down list hasn't collapsed
Expectations: It should've collapsed
// I have mentioned this in comments bug 1186972 comment 8, bug 1186972 comment 10
Comment 1•10 years ago
|
||
A double click is just the same as clicking it twice. It will open, then close or close, then open depending on starting state. This is how it works on Release. And Nightly e10s performs exactly the same.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Please watch the video and tell what OS have you used for the testing
Flags: needinfo?(twalker)
Comment 3•10 years ago
|
||
Ah, my apologies. So the start state is closed, then in the end it doesn't close for you. I am on Mac OSX. In the video, are you doing a third click away from the select item? (making it close)
Status: RESOLVED → REOPENED
Flags: needinfo?(twalker)
OS: Unspecified → Windows
Hardware: Unspecified → All
Resolution: INVALID → ---
(In reply to [:tracy] Tracy Walker - QA Mentor from comment #3)
> In the video, are you doing a third click away from the select item? (making it close)
Yes, on the video I wait a bit, then click on the free area to show the issue again
Updated•10 years ago
|
Status: REOPENED → NEW
tracking-e10s:
--- → ?
![]() |
||
Updated•10 years ago
|
Blocks: e10s-select
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID 20160207004019
Tested on Windows 7 x64 with the Aurora 46.0a2 build. With e10s enabled, I can sometimes reproduce the problem. With e10s disabled, the issue does not reproduce.
![]() |
||
Updated•9 years ago
|
Priority: -- → P1
![]() |
||
Updated•9 years ago
|
Whiteboard: e10st?
Assignee | ||
Comment 6•9 years ago
|
||
The issue here is in the NS_THEME_MENULIST_BUTTON block of nsNativeThemeWin::GetThemePartAndState
IsDroppedDown() is called but will never return true in e10s since we don't set the flag used by it.
The code here inside the IsVistaOrLater() block is a little odd in that it doesn't handle the non-open case and just falls through. In non-e10s you can see odd behaviour if you hold the mouse on the drop marker, then press escape, then move the mouse slightly -- the active state only appears then and no other time. So I don't think this code is correct as is anyway, but we probably will still need an IsDroppedDown method that returns the correct state.
Assignee | ||
Comment 7•9 years ago
|
||
Oops, that comment was meant for bug 1253979.
The comment for this bug is:
The non-e10s is case toggles the list open state within nsListControlFrame::MouseDown, however e10s only opens it. So might be able to fix this by using a message which toggles the state rather than only opens it.
Comment 8•9 years ago
|
||
This is a Windows-only bug. On Mac and Linux, the 2nd click in a double click is handled like a single click and short-circuit to nsXULPopupManager::Rollup() from nsWindow::CheckForRollup() (Linux) and [ChildView maybeRollup] (Mac). I guess we can do likewise in nsWIndow::DealWithPopups().
Comment 9•9 years ago
|
||
Comment 10•9 years ago
|
||
Attachment #8772361 -
Flags: feedback?(enndeakin)
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8772361 [details] [diff] [review]
bug_1194027.patch
This will cause all popups to rollup on double-click which we don't want to do in general.
Attachment #8772361 -
Flags: feedback?(enndeakin) → feedback-
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Assignee | ||
Comment 12•9 years ago
|
||
You'll need 1159301 if you want to apply the test part of the patch.
Attachment #8774826 -
Flags: review?(mrbkap)
Updated•9 years ago
|
Attachment #8774826 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 13•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/69b3a93aeba57617eaa4c579bea5c78f343c7d43
Bug 1194027, add a flag to select elements to indicate if the parent process has the popup open, r=mrbkap
Comment 14•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 10 years ago → 9 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Assignee | ||
Comment 15•9 years ago
|
||
I didn't include the test for this patch as it was failing intermittently on Windows.
You need to log in
before you can comment on or make changes to this bug.
Description
•