Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 15040: Any mouse click selects a drop down list item, when it shouldn't... (Closed)

Created:
12 years ago by Mohamed Mansour (USE mhm)
Modified:
9 years, 7 months ago
Reviewers:
tony, Matt Perry, ojan
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Any mouse click selects a drop down list item, when it shouldn't BUG=5634 (http://crbug.com/5634) TEST=Tested both mouse clicks to check which one will select the item.

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M webkit/port/platform/chromium/PopupMenuChromium.cpp View 1 2 chunks +8 lines, -0 lines 2 comments Download

Messages

Total messages: 28 (0 generated)
Mohamed Mansour (USE mhm)
12 years ago (2008-12-18 17:41:12 UTC) #1
Mohamed Mansour (USE mhm)
updated reviewers
12 years ago (2008-12-18 17:42:22 UTC) #2
Peter Kasting
(added one more reviewer that might know this stuff) Reviewers: I haven't tested the patch, ...
12 years ago (2008-12-18 17:52:32 UTC) #3
Mohamed Mansour (USE mhm)
> Dunno if this is the right place to fix or not. The method that ...
12 years ago (2008-12-18 18:06:39 UTC) #4
ojan
I'm not too familiar with this code, but this seems fine to me. Ideally we ...
12 years ago (2008-12-18 18:15:39 UTC) #5
Matt Perry
http://codereview.chromium.org/15040/diff/1/2 File webkit/port/platform/chromium/PopupMenuChromium.cpp (right): http://codereview.chromium.org/15040/diff/1/2#newcode550 Line 550: if (event.button() != LeftButton) What happens if you ...
12 years ago (2008-12-18 18:58:19 UTC) #6
Mohamed Mansour (USE mhm)
If I added many elements in the drop down, the scrollbar cannot be right clicked. ...
12 years ago (2008-12-18 22:08:25 UTC) #7
Matt Perry
http://codereview.chromium.org/15040/diff/206/6 File webkit/port/platform/chromium/PopupMenuChromium.cpp (right): http://codereview.chromium.org/15040/diff/206/6#newcode515 Line 515: if (event.button() != LeftButton) Since this is before ...
12 years ago (2008-12-18 22:34:35 UTC) #8
Evan Stade
http://codereview.chromium.org/15040/diff/206/6 File webkit/port/platform/chromium/PopupMenuChromium.cpp (right): http://codereview.chromium.org/15040/diff/206/6#newcode515 Line 515: if (event.button() != LeftButton) On 2008/12/18 22:34:35, Matt ...
12 years ago (2008-12-19 00:19:56 UTC) #9
Mohamed Mansour (USE mhm)
Alright, I am really lost what is needed now? Do we want to allow right ...
12 years ago (2008-12-19 01:48:21 UTC) #10
Matt Perry
Try the following with your latest patch: 1. open a select dropdown 2. right click ...
12 years ago (2008-12-19 01:51:28 UTC) #11
Mohamed Mansour (USE mhm)
Yes, the dropdown dismisses once I right clicked outside. I tested the following: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2
12 years ago (2008-12-19 02:09:35 UTC) #12
Matt Perry
On 2008/12/19 02:09:35, Mohamed Mansour wrote: > Yes, the dropdown dismisses once I right clicked ...
12 years ago (2008-12-19 02:11:50 UTC) #13
Mohamed Mansour (USE mhm)
handleMouseReleaseEvent and handleMouseDownEvent always returns true for isPointInBounds(event.pos()), BUT handleMouseMoveEvent captures it, so if I ...
12 years ago (2008-12-19 02:49:15 UTC) #14
Evan Stade
On 2008/12/19 02:11:50, Matt Perry wrote: > On 2008/12/19 02:09:35, Mohamed Mansour wrote: > > ...
12 years ago (2008-12-19 03:01:28 UTC) #15
Matt Perry
On 2008/12/19 02:49:15, Mohamed Mansour wrote: > handleMouseReleaseEvent and handleMouseDownEvent always returns true for > ...
12 years ago (2008-12-19 18:55:58 UTC) #16
Mohamed Mansour (USE mhm)
No worries, I will do that check tonight, I had to redownload the whole source ...
12 years ago (2008-12-19 21:21:53 UTC) #17
Evan Stade
before anyone commits this, make sure you've tested it on all 3 platforms.
12 years ago (2008-12-19 23:47:46 UTC) #18
Mohamed Mansour (USE mhm)
On 2008/12/19 18:55:58, Matt Perry wrote: > Ah. What about this: > 1. Open select ...
12 years ago (2008-12-20 00:21:32 UTC) #19
Matt Perry
On 2008/12/20 00:21:32, Mohamed Mansour wrote: > On 2008/12/19 18:55:58, Matt Perry wrote: > > ...
12 years ago (2008-12-20 01:53:06 UTC) #20
Mohamed Mansour (USE mhm)
> OK, then it sounds like the if statements aren't needed. Your patch is fine ...
12 years ago (2008-12-20 02:00:01 UTC) #21
Mohamed Mansour (USE mhm)
> We could just keep them, not much processing power I guess :) BUT while ...
12 years ago (2008-12-22 05:15:59 UTC) #22
Evan Stade
No, I think that other platforms besides windows which cannot depend on the WM_ACTIVATE message ...
12 years ago (2008-12-23 04:01:57 UTC) #23
Mohamed Mansour (USE mhm)
On 2008/12/23 04:01:57, Evan Stade wrote: > As a general note, editing code that affects ...
12 years ago (2008-12-23 07:26:59 UTC) #24
Mohamed Mansour (USE mhm)
Could anyone test this patch on mac / linux so we could commit/close it?
11 years, 11 months ago (2009-01-07 04:29:58 UTC) #25
tony
On 2009/01/07 04:29:58, Mohamed Mansour wrote: > Could anyone test this patch on mac / ...
11 years, 11 months ago (2009-01-07 20:18:09 UTC) #26
Peter Kasting
What's the status on this?
11 years, 9 months ago (2009-03-27 18:53:12 UTC) #27
Mohamed Mansour (USE mhm)
11 years, 8 months ago (2009-04-27 23:39:27 UTC) #28
On 2009/03/27 18:53:12, pkasting wrote:
> What's the status on this?

This is no longer a fix in Chromium, it should be upstreamed to webkit since it
is part of WebCore/platform/Chromium

Powered by Google App Engine
This is Rietveld 408576698