<?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>100296</bug_id>
          
          <creation_ts>2012-10-24 15:23:42 -0700</creation_ts>
          <short_desc>[WK2][Qt] Enable hover and mouse events in flickable WebView</short_desc>
          <delta_ts>2012-10-30 10:08:20 -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>New Bugs</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 name="Sergio Villar Senin">svillar</reporter>
          <assigned_to name="Sergio Villar Senin">svillar</assigned_to>
          <cc>abecsi</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>hausmann</cc>
    
    <cc>kenneth</cc>
    
    <cc>lokesh.kumar.goel</cc>
    
    <cc>menard</cc>
    
    <cc>svillar</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>750115</commentid>
    <comment_count>0</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-10-24 15:23:42 -0700</bug_when>
    <thetext>[WK2][Qt] Enable hover and mouse events in flickable WebView</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750122</commentid>
    <comment_count>1</comment_count>
      <attachid>170488</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-10-24 15:29:04 -0700</bug_when>
    <thetext>Created attachment 170488
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750131</commentid>
    <comment_count>2</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-10-24 15:37:16 -0700</bug_when>
    <thetext>So this is basically a follow up of a discussion that started in bug 80542. It was mentioned that hybrid devices (mixing touch and pointing interfaces) like the ones that will be likely shipped with Windows 8 or devices with pointing controllers (similar to Wii) will likely use a flickable webview and would require mouse event handling.

Apart from that I talked to Kenneth on IRC and he told me that the idea of the WebKitQt maintainers is to move towards having all the functionality of the legacy webView to the flickable one. So this might be a step in the right direction.

I was not sure if I should include a patch to the MiniBrowser also, because right now it&apos;s generating touch events from mouse events and we might think about removing that. I guess it was done for testing purposes or the like, but don&apos;t know all the details as I&apos;m more familiar with the Gtk+ port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750610</commentid>
    <comment_count>3</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-10-25 03:20:00 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; So this is basically a follow up of a discussion that started in bug 80542. It was mentioned that hybrid devices (mixing touch and pointing interfaces) like the ones that will be likely shipped with Windows 8 or devices with pointing controllers (similar to Wii) will likely use a flickable webview and would require mouse event handling.

Since http://trac.webkit.org/changeset/124455 the code paths for mouse and touch are unified and mouse events were enabled for the flickable webview also.

&gt; 
&gt; Apart from that I talked to Kenneth on IRC and he told me that the idea of the WebKitQt maintainers is to move towards having all the functionality of the legacy webView to the flickable one. So this might be a step in the right direction.
&gt; 
&gt; I was not sure if I should include a patch to the MiniBrowser also, because right now it&apos;s generating touch events from mouse events and we might think about removing that. I guess it was done for testing purposes or the like, but don&apos;t know all the details as I&apos;m more familiar with the Gtk+ port.

MiniBrowser also does multi-touch mocking for mouse events when pressing the Ctrl key which is useful for testing pinch-zoom on a desktop without a touch device, thus it should remain as is for testing purposes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750612</commentid>
    <comment_count>4</comment_count>
      <attachid>170488</attachid>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-10-25 03:23:11 -0700</bug_when>
    <thetext>Comment on attachment 170488
Patch

Enabling hover events should be safe now, I think, so the patch looks OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750693</commentid>
    <comment_count>5</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-10-25 05:01:14 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; So this is basically a follow up of a discussion that started in bug 80542. It was mentioned that hybrid devices (mixing touch and pointing interfaces) like the ones that will be likely shipped with Windows 8 or devices with pointing controllers (similar to Wii) will likely use a flickable webview and would require mouse event handling.
&gt; 
&gt; Since http://trac.webkit.org/changeset/124455 the code paths for mouse and touch are unified and mouse events were enabled for the flickable webview also.
&gt; 

That said, having a device that has both mouse and touch capabilities might result in some unexpected behaviour, especially because the gesture recognition logic is not prepared for some possible corner cases with alternating input events.
This should be addressed later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>751286</commentid>
    <comment_count>6</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-10-25 15:35:39 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; So this is basically a follow up of a discussion that started in bug 80542. It was mentioned that hybrid devices (mixing touch and pointing interfaces) like the ones that will be likely shipped with Windows 8 or devices with pointing controllers (similar to Wii) will likely use a flickable webview and would require mouse event handling.
&gt; &gt; 
&gt; &gt; Since http://trac.webkit.org/changeset/124455 the code paths for mouse and touch are unified and mouse events were enabled for the flickable webview also.
&gt; &gt; 
&gt; 
&gt; That said, having a device that has both mouse and touch capabilities might result in some unexpected behaviour, especially because the gesture recognition logic is not prepared for some possible corner cases with alternating input events.
&gt; This should be addressed later.

That&apos;s true but might be it should be addressed in a separate bug. So anything to change in the current patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>754454</commentid>
    <comment_count>7</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-10-30 09:51:47 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; So this is basically a follow up of a discussion that started in bug 80542. It was mentioned that hybrid devices (mixing touch and pointing interfaces) like the ones that will be likely shipped with Windows 8 or devices with pointing controllers (similar to Wii) will likely use a flickable webview and would require mouse event handling.
&gt; &gt; &gt; 
&gt; &gt; &gt; Since http://trac.webkit.org/changeset/124455 the code paths for mouse and touch are unified and mouse events were enabled for the flickable webview also.
&gt; &gt; &gt; 
&gt; &gt; 
&gt; &gt; That said, having a device that has both mouse and touch capabilities might result in some unexpected behaviour, especially because the gesture recognition logic is not prepared for some possible corner cases with alternating input events.
&gt; &gt; This should be addressed later.
&gt; 
&gt; That&apos;s true but might be it should be addressed in a separate bug. So anything to change in the current patch?

The patch is fine.
Of course other issues we find in relation to mouse and touch at the same time should be addressed in separate bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>754468</commentid>
    <comment_count>8</comment_count>
      <attachid>170488</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-10-30 10:08:15 -0700</bug_when>
    <thetext>Comment on attachment 170488
Patch

Clearing flags on attachment: 170488

Committed r132919: &lt;http://trac.webkit.org/changeset/132919&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>754469</commentid>
    <comment_count>9</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-10-30 10:08:20 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>170488</attachid>
            <date>2012-10-24 15:29:04 -0700</date>
            <delta_ts>2012-10-30 10:08:13 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-100296-20121024152738.patch</filename>
            <type>text/plain</type>
            <size>2770</size>
            <attacher name="Sergio Villar Senin">svillar</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTMyMzYyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggODdmNzU1NGU0NzRjYzQ4
NDUyYjBkOGRkMjk5OWZhNTFmZWNhNjQ0MC4uNDYyMDg2ZDQwZGRkMjdjNjVhYTZhNTFhMDY5ODA0
NmYyMjIwYzI4YSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIxIEBACisyMDEyLTEwLTI0ICBTZXJn
aW8gVmlsbGFyIFNlbmluICA8c3ZpbGxhckBpZ2FsaWEuY29tPgorCisgICAgICAgIFtXSzJdW1F0
XSBFbmFibGUgaG92ZXIgYW5kIG1vdXNlIGV2ZW50cyBpbiBmbGlja2FibGUgV2ViVmlldworICAg
ICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTAwMjk2CisKKyAg
ICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgRmxpY2thYmxlIFdl
YlZpZXcgaXMgbm93IGFsbG93ZWQgdG8gaGFuZGxlIGJvdGggaG92ZXIgYW5kIG1vdXNlCisgICAg
ICAgIGV2ZW50cy4gRmxpY2thYmxlIHdhcyBpbml0aWFsbHkgbWVhbnQgdG8gYmUgdGhlIG1vYmls
ZSBpbnRlcmZhY2UgYW5kCisgICAgICAgIHdhcyBvbmx5IGhhbmRsaW5nIHRvdWNoIGV2ZW50cywg
YnV0IG5vdyB0aG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