Title: [214855] trunk/Tools
- Revision
- 214855
- Author
- simon.fra...@apple.com
- Date
- 2017-04-03 17:10:33 -0700 (Mon, 03 Apr 2017)
Log Message
Allow MiniBrowser windows to receive local file drags again
https://bugs.webkit.org/show_bug.cgi?id=170422
Reviewed by Wenson Hsieh.
Adopt the new UIDelegate SPI to allow drops.
* MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController _webView:dragDestinationActionMaskForDraggingInfo:]):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (214854 => 214855)
--- trunk/Tools/ChangeLog 2017-04-03 23:40:10 UTC (rev 214854)
+++ trunk/Tools/ChangeLog 2017-04-04 00:10:33 UTC (rev 214855)
@@ -1,3 +1,15 @@
+2017-04-03 Simon Fraser <simon.fra...@apple.com>
+
+ Allow MiniBrowser windows to receive local file drags again
+ https://bugs.webkit.org/show_bug.cgi?id=170422
+
+ Reviewed by Wenson Hsieh.
+
+ Adopt the new UIDelegate SPI to allow drops.
+
+ * MiniBrowser/mac/WK2BrowserWindowController.m:
+ (-[WK2BrowserWindowController _webView:dragDestinationActionMaskForDraggingInfo:]):
+
2017-04-03 Carlos Alberto Lopez Perez <clo...@igalia.com>
[GTK][JHBuild] Fetch libvpx from a release tarball instead of git
Modified: trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m (214854 => 214855)
--- trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m 2017-04-03 23:40:10 UTC (rev 214854)
+++ trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m 2017-04-04 00:10:33 UTC (rev 214855)
@@ -34,6 +34,7 @@
#import <WebKit/WKNavigationDelegate.h>
#import <WebKit/WKPreferencesPrivate.h>
#import <WebKit/WKUIDelegate.h>
+#import <WebKit/WKUIDelegatePrivate.h>
#import <WebKit/WKWebViewConfigurationPrivate.h>
#import <WebKit/WKWebViewPrivate.h>
#import <WebKit/WKWebsiteDataStorePrivate.h>
@@ -514,6 +515,11 @@
}];
}
+- (WKDragDestinationAction)_webView:(WKWebView *)webView dragDestinationActionMaskForDraggingInfo:(id)draggingInfo
+{
+ return WKDragDestinationActionAny;
+}
+
- (void)updateTextFieldFromURL:(NSURL *)URL
{
if (!URL)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes