When using certain fonts (e.g. -apple-system on macOS) selecting a line that end with a zero-width joiner (ZWJ) may cause a text transformation of the character before the ZWJ. On macOS you can observe this issue by performing the following: 1. Visit <data:text/html,<p%20style="font-family:%20-apple-system">12‍</p>>. 2. Select the '2'. Then the '2' will transform to Ä. But it should not transform at all and remain '2'.
Created attachment 332038 [details] Patch and layout test
<rdar://problem/36421080>
Ideally we need to fix bug #181964 so that selection and zero-width joiners interact well.
Comment on attachment 332038 [details] Patch and layout test Attachment 332038 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/6184541 New failing tests: fast/text/mac/select-character-before-zero-width-joiner.html
Created attachment 332049 [details] Archive of layout-test-results from ews103 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-sierra Platform: Mac OS X 10.12.6
Comment on attachment 332038 [details] Patch and layout test Attachment 332038 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/6184580 New failing tests: fast/text/mac/select-character-before-zero-width-joiner.html
Created attachment 332052 [details] Archive of layout-test-results from ews104 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Comment on attachment 332038 [details] Patch and layout test Attachment 332038 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/6184642 New failing tests: fast/text/mac/select-character-before-zero-width-joiner.html
Created attachment 332060 [details] Archive of layout-test-results from ews112 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-sierra Platform: Mac OS X 10.12.6
(In reply to Build Bot from comment #4) > Comment on attachment 332038 [details] > Patch and layout test > > Attachment 332038 [details] did not pass mac-ews (mac): > Output: http://webkit-queues.webkit.org/results/6184541 > > New failing tests: > fast/text/mac/select-character-before-zero-width-joiner.html This test failure is because I inadvertently wrote the expected file taking advantage of bug #181964 (only occurs on macOS High Sierra). On another note the actual rendering of this test on macOS Sierra is wrong. See bug #182022 for more details.
Created attachment 332093 [details] Patch and layout test
Comment on attachment 332093 [details] Patch and layout test Attachment 332093 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/6188482 New failing tests: fast/text/mac/select-character-before-zero-width-joiner.html
Created attachment 332104 [details] Archive of layout-test-results from ews100 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
Comment on attachment 332093 [details] Patch and layout test Attachment 332093 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/6188592 New failing tests: fast/text/mac/select-character-before-zero-width-joiner.html
Created attachment 332107 [details] Archive of layout-test-results from ews107 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Comment on attachment 332093 [details] Patch and layout test Attachment 332093 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/6188665 New failing tests: fast/text/mac/select-character-before-zero-width-joiner.html
Created attachment 332110 [details] Archive of layout-test-results from ews114 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 332120 [details] Patch and layout test
Comment on attachment 332120 [details] Patch and layout test r=me
Comment on attachment 332120 [details] Patch and layout test Clearing flags on attachment: 332120 Committed r227533: <https://trac.webkit.org/changeset/227533>
All reviewed patches have been landed. Closing bug.