Bug 181964 - REGRESSION: Trailing zero-width joiner (ZWJ) included in selection on page deactivation and may stay selected
Summary: REGRESSION: Trailing zero-width joiner (ZWJ) included in selection on page de...
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Local Build
Hardware: Mac macOS 10.13
: P1 Normal
Assignee: Nobody
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2018-01-22 16:58 PST by Daniel Bates
Modified: 2018-01-23 16:26 PST (History)
5 users (show)

See Also:


Attachments
Tests (708 bytes, text/html)
2018-01-22 17:02 PST, Daniel Bates
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2018-01-22 16:58:44 PST
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.
Comment 1 Daniel Bates 2018-01-22 17:02:52 PST
Created attachment 331980 [details]
Tests
Comment 2 Daniel Bates 2018-01-23 16:03:47 PST
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).
Comment 3 Daniel Bates 2018-01-23 16:05:28 PST
(In reply to Daniel Bates from comment #2)
> 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).

Elaborating further, this bug is specific to macOS High Sierra. That is, it does not reproduce on macOS Sierra.
Comment 4 Radar WebKit Bug Importer 2018-01-23 16:26:50 PST
<rdar://problem/36799695>