<?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>146907</bug_id>
          
          <creation_ts>2015-07-13 11:22:41 -0700</creation_ts>
          <short_desc>Arabic text does not shape properly when split into &lt;span&gt;&apos;s</short_desc>
          <delta_ts>2015-07-13 13:51:01 -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>Text</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6148</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mmaxfield</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1109145</commentid>
    <comment_count>0</comment_count>
      <attachid>256707</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-07-13 11:22:41 -0700</bug_when>
    <thetext>Created attachment 256707
test case

Open the attached test case and compare the first and the second paragraphs.

Result: The second paragraph is shaped in two different passes as if they are separate runs. So the last character of the first run has a &quot;final&quot; shape and the first character of the second run has an &quot;initial&quot; shape.

This bug is similar to https://bugs.webkit.org/show_bug.cgi?id=6148 but this one is way more important. It hits millions of Facebook users very often when part of the text is hidden and its visibility is controlled by &quot;See more...&quot; link. Once the link is clicked, the other span is visible and the bug is reproducible.

NOTE: It is reproducible in Chrome bug fixed in FireFox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109155</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-07-13 11:52:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/21797428&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109200</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2015-07-13 13:51:01 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 6148 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>256707</attachid>
            <date>2015-07-13 11:22:41 -0700</date>
            <delta_ts>2015-07-13 11:22:41 -0700</delta_ts>
            <desc>test case</desc>
            <filename>test145.html</filename>
            <type>text/html</type>
            <size>92</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHA+JiMxNTc1OyYjMTYwNDsmIzE2MDQ7JiMxNjA3Ozwvc3Bhbj48L3A+CjxwPiYjMTU3NTsmIzE2
MDQ7PHNwYW4+JiMxNjA0OyYjMTYwNzs8L3NwYW4+PC9wPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>