Copy and paste action menu items don't work on the Mozilla Midas demo in WebKit1
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Dec 2014 06:32:58 +0000 (06:32 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Dec 2014 06:32:58 +0000 (06:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=139529
<rdar://problem/19213620>

Reviewed by Beth Dakin.

* WebView/WebActionMenuController.mm:
(-[WebActionMenuController _copySelection:]):
(-[WebActionMenuController _paste:]):
Use the copy: and paste: methods on WebView so that we traverse subviews
when trying to respond, otherwise these actions don't work in subframes.

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

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

index 1531e90..6df0f0f 100644 (file)
@@ -1,3 +1,17 @@
+2014-12-10  Timothy Horton  <timothy_horton@apple.com>
+
+        Copy and paste action menu items don't work on the Mozilla Midas demo in WebKit1
+        https://bugs.webkit.org/show_bug.cgi?id=139529
+        <rdar://problem/19213620>
+
+        Reviewed by Beth Dakin.
+
+        * WebView/WebActionMenuController.mm:
+        (-[WebActionMenuController _copySelection:]):
+        (-[WebActionMenuController _paste:]):
+        Use the copy: and paste: methods on WebView so that we traverse subviews
+        when trying to respond, otherwise these actions don't work in subframes.
+
 2014-12-10  Beth Dakin  <bdakin@apple.com>
 
         WK1: Add initial support for immediate actions
index 1032e7c..49b33c6 100644 (file)
@@ -589,7 +589,7 @@ static NSString *pathToPhotoOnDisk(NSString *suggestedFilename)
 
 - (void)_copySelection:(id)sender
 {
-    [_webView _executeCoreCommandByName:@"copy" value:nil];
+    [_webView copy:self];
 }
 
 - (void)_lookupText:(id)sender
@@ -604,7 +604,7 @@ static NSString *pathToPhotoOnDisk(NSString *suggestedFilename)
 
 - (void)_paste:(id)sender
 {
-    [_webView _executeCoreCommandByName:@"paste" value:nil];
+    [_webView paste:self];
 }
 
 - (void)_selectLookupText