<?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>57472</bug_id>
          
          <creation_ts>2011-03-30 10:27:58 -0700</creation_ts>
          <short_desc>[Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails</short_desc>
          <delta_ts>2011-05-19 14:35:31 -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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          <dependson>58144</dependson>
          <blocked>33179</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ademar</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>kling</cc>
    
    <cc>max.hong.shen</cc>
    
    <cc>menard</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>376442</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-03-30 10:27:58 -0700</bug_when>
    <thetext>It seems the event fires twice:

--- /home/webkitbuildbot/slaves/release32bit/buildslave/qt-linux-release/build/layout-test-results/fast/events
/onsearch-enter-expected.txt	2011-03-29 10:26:35.556752666 -0700
+++ /home/webkitbuildbot/slaves/release32bit/buildslave/qt-linux-release/build/layout-test-results/fast/events/onsearch-enter-actual.txt	2011-03-29 10:26:35.556752666 -0700
@@ -1,4 +1,5 @@
 This tests that onSearch fires correctly.
 
 Test Passed
+Test Passed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376499</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-03-30 11:23:51 -0700</bug_when>
    <thetext>I added it to the skipped list: http://trac.webkit.org/changeset/82476</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>381718</commentid>
    <comment_count>2</comment_count>
      <attachid>88701</attachid>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2011-04-07 14:36:47 -0700</bug_when>
    <thetext>Created attachment 88701
first try

The problem is that EditorClientQt::handleInputMethodKeydown() is invoked by both keydown event and keypress event, and inserts two new lines (and sends onsearch events twice in this bug). One simple solution is by checking defaultPrevented() for each event before trigger the insertnewline action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>382247</commentid>
    <comment_count>3</comment_count>
      <attachid>88701</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-08 08:24:28 -0700</bug_when>
    <thetext>Comment on attachment 88701
first try

Clearing flags on attachment: 88701

Committed r83295: &lt;http://trac.webkit.org/changeset/83295&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>382248</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-08 08:24:33 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>382280</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-04-08 09:18:53 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/83295 might have broken Qt Linux Release
The following tests are not passing:
fast/forms/button-enter-click.html
fast/forms/enter-clicks-buttons.html
fast/forms/implicit-submission.html
fast/forms/select-double-onchange.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>382303</commentid>
    <comment_count>6</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-04-08 09:46:52 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; http://trac.webkit.org/changeset/83295 might have broken Qt Linux Release
&gt; The following tests are not passing:
&gt; fast/forms/button-enter-click.html
&gt; fast/forms/enter-clicks-buttons.html
&gt; fast/forms/implicit-submission.html
&gt; fast/forms/select-double-onchange.html

Rolling it out for offline fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>382382</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2011-04-08 10:54:38 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; http://trac.webkit.org/changeset/83295 might have broken Qt Linux Release
&gt; &gt; The following tests are not passing:
&gt; &gt; fast/forms/button-enter-click.html
&gt; &gt; fast/forms/enter-clicks-buttons.html
&gt; &gt; fast/forms/implicit-submission.html
&gt; &gt; fast/forms/select-double-onchange.html
&gt; 
&gt; Rolling it out for offline fix.

Sorry for it. I am looking at the issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>382880</commentid>
    <comment_count>8</comment_count>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2011-04-10 07:32:33 -0700</bug_when>
    <thetext>This regression is caused by the patch launched in https://bugs.webkit.org/show_bug.cgi?id=33179, and I doubt that patch is correct.

First, I saw a problem in the unit test for that patch, in which it tries to insert a new line by sending a enter key event

    QKeyEvent keyEnter(QEvent::KeyPress, Qt::Key_Enter, Qt::NoModifier);
    page-&gt;event(&amp;keyEnter);

This is incorrect in Webkit, in order to adding a new line, we should add a text for the key event as below,

    QKeyEvent keyEnter(QEvent::KeyPress, Qt::Key_Enter, Qt::NoModifier, &quot;\n&quot;);
    page-&gt;event(&amp;keyEnter);

Secondly, the issue in bug 33179 is a symbian platform only, which can&apos;t be reproduced on Linux. While, the patch impacts all the platforms and causes this regression.

I will take a look at the bug 33179 on symbian to see whether there is another way to fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>382889</commentid>
    <comment_count>9</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-04-10 09:00:51 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; This regression is caused by the patch launched in https://bugs.webkit.org/show_bug.cgi?id=33179, and I doubt that patch is correct.
&gt; 
&gt; First, I saw a problem in the unit test for that patch, in which it tries to insert a new line by sending a enter key event
&gt; 
&gt;     QKeyEvent keyEnter(QEvent::KeyPress, Qt::Key_Enter, Qt::NoModifier);
&gt;     page-&gt;event(&amp;keyEnter);
&gt; 
&gt; This is incorrect in Webkit, in order to adding a new line, we should add a text for the key event as below,
&gt; 
&gt;     QKeyEvent keyEnter(QEvent::KeyPress, Qt::Key_Enter, Qt::NoModifier, &quot;\n&quot;);
&gt;     page-&gt;event(&amp;keyEnter);
&gt; 
&gt; Secondly, the issue in bug 33179 is a symbian platform only, which can&apos;t be reproduced on Linux. While, the patch impacts all the platforms and causes this regression.
&gt; 
&gt; I will take a look at the bug 33179 on symbian to see whether there is another way to fix it.

please comment in that bug, if you have not yet. It sounds really bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383159</commentid>
    <comment_count>10</comment_count>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2011-04-11 07:34:55 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Created an attachment (id=88701) [details]
&gt; first try
&gt; 
&gt; The problem is that EditorClientQt::handleInputMethodKeydown() is invoked by both keydown event and keypress event, and inserts two new lines (and sends onsearch events twice in this bug). One simple solution is by checking defaultPrevented() for each event before trigger the insertnewline action.

Please ignore the comment above, which is not completely right. I will put some comment in https://bugs.webkit.org/show_bug.cgi?id=33179, which is the one that caused this regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406599</commentid>
    <comment_count>11</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-05-19 13:18:20 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; Please ignore the comment above, which is not completely right. I will put some comment in https://bugs.webkit.org/show_bug.cgi?id=33179, which is the one that caused this regression.

Should this bug still be open then? (Bug 33179, which depends on this one, is closed already).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406600</commentid>
    <comment_count>12</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-05-19 13:19:18 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; (In reply to comment #10)
&gt; &gt; Please ignore the comment above, which is not completely right. I will put some comment in https://bugs.webkit.org/show_bug.cgi?id=33179, which is the one that caused this regression.
&gt; 
&gt; Should this bug still be open then? (Bug 33179, which depends on this one, is closed already).

Duh, actually the bug is still open, but all patches have been landed. /me lost :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406656</commentid>
    <comment_count>13</comment_count>
    <who name="Yi Shen">max.hong.shen</who>
    <bug_when>2011-05-19 14:35:31 -0700</bug_when>
    <thetext>Close this bug which is fixed in 33179</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>88701</attachid>
            <date>2011-04-07 14:36:47 -0700</date>
            <delta_ts>2011-04-08 08:24:28 -0700</delta_ts>
            <desc>first try</desc>
            <filename>57472.patch</filename>
            <type>text/plain</type>
            <size>2931</size>
            <attacher name="Yi Shen">max.hong.shen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvcXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9X
ZWJLaXQvcXQvQ2hhbmdlTG9nCShyZXZpc2lvbiA4MzIwOCkKKysrI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