<?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>60311</bug_id>
          
          <creation_ts>2011-05-05 16:20:16 -0700</creation_ts>
          <short_desc>[Qt] fast/events/backspace-nagivates-back fails on Qt bots (Mac and Linux)</short_desc>
          <delta_ts>2011-05-28 05:15:46 -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>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</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="Evan Martin">evan</reporter>
          <assigned_to name="Evan Martin">evan</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>ojan</cc>
    
    <cc>ossy</cc>
    
    <cc>robert</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>399153</commentid>
    <comment_count>0</comment_count>
    <who name="Evan Martin">evan</who>
    <bug_when>2011-05-05 16:20:16 -0700</bug_when>
    <thetext>I just checked in a test that tries to verify that backspace navigates back.
The test tests the per-platform behavior for all platforms known by EditingBehavior (mac, win, unix).

It fails on Qt.  Test output:
This test passes if it says PASS below.
FAIL: expected navigation to test-complete

http://build.webkit.org/results/Qt%20Linux%20Release/r85893%20(32469)/results.html

This indicates that somehow pressing &quot;back&quot; *is* causing a navigation.  I&apos;m not sure how to diagnose it.
Can you help?  Should I skip the test to green the tree?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399225</commentid>
    <comment_count>1</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-05-05 17:22:22 -0700</bug_when>
    <thetext>
&gt; This indicates that somehow pressing &quot;back&quot; *is* causing a navigation.  I&apos;m not sure how to diagnose it.
&gt; Can you help?  Should I skip the test to green the tree?

I can have a look. Please skip it, Evan. Ty</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399277</commentid>
    <comment_count>2</comment_count>
      <attachid>92525</attachid>
    <who name="Evan Martin">evan</who>
    <bug_when>2011-05-05 18:42:11 -0700</bug_when>
    <thetext>Created attachment 92525
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399279</commentid>
    <comment_count>3</comment_count>
    <who name="Evan Martin">evan</who>
    <bug_when>2011-05-05 18:43:42 -0700</bug_when>
    <thetext>I landed this in the skipped list in r85910.

http://trac.webkit.org/changeset/85910</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399490</commentid>
    <comment_count>4</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-05-06 07:15:13 -0700</bug_when>
    <thetext>Evan, it would probably be better to skip it for all qt platforms

platform/qt-linux/Skipped is only for Qt on linux. Ossy?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399495</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-05-06 07:16:37 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Evan, it would probably be better to skip it for all qt platforms
&gt; 
&gt; platform/qt-linux/Skipped is only for Qt on linux. Ossy?
yes, but we use platform/qt/Skipped because historically reason</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399512</commentid>
    <comment_count>6</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-05-06 07:47:14 -0700</bug_when>
    <thetext>*** Bug 60349 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399528</commentid>
    <comment_count>7</comment_count>
    <who name="Evan Martin">evan</who>
    <bug_when>2011-05-06 08:39:16 -0700</bug_when>
    <thetext>Ah, setEditingBehavior isn&apos;t implemented!  I am glad there is not a more fundamental reason the test doesn&apos;t work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399531</commentid>
    <comment_count>8</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-05-06 08:44:56 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Ah, setEditingBehavior isn&apos;t implemented!  I am glad there is not a more fundamental reason the test doesn&apos;t work.

I implemented that myself :)

&gt; grep -nHR setEditingBehavior .
./LayoutTestControllerQt.cpp:771:void LayoutTestController::setEditingBehavior(const QString&amp; editingBehavior)
./LayoutTestControllerQt.cpp:773:    DumpRenderTreeSupportQt::setEditingBehavior(m_drt-&gt;webPage(), editingBehavior);
./LayoutTestControllerQt.h:251:    void setEditingBehavior(const QString&amp; editingBehavior);
./DumpRenderTreeQt.cpp:586:    DumpRenderTreeSupportQt::setEditingBehavior(m_page, &quot;win&quot;);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399543</commentid>
    <comment_count>9</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-05-06 09:10:50 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Evan, it would probably be better to skip it for all qt platforms
&gt; 
&gt; platform/qt-linux/Skipped is only for Qt on linux. Ossy?

When we looked at the Qt bots, it was only failing on the Qt-linux bots. Did we misread them?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399551</commentid>
    <comment_count>10</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-05-06 09:23:31 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; Ah, setEditingBehavior isn&apos;t implemented!  I am glad there is not a more fundamental reason the test doesn&apos;t work.
&gt; 
&gt; I implemented that myself :)
&gt; 
&gt; &gt; grep -nHR setEditingBehavior .
&gt; ./LayoutTestControllerQt.cpp:771:void LayoutTestController::setEditingBehavior(const QString&amp; editingBehavior)
&gt; ./LayoutTestControllerQt.cpp:773:    DumpRenderTreeSupportQt::setEditingBehavior(m_drt-&gt;webPage(), editingBehavior);
&gt; ./LayoutTestControllerQt.h:251:    void setEditingBehavior(const QString&amp; editingBehavior);
&gt; ./DumpRenderTreeQt.cpp:586:    DumpRenderTreeSupportQt::setEditingBehavior(m_page, &quot;win&quot;);

Evan, did I miss something?

(In reply to comment #9)
&gt; (In reply to comment #4)
&gt; &gt; Evan, it would probably be better to skip it for all qt platforms
&gt; &gt; 
&gt; &gt; platform/qt-linux/Skipped is only for Qt on linux. Ossy?
&gt; 
&gt; When we looked at the Qt bots, it was only failing on the Qt-linux bots. Did we misread them?

The Qt-Mac bot is probably not a core builder nor is in webkit waterfall. see it here: http://build.webkit.sed.hu/waterfall (ossy could you correct me?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399571</commentid>
    <comment_count>11</comment_count>
    <who name="Evan Martin">evan</who>
    <bug_when>2011-05-06 09:46:40 -0700</bug_when>
    <thetext>Oh, my comment was based on this commit message:
&quot;* platform/mac-wk2/Skipped: Add fast/events/backspace-navigates-back.html because of missing layoutTestController.setEditingBehavior().&quot;

But that must be wk2 specific.

Maybe this does fail for some more fundamental issue.  :(
Does it fail the same way on every bot?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401141</commentid>
    <comment_count>12</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-05-10 05:35:00 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; Oh, my comment was based on this commit message:
&gt; &quot;* platform/mac-wk2/Skipped: Add fast/events/backspace-navigates-back.html because of missing layoutTestController.setEditingBehavior().&quot;
&gt; 
&gt; But that must be wk2 specific.
WK2 has its own layoutTestController implementation which doesn&apos;t have setEditingBehavior() now.
 
&gt; Maybe this does fail for some more fundamental issue.  :(
&gt; Does it fail the same way on every bot?
Yes, Qt Linux, Qt ARM and Qt Mac fails are same.

I updated the Skipped lists: http://trac.webkit.org/changeset/86143</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404195</commentid>
    <comment_count>13</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-05-15 11:36:09 -0700</bug_when>
    <thetext>Hi Evan,

This is happening because EditorClientQt::handleKeyboardEvent() will only honour the unix editing behaviour (by interpreting the backspace as an edit command) if the selected text is editable. Since this isn&apos;t the case here, it ends up in QWebPagePrivate::keyPressEvent(QKeyEvent *ev) which interprets the command as a navigation command. Whereas your test treats it as a no-op, am I correct?

I think this just requires a platform-specific result for Qt, since it will always treat a backspace as a page-&gt;back() if there is no text to edit - regardless of platform.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404196</commentid>
    <comment_count>14</comment_count>
      <attachid>93588</attachid>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-05-15 11:45:02 -0700</bug_when>
    <thetext>Created attachment 93588
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>409851</commentid>
    <comment_count>15</comment_count>
    <who name="Evan Martin">evan</who>
    <bug_when>2011-05-25 12:39:08 -0700</bug_when>
    <thetext>Antonio, does this look correct to you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>411833</commentid>
    <comment_count>16</comment_count>
      <attachid>93588</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-28 05:15:40 -0700</bug_when>
    <thetext>Comment on attachment 93588
Patch

Clearing flags on attachment: 93588

Committed r87611: &lt;http://trac.webkit.org/changeset/87611&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>411834</commentid>
    <comment_count>17</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-28 05:15:46 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>92525</attachid>
            <date>2011-05-05 18:42:11 -0700</date>
            <delta_ts>2011-05-15 11:44:55 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-60311-20110505184335.patch</filename>
            <type>text/plain</type>
            <size>1146</size>
            <attacher name="Evan Martin">evan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODU5MDkKZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5n
ZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxvZwppbmRleCA0ZDQzMjg4MmU4YmNjODc4ZGIxOTM3
YjU1MDYyMGU3NmJkMWZmYmZlLi43MGFkMjVlYzllYTIxMGE4NjRkNWI0YzQ4NTk4NGY4MTMxM2Ew
OWMxIDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKKysrIGIvTGF5b3V0VGVzdHMv
Q2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDUtMDUgIEV2YW4gTWFydGluICA8ZXZh
bkBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisK
KyAgICAgICAgTmV3IHRlc3QgZmFzdC9ldmVudHMvYmFja3NwYWNlLW5hZ2l2YXRlcy1iYWNrIGZh
aWxzIG9uIFF0CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p
ZD02MDMxMQorCisgICAgICAgIFNraXAgdGhpcyB0ZXN0IHVudGlsIEFudG9ub2kgaGFzIHRpbWUg
dG8gbG9vayBhdCBpdC4KKworICAgICAgICAqIHBsYXRmb3JtL3F0LWxpbnV4L1NraXBwZWQ6CisK
IDIwMTEtMDUtMDUgIEplciBOb2JsZSAgPGplci5ub2JsZUBhcHBsZS5jb20+CiAKICAgICAgICAg
VW5yZXZpZXdlZCwgcGFydGlhbCByb2xsb3V0IG9mIHI4NTg0MyBhbmQgcjg1ODI0LiAgcjg1ODk3
IG1hZGUgdGhlc2UgZXhwZWN0ZWQgcmVzdWx0cyB1bm5lY2Vzc2FyeS4KZGlmZiAtLWdpdCBhL0xh
eW91dFRlc3RzL3BsYXRmb3JtL3F0LWxpbnV4L1NraXBwZWQgYi9MYXlvdXRUZXN0cy9wbGF0Zm9y
bS9xdC1saW51eC9Ta2lwcGVkCmluZGV4IGU2OWRlMjliYjJkMWQ2NDM0YjhiMjlhZTc3NWFkOGMy
ZTQ4YzUzOTEuLmZkMWQ4YzFlODllN2JmMDg2ZGI1YzlkNDdhM2ZlYmRmOWY0NjA3M2EgMTAwNjQ0
Ci0tLSBhL0xheW91dFRlc3RzL3BsYXRmb3JtL3F0LWxpbnV4L1NraXBwZWQKKysrIGIvTGF5b3V0
VGVzdHMvcGxhdGZvcm0vcXQtbGludXgvU2tpcHBlZApAQCAtMCwwICsxLDMgQEAKKyMgTmV3IHRl
c3QgZmFpbHMgb24gUXQsIExpbnV4IG9ubHk/CisjIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD02MDMxMQorZmFzdC9ldmVudHMvYmFja3NwYWNlLW5hdmlnYXRlcy1iYWNr
Lmh0bWwK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>93588</attachid>
            <date>2011-05-15 11:45:02 -0700</date>
            <delta_ts>2011-05-28 05:15:40 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-60311-20110515194501.patch</filename>
            <type>text/plain</type>
            <size>1256</size>
            <attacher name="Robert Hogan">robert</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODY1MDUKZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5n
ZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxvZwppbmRleCA5ODAxZDY4NGMxZjg2ZjU1NmVhNj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