Changeset 193483 in webkit


Ignore:
Timestamp:
Dec 4, 2015, 3:22:29 PM (10 years ago)
Author:
Beth Dakin
Message:

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

Reviewed by Sam Weinig.

Cast this correctly.

  • 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

    r193481 r193483  
     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        Reviewed by Sam Weinig.
     8
     9        Cast this correctly.
     10        * UIProcess/API/Cocoa/WKWebView.mm:
     11        (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
     12
    1132015-12-04  Gavin Barraclough  <barraclough@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r193481 r193483  
    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:(id)userData];
     2774    return [self _immediateActionAnimationControllerForHitTestResult:wrapper(*hitTestResult) withType:(_WKImmediateActionType)type userData:static_cast<id<NSSecureCoding>>(userData->wrapper())];
    27752775}
    27762776
Note: See TracChangeset for help on using the changeset viewer.