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>
Severity: Normal CC: bdakin, commit-queue, rniwa, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch none

Description Wenson Hsieh 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.
Comment 1 Wenson Hsieh 2017-06-26 19:09:21 PDT
Comment 2 Wenson Hsieh 2017-06-26 19:13:44 PDT
Created attachment 313886 [details]
Comment 3 WebKit Commit Bot 2017-06-27 07:49:24 PDT
Comment on attachment 313886 [details]

Clearing flags on attachment: 313886

Committed r218834: <http://trac.webkit.org/changeset/218834>
Comment 4 WebKit Commit Bot 2017-06-27 07:49:25 PDT
All reviewed patches have been landed.  Closing bug.