<?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>121952</bug_id>
          
          <creation_ts>2013-09-26 06:06:41 -0700</creation_ts>
          <short_desc>[GTK][WK2] WTR has problems with mouse events</short_desc>
          <delta_ts>2013-09-26 10:17:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>120401</dup_id>
          
          <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 name="Manuel Rego Casasnovas">rego</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>jfernandez</cc>
    
    <cc>mrobinson</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>933460</commentid>
    <comment_count>0</comment_count>
      <attachid>212697</attachid>
    <who name="Manuel Rego Casasnovas">rego</who>
    <bug_when>2013-09-26 06:06:41 -0700</bug_when>
    <thetext>Created attachment 212697
Example test case to reproduce the issue

If you use the attached XML as a layout test, and use the very same file as expected (creating a ref-test). You&apos;ll see that the test doesn&apos;t pass in WK2 (while it pass without problems in WK1).

If you add the following lines at the beginning of select(fromId, toId):
    eventSender.mouseMoveTo(0, 0);
    eventSender.mouseDown();
    eventSender.mouseUp();

Then the test passes properly both in WK1 and WK2.

I guess it could be related with the implementation of mouse events in WTR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>933571</commentid>
    <comment_count>1</comment_count>
    <who name="Manuel Rego Casasnovas">rego</who>
    <bug_when>2013-09-26 10:17:37 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 120401 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>212697</attachid>
            <date>2013-09-26 06:06:41 -0700</date>
            <delta_ts>2013-09-26 06:06:41 -0700</delta_ts>
            <desc>Example test case to reproduce the issue</desc>
            <filename>selection-test.html</filename>
            <type>text/html</type>
            <size>1162</size>
            <attacher name="Manuel Rego Casasnovas">rego</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogICAgPHNjcmlwdD4KICAgICAgICBmdW5jdGlvbiBzZWxlY3QoZnJvbUlk
LCB0b0lkKSB7CiAgICAgICAgICAgIGlmICh3aW5kb3cudGVzdFJ1bm5lcikgewogICAgICAgICAg
ICAgICAgdmFyIGZyb21SZWN0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoZnJvbUlkKS5nZXRC
b3VuZGluZ0NsaWVudFJlY3QoKTsKICAgICAgICAgICAgICAgIGV2ZW50U2VuZGVyLm1vdXNlTW92
ZVRvKGZyb21SZWN0LmxlZnQsIGZyb21SZWN0LnRvcCArIChmcm9tUmVjdC5oZWlnaHQgLyAyKSk7
CiAgICAgICAgICAgICAgICBldmVudFNlbmRlci5tb3VzZURvd24oKTsKCiAgICAgICAgICAgICAg
ICB2YXIgdG9SZWN0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQodG9JZCkuZ2V0Qm91bmRpbmdD
bGllbnRSZWN0KCk7CiAgICAgICAgICAgICAgICBldmVudFNlbmRlci5tb3VzZU1vdmVUbyh0b1Jl
Y3QucmlnaHQsIHRvUmVjdC50b3AgKyAodG9SZ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