RESOLVED FIXED 78014
[chromium] Pepper Plugins don't receive mouse movement information in non-mouse-lock mode.
https://bugs.webkit.org/show_bug.cgi?id=78014
Summary [chromium] Pepper Plugins don't receive mouse movement information in non-mou...
yzshen
Reported 2012-02-07 11:54:59 PST
WebMouseEventBuilder doesn't pass along mouse movement information properly.
Attachments
Patch (1.58 KB, patch)
2012-02-07 13:33 PST, yzshen
no flags
Patch (1.95 KB, patch)
2012-02-13 14:53 PST, yzshen
no flags
yzshen
Comment 1 2012-02-07 13:33:08 PST
Vincent Scheib
Comment 2 2012-02-07 14:03:39 PST
LGTM, Though I'm not a reviewer.
Tony Chang
Comment 3 2012-02-07 14:13:36 PST
Is it possible to write a test for this? Maybe we have one in chromium?
yzshen
Comment 4 2012-02-07 14:20:39 PST
(In reply to comment #3) > Is it possible to write a test for this? Maybe we have one in chromium? For now, we have a manual test at the chromium side. (I agree that automatic tests are better. :))
Tony Chang
Comment 5 2012-02-07 15:07:40 PST
(In reply to comment #4) > (In reply to comment #3) > > Is it possible to write a test for this? Maybe we have one in chromium? > > For now, we have a manual test at the chromium side. > (I agree that automatic tests are better. :)) Is it possible to write a layout test for this?
yzshen
Comment 6 2012-02-07 15:09:52 PST
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > Is it possible to write a test for this? Maybe we have one in chromium? > > > > For now, we have a manual test at the chromium side. > > (I agree that automatic tests are better. :)) > > Is it possible to write a layout test for this? I will look into it. Thanks!
Eric Seidel (no email)
Comment 7 2012-02-07 15:48:27 PST
Comment on attachment 125916 [details] Patch How can we test this?
Eric Seidel (no email)
Comment 8 2012-02-07 15:49:20 PST
Comment on attachment 125916 [details] Patch Ah, I see now that test investigation is underway. Marking r- to remove from the queue. Feel free to remark r? if you find testing impossible/impractical (ideally you'd update the changelog to say such).
yzshen
Comment 9 2012-02-13 14:28:17 PST
Hi, Tony and Eric. I took a look and think that it is probably not easy/useful to add a test for this change: - there isn't any test for WebMouseEventBuilder right now; moreover, the movement information added is only used by pepper, and there isn't any test for pepper at the WebKit side. (AFAIK, WebKit doesn't know anything about pepper.) - this change is trivial: it copies two newly-added data fields from MouseEvent to WebMouseEventBuilder during conversion. Please let me know if you think it is okay to commit without a test. (And I will be happy to make changes if you know how to add a test.)
Tony Chang
Comment 10 2012-02-13 14:33:23 PST
(In reply to comment #9) > Hi, Tony and Eric. > > I took a look and think that it is probably not easy/useful to add a test for this change: > - there isn't any test for WebMouseEventBuilder right now; moreover, the movement information added is only used by pepper, and there isn't any test for pepper at the WebKit side. (AFAIK, WebKit doesn't know anything about pepper.) > - this change is trivial: it copies two newly-added data fields from MouseEvent to WebMouseEventBuilder during conversion. > > Please let me know if you think it is okay to commit without a test. (And I will be happy to make changes if you know how to add a test.) I think it's fine to land the change without a test. Thanks for looking into why it doesn't make sense. Please put the reason for no layout test in the ChangeLog.
yzshen
Comment 11 2012-02-13 14:53:12 PST
yzshen
Comment 12 2012-02-13 14:54:36 PST
Thanks, Tony! Uploaded a patch with revised ChangeLog.
Tony Chang
Comment 13 2012-02-13 15:15:24 PST
BTW, it doesn't really matter that the change is trivial. One reason to have layout tests is to verify that there are no regressions in the future and even trivial parts of the code base can regress (e.g., when refactoring).
WebKit Review Bot
Comment 14 2012-02-14 00:55:51 PST
Comment on attachment 126843 [details] Patch Clearing flags on attachment: 126843 Committed r107684: <http://trac.webkit.org/changeset/107684>
WebKit Review Bot
Comment 15 2012-02-14 00:55:55 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.