Bug 181365

Summary: Copying, pasting, and then deleting an attachment element breaks attachment data requests
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: HTML EditingAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, mitz, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Fix API tests on macOS none

Description Wenson Hsieh 2018-01-06 10:47:55 PST
To reproduce:
1. Copy an attachment element
2. Paste the element
3. Delete the element

Observe: -[_WKAttachment requestData:] no longer works!
Comment 1 Radar WebKit Bug Importer 2018-01-07 14:42:43 PST
<rdar://problem/36340647>
Comment 2 Wenson Hsieh 2018-01-07 16:29:49 PST
Created attachment 330663 [details]
Patch
Comment 3 Wenson Hsieh 2018-01-07 18:18:16 PST
Created attachment 330666 [details]
Fix API tests on macOS
Comment 4 Wenson Hsieh 2018-01-08 14:14:23 PST
Comment on attachment 330666 [details]
Fix API tests on macOS

Thanks for the review!
Comment 5 WebKit Commit Bot 2018-01-08 14:19:18 PST
Comment on attachment 330666 [details]
Fix API tests on macOS

Clearing flags on attachment: 330666

Committed r226539: <https://trac.webkit.org/changeset/226539>
Comment 6 WebKit Commit Bot 2018-01-08 14:19:20 PST
All reviewed patches have been landed.  Closing bug.