<?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>181964</bug_id>
          
          <creation_ts>2018-01-22 16:58:44 -0800</creation_ts>
          <short_desc>REGRESSION: Trailing zero-width joiner (ZWJ) included in selection on page deactivation and may stay selected</short_desc>
          <delta_ts>2018-01-23 16:26:50 -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>Text</component>
          <version>WebKit Local Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=181993</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=182022</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Bates">dbates</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>hyatt</cc>
    
    <cc>mitz</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1391882</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2018-01-22 16:58:44 -0800</bug_when>
    <thetext>When a line contains a character and a zero-width joiner (ZWJ) in that order, selecting the character by hand, deactivating the page by putting Safari in the background, causes the selection to extend to the ZWJ. Moreover, activating the page by bringing Safari to the foreground and clicking somewhere else in the document to deselect the text may cause the character to be deselected and the ZWJ to remain selected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391884</commentid>
    <comment_count>1</comment_count>
      <attachid>331980</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2018-01-22 17:02:52 -0800</bug_when>
    <thetext>Created attachment 331980
Tests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392323</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2018-01-23 16:03:47 -0800</bug_when>
    <thetext>The extending of the selection highlight to include the zero-width joiner is a regression from the selection highlight behavior seen in shipping Safari version 10.1.2 (12603.3.8) on macOS Sierra (16G1004).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392324</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2018-01-23 16:05:28 -0800</bug_when>
    <thetext>(In reply to Daniel Bates from comment #2)
&gt; The extending of the selection highlight to include the zero-width joiner is
&gt; a regression from the selection highlight behavior seen in shipping Safari
&gt; version 10.1.2 (12603.3.8) on macOS Sierra (16G1004).

Elaborating further, this bug is specific to macOS High Sierra. That is, it does not reproduce on macOS Sierra.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392330</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-01-23 16:26:50 -0800</bug_when>
    <thetext>&lt;rdar://problem/36799695&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>331980</attachid>
            <date>2018-01-22 17:02:52 -0800</date>
            <delta_ts>2018-01-22 17:02:52 -0800</delta_ts>
            <desc>Tests</desc>
            <filename>tests.html</filename>
            <type>text/html</type>
            <size>708</size>
            <attacher name="Daniel Bates">dbates</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPG1ldGEgY2hhcnNldD0idXRmLTgiPgo8L2hl
YWQ+Cjxib2R5Pgo8cD5UZXN0IDE6IFplcm8td2lkdGggam9pbmVyIGluY2x1ZGVkIGluIHNlbGVj
dGlvbiBvbiBwYWdlIGRlYWN0aXZhdGlvbi48L3A+CjxvbD4KICAgIDxsaT5TZWxlY3QgdGhlICcy
JyBiZWxvdy48L2xpPgogICAgPGxpPk1ha2UgU2FmYXJpIGdvIHRvIHRoZSBiYWNrZ3JvdW5kIGJ5
IGJyaW5naW5nIGFub3RoZXIgYXBwIHRvIHRoZSBmb3JlZ3JvdW5kLjwvbGk+Cjwvb2w+CjxwPlRo
ZW4gdGhlIHNlbGVjdGlvbiB3aWxsIGJlIGV4dGVuZGVkIHRvIGluY2x1ZGUgdGhlIHplcm8td2lk
dGggam9pbmVyLjwvcD4KPHA+VGVzdCAyOiBaZXJvLXdpZHRoIGpvaW5lciByZW1haW5zIHNlbGVj
dGVkPC9wPgo8b2w+CiAgICA8bGk+UGVyZm9ybSB0aGUgc3RlcHMgaW4gdGVzdCAxLjwvbGk+CiAg
ICA8bGk+QnJpbmcgU2FmYXJpIHRvIHRoZSBmb3JlZ3JvdW5kLjwvbGk+CiAgICA8bGk+Q2xpY2sg
YW55d2hlcmUgb24gdGhlIGJhY2tncm91bmQgb2YgdGhlIHBhZ2UgdG8gZGVzZWxlY3QgdGhlIHRl
eHQuPC9saT4KPC9vbD4KPHA+VGhlbiB6ZXJvLXdpZHRoIGpvaW5lciByZW1haW5zIHNlbGVjdGVk
LjwvcD4KPHAgaWQ9InRleHQiIHN0eWxlPSJmb250LWZhbWlseTogLWFwcGxlLXN5c3RlbSI+MTIm
endqOzwvcD4KPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>