Changeset 193489 in webkit


Ignore:
Timestamp:
Dec 4, 2015, 4:53:03 PM (10 years ago)
Author:
Beth Dakin
Message:

Crash in clients using userData in
_immediateActionAnimationControllerForHitTestResult
https://bugs.webkit.org/show_bug.cgi?id=151887

Rubber-stamped by Anders Carlsson.

Follow-up fix to handle null userData.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r193483 r193489  
     12015-12-04  Beth Dakin  <bdakin@apple.com>
     2
     3        Crash in clients using userData in
     4        _immediateActionAnimationControllerForHitTestResult
     5        https://bugs.webkit.org/show_bug.cgi?id=151887
     6
     7        Rubber-stamped by Anders Carlsson.
     8
     9        Follow-up fix to handle null userData.
     10        * UIProcess/API/Cocoa/WKWebView.mm:
     11        (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
     12
    1132015-12-04  Beth Dakin  <bdakin@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r193483 r193489  
    27722772- (id)_web_immediateActionAnimationControllerForHitTestResultInternal:(API::HitTestResult*)hitTestResult withType:(uint32_t)type userData:(API::Object*)userData
    27732773{
    2774     return [self _immediateActionAnimationControllerForHitTestResult:wrapper(*hitTestResult) withType:(_WKImmediateActionType)type userData:static_cast<id<NSSecureCoding>>(userData->wrapper())];
     2774    id<NSSecureCoding> data = userData ? static_cast<id<NSSecureCoding>>(userData->wrapper()) : nil;
     2775    return [self _immediateActionAnimationControllerForHitTestResult:wrapper(*hitTestResult) withType:(_WKImmediateActionType)type userData:data];
    27752776}
    27762777
Note: See TracChangeset for help on using the changeset viewer.