Bug 173856 - [iOS DnD] [WK2] WKWebView does not handle drag sessions that exit and re-enter
Summary: [iOS DnD] [WK2] WKWebView does not handle drag sessions that exit and re-enter
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
Keywords: InRadar
Depends on:
Reported: 2017-06-26 17:53 PDT by Wenson Hsieh
Modified: 2017-06-27 07:49 PDT (History)
5 users (show)

See Also:

Patch (1.98 KB, patch)
2017-06-26 19:13 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.