<?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>181302</bug_id>
          
          <creation_ts>2018-01-04 12:46:46 -0800</creation_ts>
          <short_desc>Web Inspector: Zero-width joiners and other hidden Unicode characters are not displayed</short_desc>
          <delta_ts>2021-01-23 07:52:35 -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>Web Inspector</component>
          <version>Safari Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Craig Hockenberry">craig.hockenberry</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>ebrahim</cc>
    
    <cc>emacemac7</cc>
    
    <cc>gsnedders</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>joepeck</cc>
    
    <cc>rmondello</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1385897</commentid>
    <comment_count>0</comment_count>
    <who name="Craig Hockenberry">craig.hockenberry</who>
    <bug_when>2018-01-04 12:46:46 -0800</bug_when>
    <thetext>Zero-width joiners and other hidden Unicode characters in #text nodes are not displayed in the Web Inspector.

To reproduce:

1) Open this web page:

https://meta.stackoverflow.com/questions/361390/can-posts-to-stack-overflow-be-fingerprinted-using-hidden-unicode-characters

2) Select the &quot;foo&quot; in the &quot;foo * bar&quot; sample code

3) Inspect the element

4) Look at the nodeValue for the #text node

Expected result:

All the Unicode code points in the element should be visible. Chrome displays the HTML entities for the Unicode code points contained within the element:

&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;#x200B;&amp;zwnj;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;#x200B;&amp;#x2060;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;zwnj;&amp;zwnj;foo 

Actual result:

Text value is displayed as &quot; foo &quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1385959</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-01-04 15:25:48 -0800</bug_when>
    <thetext>&lt;rdar://problem/36307533&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721462</commentid>
    <comment_count>2</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2021-01-21 19:37:52 -0800</bug_when>
    <thetext>*** Bug 220831 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721631</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-01-22 11:04:32 -0800</bug_when>
    <thetext>What do we want to display escaped? General category C*? Some of White_Space=yes, as well, probably?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721845</commentid>
    <comment_count>4</comment_count>
    <who name="Ebrahim Byagowi">ebrahim</who>
    <bug_when>2021-01-23 07:52:35 -0800</bug_when>
    <thetext>&gt; What do we want to display escaped? General category C*? Some of White_Space=yes, as well, probably?

Oh, finding a unicode category of them also would be nice, it should contain what WebKit initially started at Bug 93888 and ended up to be https://source.chromium.org/chromium/chromium/src/+/master:third_party/devtools-frontend/src/front_end/elements/ElementsTreeOutline.js;l=1679?q=MappedCharToEntity&amp;ss=chromium I started a draft based on the two on https://pastebin.com/1hVMRLD3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>