<?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>31466</bug_id>
          
          <creation_ts>2009-11-13 04:39:17 -0800</creation_ts>
          <short_desc>[Qt] QWebView problems with focus on the first activation.</short_desc>
          <delta_ts>2010-03-17 06:06:19 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jocelyn Turcotte">jturcotte</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>vestbo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163277</commentid>
    <comment_count>0</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2009-11-13 04:39:17 -0800</bug_when>
    <thetext>This leads to the wrong selection color being used and no caret cursor in text fields.

To reproduce in QtLauncher:
- Open www.google.com
- Right click on any link and do open in new window
- Wait until the page is loaded before activating the new window
- Click and select text in the new windows
On Windows at least, the selection will be of the wrong color until you give the focus to another widget and give it back to the web view.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163280</commentid>
    <comment_count>1</comment_count>
      <attachid>43150</attachid>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2009-11-13 04:56:13 -0800</bug_when>
    <thetext>Created attachment 43150
Patch

setFocusedFrame check if isFocused() is true before forwarding the event to the frame.
This patch ensure that it is called before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163283</commentid>
    <comment_count>2</comment_count>
      <attachid>43150</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-13 05:21:41 -0800</bug_when>
    <thetext>Comment on attachment 43150
Patch

Clearing flags on attachment: 43150

Committed r50937: &lt;http://trac.webkit.org/changeset/50937&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163284</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-13 05:21:45 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200714</commentid>
    <comment_count>4</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2010-03-17 06:06:19 -0700</bug_when>
    <thetext>*** Bug 35660 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43150</attachid>
            <date>2009-11-13 04:56:13 -0800</date>
            <delta_ts>2009-11-13 05:21:41 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>qwebview_focusproblem.patch</filename>
            <type>text/plain</type>
            <size>1292</size>
            <attacher name="Jocelyn Turcotte">jturcotte</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9xdC9BcGkvcXdlYnBhZ2UuY3BwIGIvV2ViS2l0L3F0L0FwaS9x
d2VicGFnZS5jcHAKaW5kZXggODQ5OWUxMC4uYWIzMjNjMiAxMDA2NDQKLS0tIGEvV2ViS2l0L3F0
L0FwaS9xd2VicGFnZS5jcHAKKysrIGIvV2ViS2l0L3F0L0FwaS9xd2VicGFnZS5jcHAKQEAgLTEw
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