<?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>84595</bug_id>
          
          <creation_ts>2012-04-23 07:10:11 -0700</creation_ts>
          <short_desc>[Qt] Ensure zero-width space effectively accounts for a width of zero.</short_desc>
          <delta_ts>2012-11-21 06:45:05 -0800</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>Unspecified</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>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>42689</dependson>
    
    <dependson>102920</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pierre Rossi">pierre.rossi</reporter>
          <assigned_to name="Pierre Rossi">pierre.rossi</assigned_to>
          <cc>hausmann</cc>
    
    <cc>jesus</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>607652</commentid>
    <comment_count>0</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2012-04-23 07:10:11 -0700</bug_when>
    <thetext>[Qt] Ensure zero-width space effectively accounts for a width of zero.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607671</commentid>
    <comment_count>1</comment_count>
      <attachid>138344</attachid>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2012-04-23 07:44:28 -0700</bug_when>
    <thetext>Created attachment 138344
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607682</commentid>
    <comment_count>2</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2012-04-23 07:55:48 -0700</bug_when>
    <thetext>Committed r114899: &lt;http://trac.webkit.org/changeset/114899&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607706</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-04-23 08:40:13 -0700</bug_when>
    <thetext>Reopen, because it broke 62 tests on Qt5-WK1 and WK2 bots ...
Could you check if it is regression or progression and then fix it soon?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607733</commentid>
    <comment_count>4</comment_count>
      <attachid>138344</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-04-23 09:09:33 -0700</bug_when>
    <thetext>Comment on attachment 138344
Patch

I skipped the failing tests to make the bot green and be able catch new regressions - http://trac.webkit.org/changeset/114905

Please unskip the tests with the proper fix. Just a question: Wouldn&apos;t be simpler to run layout tests before landing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607776</commentid>
    <comment_count>5</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2012-04-23 10:03:51 -0700</bug_when>
    <thetext>Committed new baselines manually in r114913: &lt;http://trac.webkit.org/changeset/114913&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608444</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-04-24 01:24:18 -0700</bug_when>
    <thetext>Reopen again, because two tests are still failing:
- editing/selection/5354455-1.html
- editing/selection/click-left-of-rtl-wrapping-text.html

The first one is still fail on the bot:
--- /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/layout-test-results/editing/selection/5354455-1-expected.txt 
+++ /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/layout-test-results/editing/selection/5354455-1-actual.txt 
@@ -1,6 +1,6 @@
 This tests whether right clicking on a paragraph break in editable content selects it. The break should be selected on OS X, but not on Windows or Unix. To run it manually, right click on the paragraph break after the first paragraph below.
 
-The following paragraph break should be selected on OS X.
+
 Mac: Caret
 
 Win: Caret

For the second one you committed wrong expected result:
http://trac.webkit.org/browser/trunk/LayoutTests/platform/qt-5.0/editing/selection/click-left-of-rtl-wrapping-text-expected.txt?rev=114908
(diff: http://build.webkit.sed.hu/results/x86-32%20Linux%20Qt%20Release%20-%20Qt5-WebKit1/r114902%20%286441%29/editing/selection/click-left-of-rtl-wrapping-text-pretty-diff.html)

It&apos;s hard to believe if it is the correct result. In my head FAIL instead of PASS words always mean regression.

I&apos;m going to skip these tests again to make bots happier a little bit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608455</commentid>
    <comment_count>7</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-04-24 01:36:41 -0700</bug_when>
    <thetext>I skipped them _again_ - http://trac.webkit.org/changeset/115010/trunk/LayoutTests/platform/qt-5.0/Skipped

Please unskip them with the proper fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>625855</commentid>
    <comment_count>8</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2012-05-16 14:11:56 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; I skipped them _again_ - http://trac.webkit.org/changeset/115010/trunk/LayoutTests/platform/qt-5.0/Skipped
&gt; 
&gt; Please unskip them with the proper fix.

Ossy, editing/selection/click-left-of-rtl-wrapping-text.html is passing locally for me with Qt5. Can you check and see if we can just unskip it please? I will have a look now at the other one.

thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>625861</commentid>
    <comment_count>9</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2012-05-16 14:17:10 -0700</bug_when>
    <thetext>editing/selection/5354455-1.html is not working because we need layoutTestController.setEditingBehavior (bug 42689).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>626465</commentid>
    <comment_count>10</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-05-17 05:04:39 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; I skipped them _again_ - http://trac.webkit.org/changeset/115010/trunk/LayoutTests/platform/qt-5.0/Skipped
&gt; &gt; 
&gt; &gt; Please unskip them with the proper fix.
&gt; 
&gt; Ossy, editing/selection/click-left-of-rtl-wrapping-text.html is passing locally for me with Qt5. Can you check and see if we can just unskip it please? I will have a look now at the other one.

Yes, it passes, because _WRONG_ expected file was committed with 3 big FAIL message. So it is still valid bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>626469</commentid>
    <comment_count>11</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-05-17 05:07:53 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; editing/selection/5354455-1.html is not working because we need layoutTestController.setEditingBehavior (bug 42689).

But it fails on Qt5-WK1, it is unrelated to WK2 missing feature you mentioned.
And it passed before and fail now, so it is a regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>772789</commentid>
    <comment_count>12</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-11-21 04:23:14 -0800</bug_when>
    <thetext>editing/selection/click-left-of-rtl-wrapping-text.html passes now (I updated
the expected file by r135382), but the other test still fails, because r114899
_broke_ it. I filed a new bug report to track this _regression_ - https://bugs.webkit.org/show_bug.cgi?id=102920</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>772907</commentid>
    <comment_count>13</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2012-11-21 06:45:05 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; editing/selection/click-left-of-rtl-wrapping-text.html passes now (I updated
&gt; the expected file by r135382), but the other test still fails, because r114899
&gt; _broke_ it. I filed a new bug report to track this _regression_ - https://bugs.webkit.org/show_bug.cgi?id=102920

This was only intended as a workaround originally, but an attempt at fixing the root problem didn&apos;t turn out to be that popular. So we&apos;re stuck with that for now.
I&apos;ll take another crack at it and maybe try a different approach once we&apos;re done with the WebKitWidget split.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>138344</attachid>
            <date>2012-04-23 07:44:28 -0700</date>
            <delta_ts>2012-04-23 09:09:32 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-84595-20120423164412.patch</filename>
            <type>text/plain</type>
            <size>1967</size>
            <attacher name="Pierre Rossi">pierre.rossi</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE0ODk0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNWIyNjZmY2Q1NjA1NzAx
NjMwN2U2OWU4NDk5YjAyZmE0ZjMwOTY3OS4uYzY5YTE4YjJjNzk0MjQxOTFkMWI0OTYwN2FhNzc1
OGU4NWExMDc5NCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIyIEBACisyMDEyLTA0LTIzICBQaWVy
cmUgUm9zc2kgIDxwaWVycmUucm9zc2lAZ21haWwuY29tPgorCisgICAgICAgIFtRdF0gRW5zdXJl
IHplcm8td2lkdGggc3BhY2UgZWZmZWN0aXZlbHkgYWNjb3VudHMgZm9yIGEgd2lkdGggb2YgemVy
by4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTg0NTk1
CisKKyAgICAgICAgVGhlIGxvZ2ljIHNvIGZhciByZWxpZXMgb24gRm9udENhY2hlOjpnZXRGb250
RGF0YUZvckNoYXJh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