<?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>35834</bug_id>
          
          <creation_ts>2010-03-06 14:44:05 -0800</creation_ts>
          <short_desc>[Qt] QGraphicsWebView: Arrow keys scroll the graphics-view instead of the web-page</short_desc>
          <delta_ts>2010-04-27 14:37:32 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.youtube.com/xl</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P1</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Noam Rosenthal">noam</reporter>
          <assigned_to name="QtWebKit Unassigned">webkit-qt-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>jturcotte</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>196940</commentid>
    <comment_count>0</comment_count>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2010-03-06 14:44:05 -0800</bug_when>
    <thetext>To reproduce:
open the above website:
- QtLauncher -graphicsbased -url http://www.youtube.com/xl
- Resize the QtLauncher window to be a little smaller
- Press the down key several times

While the keys should affect the list selection, they actually move around the whole QGraphicsWebView.
This does not happen with QWebView (no -graphicsbased), hence the assumption that the bug is in the &quot;Webkit Qt&quot; module

I tested on Ubuntu 9.04, but I believe the problem exists on all Qt platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>203015</commentid>
    <comment_count>1</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2010-03-23 06:15:27 -0700</bug_when>
    <thetext>Reproduced on Windows as well (though its a bit harder than on linux).

I could also notice that it happens more often if you play with the tab switching.

QtLauncher only have the address bar and the web view that takes the focus, however, sometimes, the focus gets taken by another widget between the two (so it sometimes takes 2 tabs to switch the focus from the address to the web view). The bug happens when you press the arrow keys while focused on this intermediate widget.

If you don&apos;t resize the window a bit, you still get the focus steal problem, but you won&apos;t see the &quot;move around the whole QGraphicsWebView&quot; problem.

According to Noam this bug is an annoyance for many embedded developers.
Setting to P1-minor since I think that this is worth fixing it for the next release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217669</commentid>
    <comment_count>2</comment_count>
      <attachid>54412</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-04-27 06:15:50 -0700</bug_when>
    <thetext>Created attachment 54412
Patch

QGraphicsView do not do anything wrong. It does not use the event so it ends up in the scroll area code.

We just have a make sure the scene has the correct size when we resize the graphicswebview.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217676</commentid>
    <comment_count>3</comment_count>
      <attachid>54412</attachid>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-04-27 06:47:26 -0700</bug_when>
    <thetext>Comment on attachment 54412
Patch

I managed to trick a similar bug using wheel and opening a combobox and it scrolled the graphics view instead of the page and left behind garbage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217849</commentid>
    <comment_count>4</comment_count>
      <attachid>54412</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-27 12:34:09 -0700</bug_when>
    <thetext>Comment on attachment 54412
Patch

Clearing flags on attachment: 54412

Committed r58321: &lt;http://trac.webkit.org/changeset/58321&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217850</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-27 12:34:14 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217953</commentid>
    <comment_count>6</comment_count>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2010-04-27 14:37:32 -0700</bug_when>
    <thetext>So a developer implementing an application with QGraphicsWebView and keypad navigation would have to do this sceneRect step each time?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>54412</attachid>
            <date>2010-04-27 06:15:50 -0700</date>
            <delta_ts>2010-04-27 12:34:09 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>35834.patch</filename>
            <type>text/plain</type>
            <size>1194</size>
            <attacher name="Benjamin Poulain">benjamin</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCA4MjA0YTdjLi4wY2Q3MGRlIDEwMDY0NAotLS0gYS9XZWJLaXRUb29scy9DaGFuZ2VM
b2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTAtMDQt
MjcgIEJlbmphbWluIFBvdWxhaW4gIDxiZW5qYW1pbi5wb3VsYWluQG5va2lhLmNvbT4KKworICAg
ICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBbUXRdIFFHcmFwaGlj
c1dlYlZpZXc6IEFycm93IGtleXMgc2Nyb2xsIHRoZSBncmFwaGljcy12aWV3IGluc3RlYWQgb2Yg
dGhlIHdlYi1wYWdlCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD0zNTgzNAorCisgICAgICAgIFRoZSBzY2VuZSBzaG91bGQgYWx3YXlzIGhhdmUgdGhlIHN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