Title: [202884] trunk/Source/WebKit2
Revision
202884
Author
[email protected]
Date
2016-07-06 16:37:58 -0700 (Wed, 06 Jul 2016)

Log Message

[iOS] Text suggestions should be cleared when form input session is invalidated
https://bugs.webkit.org/show_bug.cgi?id=159477

Patch by Chelsea Pugh <[email protected]> on 2016-07-06
Reviewed by Dan Bernstein.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKFormInputSession invalidate]): Set input delegate's suggestions to nil when a form input session is
invalidated. This will set the keyboard QuickType suggestions back to their default values.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (202883 => 202884)


--- trunk/Source/WebKit2/ChangeLog	2016-07-06 23:13:29 UTC (rev 202883)
+++ trunk/Source/WebKit2/ChangeLog	2016-07-06 23:37:58 UTC (rev 202884)
@@ -1,3 +1,14 @@
+2016-07-06  Chelsea Pugh  <[email protected]>
+
+        [iOS] Text suggestions should be cleared when form input session is invalidated        
+        https://bugs.webkit.org/show_bug.cgi?id=159477
+
+        Reviewed by Dan Bernstein.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKFormInputSession invalidate]): Set input delegate's suggestions to nil when a form input session is
+        invalidated. This will set the keyboard QuickType suggestions back to their default values.
+
 2016-07-06  Alex Christensen  <[email protected]>
 
         Call continueCanAuthenticateAgainstProtectionSpace when cancelling loads waiting for the callback

Modified: trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm (202883 => 202884)


--- trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm	2016-07-06 23:13:29 UTC (rev 202883)
+++ trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm	2016-07-06 23:37:58 UTC (rev 202884)
@@ -368,6 +368,10 @@
 
 - (void)invalidate
 {
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000
+    id <UITextInputSuggestionDelegate> suggestionDelegate = (id <UITextInputSuggestionDelegate>)_contentView.inputDelegate;
+    [suggestionDelegate setSuggestions:nil];
+#endif
     _contentView = nil;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to