Bug 27920

Summary: Right click on timeline of media controls panel cause seek
Product: WebKit Reporter: Hin-Chung Lam <hclam>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ajwong, eric.carlson, levin, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
patch
eric: review-
patch
none
patch eric: review+

Description Hin-Chung Lam 2009-08-01 02:04:12 PDT
Steps to reproduce the bug:
1. Open a page with <video controls src="something"></video>
2. Play the movie
3. Right click on the time bar

Expected behavior:
Nothing should happen

Actual behavior:
Seeked to the current playback position.


So the result is that if you right click many many times, you will seek to the current playback position over and over again.
Comment 1 Hin-Chung Lam 2009-08-01 02:50:58 PDT
Created attachment 33934 [details]
patch
Comment 2 Eric Seidel (no email) 2009-08-06 18:03:14 PDT
Comment on attachment 33934 [details]
patch

Looks fine.

Your if should use == LefButton (if that exists), or a comment to explain that 0 is the left button.

Style viloation:
1                 if (window.eventSender)
 12                 {

If you were a committer I would just r+ and you could fix this when landing.  Since I don't think you are, please re-post with the two above fixes
Comment 3 Eric Seidel (no email) 2009-08-06 18:03:14 PDT
Comment on attachment 33934 [details]
patch

Looks fine.

Your if should use == LefButton (if that exists), or a comment to explain that 0 is the left button.

Style viloation:
1                 if (window.eventSender)
 12                 {

If you were a committer I would just r+ and you could fix this when landing.  Since I don't think you are, please re-post with the two above fixes
Comment 4 Hin-Chung Lam 2009-08-07 01:10:34 PDT
Created attachment 34256 [details]
patch
Comment 5 Hin-Chung Lam 2009-08-07 01:13:09 PDT
Created attachment 34257 [details]
patch
Comment 6 Eric Seidel (no email) 2009-08-07 08:51:41 PDT
Comment on attachment 34257 [details]
patch

LGTM!  Thanks!
Comment 7 Hin-Chung Lam 2009-08-07 11:13:27 PDT
Thanks for the review!
Comment 8 Albert J. Wong 2009-08-07 14:48:48 PDT
Committed as http://trac.webkit.org/changeset/46915.
Comment 9 Simon Fraser (smfr) 2009-08-11 21:33:58 PDT
This caused a bad regression in mouse handling (bug 28211). Please address as soon as possible, or revert this change.
Comment 10 Hin-Chung Lam 2009-08-11 22:14:04 PDT
I'm looking into the regression now.