<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>78014</bug_id>
          
          <creation_ts>2012-02-07 11:54:59 -0800</creation_ts>
          <short_desc>[chromium] Pepper Plugins don&apos;t receive mouse movement information in non-mouse-lock mode.</short_desc>
          <delta_ts>2012-02-14 00:55:55 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>yzshen</reporter>
          <assigned_to>yzshen</assigned_to>
          <cc>scheib</cc>
    
    <cc>tony</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>551201</commentid>
    <comment_count>0</comment_count>
    <who name="">yzshen</who>
    <bug_when>2012-02-07 11:54:59 -0800</bug_when>
    <thetext>WebMouseEventBuilder doesn&apos;t pass along mouse movement information properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551319</commentid>
    <comment_count>1</comment_count>
      <attachid>125916</attachid>
    <who name="">yzshen</who>
    <bug_when>2012-02-07 13:33:08 -0800</bug_when>
    <thetext>Created attachment 125916
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551357</commentid>
    <comment_count>2</comment_count>
    <who name="Vincent Scheib">scheib</who>
    <bug_when>2012-02-07 14:03:39 -0800</bug_when>
    <thetext>LGTM, Though I&apos;m not a reviewer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551367</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-02-07 14:13:36 -0800</bug_when>
    <thetext>Is it possible to write a test for this?  Maybe we have one in chromium?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551390</commentid>
    <comment_count>4</comment_count>
    <who name="">yzshen</who>
    <bug_when>2012-02-07 14:20:39 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; 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. :))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551437</commentid>
    <comment_count>5</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-02-07 15:07:40 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Is it possible to write a test for this?  Maybe we have one in chromium?
&gt; 
&gt; For now, we have a manual test at the chromium side.
&gt; (I agree that automatic tests are better. :))

Is it possible to write a layout test for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551440</commentid>
    <comment_count>6</comment_count>
    <who name="">yzshen</who>
    <bug_when>2012-02-07 15:09:52 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; Is it possible to write a test for this?  Maybe we have one in chromium?
&gt; &gt; 
&gt; &gt; For now, we have a manual test at the chromium side.
&gt; &gt; (I agree that automatic tests are better. :))
&gt; 
&gt; Is it possible to write a layout test for this?

I will look into it. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551493</commentid>
    <comment_count>7</comment_count>
      <attachid>125916</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-07 15:48:27 -0800</bug_when>
    <thetext>Comment on attachment 125916
Patch

How can we test this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551495</commentid>
    <comment_count>8</comment_count>
      <attachid>125916</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-07 15:49:20 -0800</bug_when>
    <thetext>Comment on attachment 125916
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&apos;d update the changelog to say such).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>555606</commentid>
    <comment_count>9</comment_count>
    <who name="">yzshen</who>
    <bug_when>2012-02-13 14:28:17 -0800</bug_when>
    <thetext>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&apos;t any test for WebMouseEventBuilder right now; moreover, the movement information added is only used by pepper, and there isn&apos;t any test for pepper at the WebKit side. (AFAIK, WebKit doesn&apos;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.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>555609</commentid>
    <comment_count>10</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-02-13 14:33:23 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; Hi, Tony and Eric.
&gt; 
&gt; I took a look and think that it is probably not easy/useful to add a test for this change:
&gt; - there isn&apos;t any test for WebMouseEventBuilder right now; moreover, the movement information added is only used by pepper, and there isn&apos;t any test for pepper at the WebKit side. (AFAIK, WebKit doesn&apos;t know anything about pepper.)
&gt; - this change is trivial: it copies two newly-added data fields from MouseEvent to WebMouseEventBuilder during conversion.
&gt; 
&gt; 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&apos;s fine to land the change without a test.  Thanks for looking into why it doesn&apos;t make sense.  Please put the reason for no layout test in the ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>555641</commentid>
    <comment_count>11</comment_count>
      <attachid>126843</attachid>
    <who name="">yzshen</who>
    <bug_when>2012-02-13 14:53:12 -0800</bug_when>
    <thetext>Created attachment 126843
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>555644</commentid>
    <comment_count>12</comment_count>
    <who name="">yzshen</who>
    <bug_when>2012-02-13 14:54:36 -0800</bug_when>
    <thetext>Thanks, Tony!

Uploaded a patch with revised ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>555659</commentid>
    <comment_count>13</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-02-13 15:15:24 -0800</bug_when>
    <thetext>BTW, it doesn&apos;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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556069</commentid>
    <comment_count>14</comment_count>
      <attachid>126843</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-14 00:55:51 -0800</bug_when>
    <thetext>Comment on attachment 126843
Patch

Clearing flags on attachment: 126843

Committed r107684: &lt;http://trac.webkit.org/changeset/107684&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556070</commentid>
    <comment_count>15</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-14 00:55:55 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125916</attachid>
            <date>2012-02-07 13:33:08 -0800</date>
            <delta_ts>2012-02-13 14:53:09 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-78014-20120207133308.patch</filename>
            <type>text/plain</type>
            <size>1620</size>
            <attacher>yzshen</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA2MjE1CmRpZmYgLS1naXQgYS9Tb3VyY2Uv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W5n
ZXIgc2Nyb2xsaW5nCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L2Nocm9taXVtL3NyYy9XZWJJ
bnB1dEV2ZW50Q29udmVyc2lvbi5jcHAgYi9Tb3VyY2UvV2ViS2l0L2Nocm9taXVtL3NyYy9XZWJJ
bnB1dEV2ZW50Q29udmVyc2lvbi5jcHAKaW5kZXggZGRkNDczNmFiMGU2NjVmYjU1NjcxZDVjNzE2
ZjVhZjU1ZjA5NjY5Ni4uYzk5M2Q1MDE3YzI3NTg1MDI0NjI0OWY0ZTdkNTY0YzBhNjFmODgzNCAx
MDA2NDQKLS0tIGEvU291cmNlL1dlYktpdC9jaHJvbWl1bS9zcmMvV2ViSW5wdXRFdmVudENvbnZl
cnNpb24uY3BwCisrKyBiL1NvdXJjZS9XZWJLaXQvY2hyb21pdW0vc3JjL1dlYklucHV0RXZlbnRD
b252ZXJzaW9uLmNwcApAQCAtMzg0LDYgKzM4NCwxMCBAQCBXZWJNb3VzZUV2ZW50QnVpbGRlcjo6
V2ViTW91c2VFdmVudEJ1aWxkZXIoY29uc3QgV2lkZ2V0KiB3aWRnZXQsIGNvbnN0IE1vdXNlRXZl
bgogICAgIHdpbmRvd1kgPSBwLnkoKTsKICAgICB4ID0gZXZlbnQuYWJzb2x1dGVMb2NhdGlvbigp
LngoKSAtIHdpZGdldC0+bG9jYXRpb24oKS54KCk7CiAgICAgeSA9IGV2ZW50LmFic29sdXRlTG9j
YXRpb24oKS55KCkgLSB3aWRnZXQtPmxvY2F0aW9uKCkueSgpOworI2lmIEVOQUJMRShQT0lOVEVS
X0xPQ0spCisgICAgbW92ZW1lbnRYID0gZXZlbnQud2Via2l0TW92ZW1lbnRYKCk7CisgICAgbW92
ZW1lbnRZID0gZXZlbnQud2Via2l0TW92ZW1lbnRZKCk7CisjZW5kaWYKICAgICBjbGlja0NvdW50
ID0gZXZlbnQuZGV0YWlsKCk7CiB9CiAK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>126843</attachid>
            <date>2012-02-13 14:53:12 -0800</date>
            <delta_ts>2012-02-14 00:55:51 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-78014-20120213145312.patch</filename>
            <type>text/plain</type>
            <size>1999</size>
            <attacher>yzshen</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA3Mzg2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L2No
cm9taXVtL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCmluZGV4
IDQ3OTM1YTBmYTA0MWNkZGM3NjRkMTJmYmFiN2UwNmEzMDg4NWNjMGUuLmUxN2NmYTExYjY5NTQ3
NmE0ZWZhMDYzNzg4ZGE3ODAxYjdmZmE5ZmEgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvY2hy
b21pdW0vQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCkBA
IC0xLDMgKzEsMjQgQEAKKzIwMTItMDItMTMgIFl1emh1IFNoZW4gIDx5enNoZW5AY2hyb21pdW0u
Y29tPgorCisgICAgICAgIFtjaHJvbWl1bV0gUGVwcGVyIHBsdWdpbnMgZG9uJ3QgcmVjZWl2ZSBt
b3VzZSBtb3ZlbWVudCBpbmZvcm1hdGlvbiBpbgorICAgICAgICBub24tbW91c2UtbG9jayBtb2Rl
LgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NzgwMTQK
KworICAgICAgICBUaGlzIGNoYW5nZSBtYWtlcyBXZWJNb3VzZUV2ZW50QnVpbGRlciBwYXNzIGFs
b25nIG1vdXNlIG1vdmVtZW50CisgICAgICAgIGluZm9ybWF0aW9uIHByb3Blcmx5LgorCisgICAg
ICAgIFRoZXJlIGlzbid0IHRlc3QgZm9yIHR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