<?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>38658</bug_id>
          
          <creation_ts>2010-05-06 10:30:30 -0700</creation_ts>
          <short_desc>[Qt] tst_QWebFrame::popupFocus() fails on Mac OS</short_desc>
          <delta_ts>2011-06-14 06:07:36 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>38654</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jesus Sanchez-Palencia">jesus</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kenneth</cc>
    
    <cc>luiz</cc>
    
    <cc>max.hong.shen</cc>
    
    <cc>menard</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>221789</commentid>
    <comment_count>0</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2010-05-06 10:30:30 -0700</bug_when>
    <thetext>Using WebKit r58755 and Qt 4.7 HEAD 32ecf8e8ad326ea13ec9a430c99ce540e8b4efac I noticed that this test fails on Mac OS.

The message is: &apos;view.hasFocus() &amp;&amp; !combo-&gt;view()-&gt;hasFocus()&apos; returned FALSE .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221918</commentid>
    <comment_count>1</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2010-05-06 13:25:36 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Using WebKit r58755 and Qt 4.7 HEAD 32ecf8e8ad326ea13ec9a430c99ce540e8b4efac I
&gt; noticed that this test fails on Mac OS.
&gt; 
&gt; The message is: &apos;view.hasFocus() &amp;&amp; !combo-&gt;view()-&gt;hasFocus()&apos; returned FALSE
&gt; .

It also fails on Maemo5 with Qt 4.6 and the same stated revision of WebKit, with the message: (&apos;combo != 0&apos; returned FALSE).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222639</commentid>
    <comment_count>2</comment_count>
    <who name="Luiz Agostini">luiz</who>
    <bug_when>2010-05-07 14:57:13 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; Using WebKit r58755 and Qt 4.7 HEAD 32ecf8e8ad326ea13ec9a430c99ce540e8b4efac I
&gt; &gt; noticed that this test fails on Mac OS.
&gt; &gt; 
&gt; &gt; The message is: &apos;view.hasFocus() &amp;&amp; !combo-&gt;view()-&gt;hasFocus()&apos; returned FALSE
&gt; &gt; .
&gt; 
&gt; It also fails on Maemo5 with Qt 4.6 and the same stated revision of WebKit,
&gt; with the message: (&apos;combo != 0&apos; returned FALSE).

In Maemo5 no combo box is used. The test will not work in Maemo5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222641</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-05-07 14:58:38 -0700</bug_when>
    <thetext>Then we should add a #ifdef or an XFAIL for maemo. I am not sure which one makes most sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222653</commentid>
    <comment_count>4</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-05-07 15:14:22 -0700</bug_when>
    <thetext>I suggest we split this bug up into two as the failures are not really related.

Mac fails because it does not give the focus back to the view, and Maemo has no QComboBox, thus the test doesn&apos;t really apply and we might thus mark it XFAIL or adapt the test to make sense on Maemo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227515</commentid>
    <comment_count>5</comment_count>
    <who name="Luiz Agostini">luiz</who>
    <bug_when>2010-05-18 15:01:35 -0700</bug_when>
    <thetext>The maemo issue has been handled in bug 39314.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227937</commentid>
    <comment_count>6</comment_count>
    <who name="Luiz Agostini">luiz</who>
    <bug_when>2010-05-19 12:05:57 -0700</bug_when>
    <thetext>Mac does not give the focus back to the view. I believe that it is a problem in Qt for Mac OS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296775</commentid>
    <comment_count>7</comment_count>
      <attachid>71289</attachid>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2010-10-20 06:55:14 -0700</bug_when>
    <thetext>Created attachment 71289
proposal fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296776</commentid>
    <comment_count>8</comment_count>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2010-10-20 07:02:35 -0700</bug_when>
    <thetext>I think this test case might be incorrect. I tested both firefox and safari, and none of them give the focus back to webview after click outside of a select list. (e.g. a page has a select list and input field. First, click the list to popup the select list; then click the input field; The result is that no focus/cursor shows in the input field and you have to click the input filed again to set the focus/cursor on it).

Also, I checked the Qt code and found the first click event is eaten by qcombox to hide itself. Then the second click event can reach the webview. So, I made a few changes to this test case to help pass the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420358</commentid>
    <comment_count>9</comment_count>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-06-14 06:07:36 -0700</bug_when>
    <thetext>I&apos;m curious I can&apos;t reproduce the failure here with QtWebKit 2.2 (or trunk) with a recent 4.7 Cocoa build.

Please re-open if more informations</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>71289</attachid>
            <date>2010-10-20 06:55:14 -0700</date>
            <delta_ts>2010-11-03 10:10:58 -0700</delta_ts>
            <desc>proposal fix</desc>
            <filename>38658.patch</filename>
            <type>text/plain</type>
            <size>2233</size>
            <attacher name="Yi Shen">max.hong.shen</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9xdC9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L3F0L0NoYW5n
ZUxvZwkocmV2aXNpb24gNzAxNDUpCisrKyBXZWJLaXQvcXQvQ2hhbmdlTG9nCSh3b3JraW5nIGNv
cHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTAtMTAtMjAgIFlpIFNoZW4gIDx5aS40LnNoZW5Abm9r
aWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IFtRdF0gdHN0X1FXZWJGcmFtZTo6cG9wdXBGb2N1cygpIGZhaWxzIG9uIE1hYyBPUworICAgICAg
ICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9Mzg2NTgKKworICAgICAg
ICAqIHRlc3RzL3F3ZWJmcmFtZS90c3RfcXdlYmZyYW1lLmNwcDoKKwogMjAxMC0xMC0yMCAgTHVp
eiBBZ29zdGluaSAgPGx1aXouYWdvc3RpbmlAb3BlbmJvc3NhLm9yZz4KIAogICAgICAgICBSZXZp
ZXdlZCBieSBBbnRvbmlvIEdvbWVzLgpJbmRleDogV2ViS2l0L3F0L3Rlc3RzL3F3ZWJmcmFtZS90
c3RfcXdlYmZyYW1lLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXQvcXQvdGVzdHMvcXdlYmZyYW1l
L3RzdF9xd2ViZnJhbWUuY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