Bug 165785

Summary: [Cocoa] Implement -shouldInsertText: on WKWebProcessPlugInEditingDelegate
Product: WebKit Reporter: Andy Estes <aestes>
Component: New BugsAssignee: Andy Estes <aestes>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin, mitz, simon.fraser, thorton
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Andy Estes 2016-12-12 17:11:09 PST
[Cocoa] Implement -shouldInsertText: on WKWebProcessPlugInEditingDelegate
Comment 1 Andy Estes 2016-12-12 17:37:03 PST
Created attachment 296973 [details]
Patch
Comment 2 Andy Estes 2016-12-12 17:37:53 PST
rdar://problem/26929398
Comment 3 WebKit Commit Bot 2016-12-12 17:39:17 PST
Attachment 296973 [details] did not pass style-queue:


ERROR: Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:589:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:640:  Missing spaces around :  [whitespace/init] [4]
Total errors found: 2 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Andy Estes 2016-12-12 17:48:19 PST
Created attachment 296974 [details]
Patch
Comment 5 WebKit Commit Bot 2016-12-12 17:50:08 PST
Attachment 296974 [details] did not pass style-queue:


ERROR: Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:590:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:641:  Missing spaces around :  [whitespace/init] [4]
Total errors found: 2 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Darin Adler 2016-12-12 20:22:04 PST
Comment on attachment 296974 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=296974&action=review

> Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:605
> +            WKEditorInsertAction wkAction;
> +            switch (action) {
> +            case EditorInsertActionTyped:
> +                wkAction = WKEditorInsertActionTyped;
> +                break;
> +            case EditorInsertActionPasted:
> +                wkAction = WKEditorInsertActionPasted;
> +                break;
> +            case EditorInsertActionDropped:
> +                wkAction = WKEditorInsertActionDropped;
> +                break;
> +            }

Would like this mapping to be a separate helper function.
Comment 7 Andy Estes 2016-12-13 11:30:49 PST
Created attachment 297027 [details]
Patch
Comment 8 WebKit Commit Bot 2016-12-13 14:09:23 PST
Comment on attachment 297027 [details]
Patch

Clearing flags on attachment: 297027

Committed r209775: <http://trac.webkit.org/changeset/209775>
Comment 9 WebKit Commit Bot 2016-12-13 14:09:28 PST
All reviewed patches have been landed.  Closing bug.