Changeset 202884 in webkit


Ignore:
Timestamp:
Jul 6, 2016 4:37:58 PM (8 years ago)
Author:
commit-queue@webkit.org
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 <cpugh@apple.com> 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.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r202882 r202884  
     12016-07-06  Chelsea Pugh  <cpugh@apple.com>
     2
     3        [iOS] Text suggestions should be cleared when form input session is invalidated       
     4        https://bugs.webkit.org/show_bug.cgi?id=159477
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * UIProcess/ios/WKContentViewInteraction.mm:
     9        (-[WKFormInputSession invalidate]): Set input delegate's suggestions to nil when a form input session is
     10        invalidated. This will set the keyboard QuickType suggestions back to their default values.
     11
    1122016-07-06  Alex Christensen  <achristensen@webkit.org>
    213
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r202868 r202884  
    369369- (void)invalidate
    370370{
     371#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000
     372    id <UITextInputSuggestionDelegate> suggestionDelegate = (id <UITextInputSuggestionDelegate>)_contentView.inputDelegate;
     373    [suggestionDelegate setSuggestions:nil];
     374#endif
    371375    _contentView = nil;
    372376}
Note: See TracChangeset for help on using the changeset viewer.