Implement action menus for tel: URLs
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Dec 2014 02:28:57 +0000 (02:28 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Dec 2014 02:28:57 +0000 (02:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=139240
<rdar://problem/19115662>

Reviewed by Anders Carlsson.

* WebView/WebActionMenuController.mm:
(-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
Make sure to use the newly created currentActionContext.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176775 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebActionMenuController.mm

index cbc058cd7fefddb409a7194710a063e0b0630d42..2ffa0e397020cda772ab0247ee8b60da44aa7152 100644 (file)
@@ -1,3 +1,15 @@
+2014-12-03  Timothy Horton  <timothy_horton@apple.com>
+
+        Implement action menus for tel: URLs
+        https://bugs.webkit.org/show_bug.cgi?id=139240
+        <rdar://problem/19115662>
+
+        Reviewed by Anders Carlsson.
+
+        * WebView/WebActionMenuController.mm:
+        (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
+        Make sure to use the newly created currentActionContext.
+
 2014-12-03  Beth Dakin  <bdakin@apple.com>
 
         <input> elements get whitespace action menu instead of editable text menu
index 5cbf3de28adf8c0cf1b832e083002116ae216814..6be702c0dc5072219d953fb0f54a26c1adea3f12 100644 (file)
@@ -302,7 +302,7 @@ static IntRect elementBoundingBoxInWindowCoordinatesFromNode(Node* node)
 
     [actionContext setHighlightFrame:elementBoundingBoxInWindowCoordinatesFromNode(node)];
 
-    return [[getDDActionsManagerClass() sharedManager] menuItemsForTargetURL:_hitTestResult.absoluteLinkURL() actionContext:actionContext.get()];
+    return [[getDDActionsManagerClass() sharedManager] menuItemsForTargetURL:_hitTestResult.absoluteLinkURL() actionContext:_currentActionContext.get()];
 }
 
 #pragma mark Image actions