Title: [218661] tags/Safari-604.1.27/Source/WebKit2
- Revision
- 218661
- Author
- [email protected]
- Date
- 2017-06-21 15:55:34 -0700 (Wed, 21 Jun 2017)
Log Message
Cherry-pick r218656. rdar://problem/32905541
Modified Paths
Diff
Modified: tags/Safari-604.1.27/Source/WebKit2/ChangeLog (218660 => 218661)
--- tags/Safari-604.1.27/Source/WebKit2/ChangeLog 2017-06-21 22:53:14 UTC (rev 218660)
+++ tags/Safari-604.1.27/Source/WebKit2/ChangeLog 2017-06-21 22:55:34 UTC (rev 218661)
@@ -1,3 +1,25 @@
+2017-06-21 Matthew Hanson <[email protected]>
+
+ Cherry-pick r218656. rdar://problem/32905541
+
+ 2017-06-21 Tim Horton <[email protected]>
+
+ REGRESSION (r218606): 3D Touch action menu for links is missing items
+ https://bugs.webkit.org/show_bug.cgi?id=173669
+ <rdar://problem/32905541>
+
+ Reviewed by Wenson Hsieh.
+
+ * UIProcess/ios/WKActionSheetAssistant.mm:
+ (-[WKActionSheetAssistant defaultActionsForLinkSheet:]):
+ defaultActionsForLinkSheet is used outside the usual action sheet flow,
+ by 3D Touch code. Therefore, we're not guaranteed to have a _positionInformation.
+ We don't need one, though -- we can get the URL from the passed-in
+ _WKActivatedElementInfo, exactly like defaultActionsForImageSheet already did.
+
+ (-[WKActionSheetAssistant defaultActionsForImageSheet:]):
+ Remove the delegate null check, which isn't used after r218606.
+
2017-06-21 Miguel Gomez <[email protected]>
[GTK][WAYLAND] Create WaylandCompositorDisplay unconditionally when initializing the WebProcess
Modified: tags/Safari-604.1.27/Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.mm (218660 => 218661)
--- tags/Safari-604.1.27/Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.mm 2017-06-21 22:53:14 UTC (rev 218660)
+++ tags/Safari-604.1.27/Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.mm 2017-06-21 22:55:34 UTC (rev 218661)
@@ -441,14 +441,7 @@
- (RetainPtr<NSArray>)defaultActionsForLinkSheet:(_WKActivatedElementInfo *)elementInfo
{
- auto delegate = _delegate.get();
- if (!delegate)
- return nil;
-
- if (!_positionInformation)
- return nil;
-
- NSURL *targetURL = [NSURL URLWithString:_positionInformation->url];
+ NSURL *targetURL = [elementInfo URL];
if (!targetURL)
return nil;
@@ -469,10 +462,6 @@
- (RetainPtr<NSArray>)defaultActionsForImageSheet:(_WKActivatedElementInfo *)elementInfo
{
- auto delegate = _delegate.get();
- if (!delegate)
- return nil;
-
NSURL *targetURL = [elementInfo URL];
auto defaultActions = adoptNS([[NSMutableArray alloc] init]);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes