Changeset 176969 in webkit


Ignore:
Timestamp:
Dec 8, 2014 1:53:54 PM (9 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/18046692> [iOS] Safari crashes at -[_NSUndoStack popAndInvoke] when trying to undo typing on closed tab
https://bugs.webkit.org/show_bug.cgi?id=139408

Reviewed by Anders Carlsson.

  • UIProcess/ios/WKContentView.mm:

(-[WKContentView undoManager]): Override to initialize if necessary and return a unique undo
manager for this instance. This ensures that undoable operations for this webview don’t get
put in other undo managers, and matches UIWebView behavior.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r176964 r176969  
     12014-12-08  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/18046692> [iOS] Safari crashes at -[_NSUndoStack popAndInvoke] when trying to undo typing on closed tab
     4        https://bugs.webkit.org/show_bug.cgi?id=139408
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * UIProcess/ios/WKContentView.mm:
     9        (-[WKContentView undoManager]): Override to initialize if necessary and return a unique undo
     10        manager for this instance. This ensures that undoable operations for this webview don’t get
     11        put in other undo managers, and matches UIWebView behavior.
     12
    1132014-12-08  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm

    r176204 r176969  
    179179
    180180    HistoricalVelocityData _historicalKinematicData;
     181
     182    RetainPtr<NSUndoManager> _undoManager;
    181183}
    182184
     
    376378}
    377379
     380- (NSUndoManager *)undoManager
     381{
     382    if (!_undoManager)
     383        _undoManager = adoptNS([[NSUndoManager alloc] init]);
     384
     385    return _undoManager.get();
     386}
     387
    378388#pragma mark Internal
    379389
Note: See TracChangeset for help on using the changeset viewer.