Invoke the context menu delegate callback right before we return the menu
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
index 0e0fe17faecae8b76928e9a05df1bda716b69b0c..319162d9d0ed652b4a44eafb17921146f16ee4ec 100644 (file)
@@ -1,3 +1,26 @@
+2015-10-23  Anders Carlsson  <andersca@apple.com>
+
+        Invoke the context menu delegate callback right before we return the menu
+        https://bugs.webkit.org/show_bug.cgi?id=150521
+
+        Reviewed by Tim Horton.
+
+        Move the getCustomMenuFromDefaultItems to WebHTMLView wholesale. This will allow us to get rid of the ContextMenuClient function from WebCore.
+
+        * WebCoreSupport/WebContextMenuClient.mm:
+        (WebContextMenuClient::getCustomMenuFromDefaultItems):
+        (isPreVersion3Client): Deleted.
+        (isPreInspectElementTagClient): Deleted.
+        (fixMenusToSendToOldClients): Deleted.
+        (fixMenusReceivedFromOldClients): Deleted.
+        * WebView/WebHTMLView.mm:
+        (isPreVersion3Client):
+        (isPreInspectElementTagClient):
+        (fixMenusToSendToOldClients):
+        (fixMenusReceivedFromOldClients):
+        (customMenuFromDefaultItems):
+        (-[WebHTMLView menuForEvent:]):
+
 2015-10-23  Anders Carlsson  <andersca@apple.com>
 
         More context menu simplification