Bug 173856

Summary: [iOS DnD] [WK2] WKWebView does not handle drag sessions that exit and re-enter
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: WebKit2Assignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, commit-queue, rniwa, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Wenson Hsieh
Reported 2017-06-26 17:53:08 PDT
Upon exiting a WKContentView, the dropSession is not cleared out. If the drag session re-enters the WKWebView, a *different* UIDropSession is sent to the drop delegate, causing us to bail in -dropInteraction:canHandleSession: and not handle the drag. To fix this, we need to clear out dropSession when the drag session exits the view.
Attachments
Patch (1.98 KB, patch)
2017-06-26 19:13 PDT, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2017-06-26 19:09:21 PDT
Wenson Hsieh
Comment 2 2017-06-26 19:13:44 PDT
WebKit Commit Bot
Comment 3 2017-06-27 07:49:24 PDT
Comment on attachment 313886 [details] Patch Clearing flags on attachment: 313886 Committed r218834: <http://trac.webkit.org/changeset/218834>
WebKit Commit Bot
Comment 4 2017-06-27 07:49:25 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.