Bug 240778

Summary: Breaking out of a quoted reply block by inserting a new paragraph should reset writing direction
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: HTML EditingAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Wenson Hsieh 2022-05-22 16:16:03 PDT
Specific repro steps in Mail, on macOS:

1. Set system language to an RTL language, such as Hebrew or Arabic.
2. Switch to an LTR input language/locale, such as en_US.
3. Reply to an email with LTR content.
4. Set the selection inside the quoted content, and hit enter to break apart the blockquote.
5. Type anything (e.g., "hello")

Expected: the text inserted in step 5 should be LTR.
Observed: the text inserted in step 5 is RTL.
Comment 1 Wenson Hsieh 2022-05-22 16:22:34 PDT
rdar://14839536
Comment 2 Wenson Hsieh 2022-05-22 16:59:15 PDT
Pull request: https://github.com/WebKit/WebKit/pull/898
Comment 3 EWS 2022-05-23 19:07:47 PDT
Committed r294714 (250901@main): <https://commits.webkit.org/250901@main>

Reviewed commits have been landed. Closing PR #898 and removing active labels.