Changeset 234067 in webkit


Ignore:
Timestamp:
Jul 20, 2018 2:28:02 PM (6 years ago)
Author:
timothy_horton@apple.com
Message:

Occasional crash under -[WKFormInputSession setSuggestions:]
https://bugs.webkit.org/show_bug.cgi?id=187869
<rdar://problem/41357063>

Reviewed by Dean Jackson.

  • UIProcess/ios/WKContentViewInteraction.h:
  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView inputDelegate]):
Make inputDelegate weak.

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r234054 r234067  
     12018-07-20  Tim Horton  <timothy_horton@apple.com>
     2
     3        Occasional crash under -[WKFormInputSession setSuggestions:]
     4        https://bugs.webkit.org/show_bug.cgi?id=187869
     5        <rdar://problem/41357063>
     6
     7        Reviewed by Dean Jackson.
     8
     9        * UIProcess/ios/WKContentViewInteraction.h:
     10        * UIProcess/ios/WKContentViewInteraction.mm:
     11        (-[WKContentView inputDelegate]):
     12        Make inputDelegate weak.
     13
    1142018-07-20  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h

    r233546 r234067  
    4545#import <wtf/Forward.h>
    4646#import <wtf/Vector.h>
     47#import <wtf/WeakObjCPtr.h>
    4748#import <wtf/text/WTFString.h>
    4849
     
    183184    std::unique_ptr<WebKit::SmartMagnificationController> _smartMagnificationController;
    184185
    185     id <UITextInputDelegate> _inputDelegate;
     186    WeakObjCPtr<id <UITextInputDelegate>> _inputDelegate;
    186187
    187188    uint64_t _latestTapID;
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r233749 r234067  
    900900- (id <UITextInputDelegate>)inputDelegate
    901901{
    902     return _inputDelegate;
     902    return _inputDelegate.getAutoreleased();
    903903}
    904904
Note: See TracChangeset for help on using the changeset viewer.