Bug 202294 - [iOS]: When inserting a photo and then inserting auto-corrected text, the photo is removed
Summary: [iOS]: When inserting a photo and then inserting auto-corrected text, the pho...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-09-26 15:24 PDT by Said Abou-Hallawa
Modified: 2019-09-27 10:33 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.07 KB, patch)
2019-09-26 15:37 PDT, Said Abou-Hallawa
sabouhallawa: commit-queue+
Details | Formatted Diff | Diff
Patch (7.38 KB, patch)
2019-09-27 08:39 PDT, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2019-09-26 15:24:44 PDT
This bug can be seen in Notes or Mail Apps on iOS 13. 

1. Create a new Mail or new Note
2. Make sure the cursor is at the beginning of the document.
3. Touch beside the cursor and select "Insert Photo or Video"
4. Pick any photo
5. Touch after or below the photo
6. Make sure the cursor is blinking at the right of the photo
7. Select one of the suggested words above the iOS keyboard

Result: The suggested word replaces the photo.
Expected: The suggested word is inserted after the photo.
Comment 1 Said Abou-Hallawa 2019-09-26 15:37:40 PDT
Created attachment 379690 [details]
Patch
Comment 2 Said Abou-Hallawa 2019-09-26 15:38:37 PDT
<rdar://problem/47977768>
Comment 3 Wenson Hsieh 2019-09-26 16:00:46 PDT
We should be able to write a test for this (see fast/events/ios/autocorrect-with-apostrophe.html for an example).
Comment 4 Said Abou-Hallawa 2019-09-27 08:39:30 PDT
Created attachment 379727 [details]
Patch
Comment 5 WebKit Commit Bot 2019-09-27 10:33:32 PDT
Comment on attachment 379727 [details]
Patch

Clearing flags on attachment: 379727

Committed r250432: <https://trac.webkit.org/changeset/250432>
Comment 6 WebKit Commit Bot 2019-09-27 10:33:33 PDT
All reviewed patches have been landed.  Closing bug.