Changeset 167537 in webkit


Ignore:
Timestamp:
Apr 19, 2014 10:46:07 AM (10 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Crash in -[WKWebProcessPlugInHitTestResult nodeHandle] when nodeHandle() is null
https://bugs.webkit.org/show_bug.cgi?id=131888

Reviewed by Jon Honeycutt.

  • WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm:

(-[WKWebProcessPlugInHitTestResult nodeHandle]): Added a null check.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167536 r167537  
     12014-04-19  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Crash in -[WKWebProcessPlugInHitTestResult nodeHandle] when nodeHandle() is null
     4        https://bugs.webkit.org/show_bug.cgi?id=131888
     5
     6        Reviewed by Jon Honeycutt.
     7
     8        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm:
     9        (-[WKWebProcessPlugInHitTestResult nodeHandle]): Added a null check.
     10
    1112014-04-19  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm

    r160530 r167537  
    4646{
    4747    RefPtr<InjectedBundleNodeHandle> nodeHandle = _hitTestResult->nodeHandle();
    48     return [wrapper(*nodeHandle.release().leakRef()) autorelease];
     48    return nodeHandle ? [wrapper(*nodeHandle.release().leakRef()) autorelease] : nil;
    4949}
    5050
Note: See TracChangeset for help on using the changeset viewer.