Bug 192216 - Web Inspector: replace all unicode characters with the escaped character code
Summary: Web Inspector: replace all unicode characters with the escaped character code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-29 21:43 PST by Devin Rousso
Modified: 2018-11-30 10:55 PST (History)
8 users (show)

See Also:


Attachments
Patch (57.58 KB, patch)
2018-11-29 21:46 PST, Devin Rousso
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-sierra-wk2 (3.25 MB, application/zip)
2018-11-29 22:36 PST, EWS Watchlist
no flags Details
Archive of layout-test-results from ews100 for mac-sierra (2.67 MB, application/zip)
2018-11-29 22:41 PST, EWS Watchlist
no flags Details
Archive of layout-test-results from ews116 for mac-sierra (2.15 MB, application/zip)
2018-11-29 23:33 PST, EWS Watchlist
no flags Details
Patch (63.87 KB, patch)
2018-11-30 01:08 PST, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (64.09 KB, patch)
2018-11-30 10:11 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2018-11-29 21:43:50 PST
This avoids the "confusion" around left/right quotes.
Comment 1 Devin Rousso 2018-11-29 21:44:13 PST
<rdar://problem/46275637>
Comment 2 Devin Rousso 2018-11-29 21:46:45 PST
Created attachment 356131 [details]
Patch
Comment 3 Devin Rousso 2018-11-29 21:48:43 PST
There are still some unicode characters in:
 - UserInterface/External/CodeMirror/codemirror.js
 - UserInterface/External/Esprima/esprima.js
 - UserInterface/External/three.js/LICENSE
 - UserInterface/External/three.js/three.js
 - UserInterface/Images/*.svg
Comment 4 EWS Watchlist 2018-11-29 22:36:16 PST Comment hidden (obsolete)
Comment 5 EWS Watchlist 2018-11-29 22:36:17 PST Comment hidden (obsolete)
Comment 6 EWS Watchlist 2018-11-29 22:41:33 PST Comment hidden (obsolete)
Comment 7 EWS Watchlist 2018-11-29 22:41:35 PST Comment hidden (obsolete)
Comment 8 EWS Watchlist 2018-11-29 23:33:18 PST Comment hidden (obsolete)
Comment 9 EWS Watchlist 2018-11-29 23:33:19 PST Comment hidden (obsolete)
Comment 10 Devin Rousso 2018-11-30 01:08:17 PST
Created attachment 356161 [details]
Patch
Comment 11 BJ Burg 2018-11-30 09:21:03 PST
Comment on attachment 356161 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=356161&action=review

r=me

This will cause a lot of churn for localizers, but it's probably better that the current state of things considering that our code review tools don't render unicode correctly.

> Source/WebInspectorUI/UserInterface/Views/DebuggerDashboardView.css:178
> +    content: "\00A0\2014\00A0";

Please keep the comment.

> Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js:58
> +        span.textContent = ` ${emDash} `;

Nice.

> Source/WebInspectorUI/UserInterface/Views/ScriptDetailsTimelineView.css:52
>  }

I'm not sure what these codepoints do. I would like a comment when its something fairly unique.

> Source/WebInspectorUI/UserInterface/Views/TextEditor.css:78
> +    content: "\2022\2022\2022";

Ditto

> Source/WebInspectorUI/UserInterface/Views/TreeOutline.css:256
>  }

Ditto
Comment 12 Devin Rousso 2018-11-30 10:11:40 PST
Created attachment 356191 [details]
Patch
Comment 13 Nikita Vasilyev 2018-11-30 10:48:59 PST
I’m really not a fan of this change. I can’t read strings in the code anymore.

(In reply to Devin Rousso from comment #0)
> This avoids the "confusion" around left/right quotes.

Can we only do this for quotes?
Comment 14 WebKit Commit Bot 2018-11-30 10:55:48 PST
Comment on attachment 356191 [details]
Patch

Clearing flags on attachment: 356191

Committed r238743: <https://trac.webkit.org/changeset/238743>
Comment 15 WebKit Commit Bot 2018-11-30 10:55:49 PST
All reviewed patches have been landed.  Closing bug.