⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179809 in webkit


Ignore:
Timestamp:
Feb 8, 2015, 4:30:46 PM (12 years ago)
Author:
timothy_horton@apple.com
Message:

Null deref in _clearImmediateActionState when closing a view with a DataDetectors popover open
https://bugs.webkit.org/show_bug.cgi?id=141377
<rdar://problem/19711203>

Reviewed by Darin Adler.

  • UIProcess/mac/WKImmediateActionController.mm:

(-[WKImmediateActionController _clearImmediateActionState]):
We can have already detached the page when DataDetectors calls us back
in interactionStoppedHandler. While we have kept a strong reference to the
page in the interactionStoppedHandler block, _page is nulled out.
It's OK to avoid doing this work, in any case, because closing a page
tears down the TextIndicator anyway.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r179804 r179809  
     12015-02-08  Timothy Horton  <timothy_horton@apple.com>
     2
     3        Null deref in _clearImmediateActionState when closing a view with a DataDetectors popover open
     4        https://bugs.webkit.org/show_bug.cgi?id=141377
     5        <rdar://problem/19711203>
     6
     7        Reviewed by Darin Adler.
     8
     9        * UIProcess/mac/WKImmediateActionController.mm:
     10        (-[WKImmediateActionController _clearImmediateActionState]):
     11        We can have already detached the page when DataDetectors calls us back
     12        in interactionStoppedHandler. While we have kept a strong reference to the
     13        page in the interactionStoppedHandler block, _page is nulled out.
     14        It's OK to avoid doing this work, in any case, because closing a page
     15        tears down the TextIndicator anyway.
     16
    1172015-02-08  Chris Dumez  <cdumez@apple.com>
    218
  • trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm

    r179195 r179809  
    116116- (void)_clearImmediateActionState
    117117{
    118     _page->clearTextIndicator();
     118    if (_page)
     119        _page->clearTextIndicator();
    119120
    120121    if (_currentActionContext && _hasActivatedActionContext) {
Note: See TracChangeset for help on using the changeset viewer.