RESOLVED FIXED 192216
Web Inspector: replace all unicode characters with the escaped character code
https://bugs.webkit.org/show_bug.cgi?id=192216
Summary Web Inspector: replace all unicode characters with the escaped character code
Devin Rousso
Reported 2018-11-29 21:43:50 PST
This avoids the "confusion" around left/right quotes.
Attachments
Patch (57.58 KB, patch)
2018-11-29 21:46 PST, Devin Rousso
no flags
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
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
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
Patch (63.87 KB, patch)
2018-11-30 01:08 PST, Devin Rousso
no flags
Patch (64.09 KB, patch)
2018-11-30 10:11 PST, Devin Rousso
no flags
Devin Rousso
Comment 1 2018-11-29 21:44:13 PST
Devin Rousso
Comment 2 2018-11-29 21:46:45 PST
Devin Rousso
Comment 3 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
EWS Watchlist
Comment 4 2018-11-29 22:36:16 PST Comment hidden (obsolete)
EWS Watchlist
Comment 5 2018-11-29 22:36:17 PST Comment hidden (obsolete)
EWS Watchlist
Comment 6 2018-11-29 22:41:33 PST Comment hidden (obsolete)
EWS Watchlist
Comment 7 2018-11-29 22:41:35 PST Comment hidden (obsolete)
EWS Watchlist
Comment 8 2018-11-29 23:33:18 PST Comment hidden (obsolete)
EWS Watchlist
Comment 9 2018-11-29 23:33:19 PST Comment hidden (obsolete)
Devin Rousso
Comment 10 2018-11-30 01:08:17 PST
Blaze Burg
Comment 11 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
Devin Rousso
Comment 12 2018-11-30 10:11:40 PST
Nikita Vasilyev
Comment 13 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?
WebKit Commit Bot
Comment 14 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>
WebKit Commit Bot
Comment 15 2018-11-30 10:55:49 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.