Title: [176148] trunk/Source/WebKit2
Revision
176148
Author
timothy_hor...@apple.com
Date
2014-11-14 16:31:51 -0800 (Fri, 14 Nov 2014)

Log Message

Frequent crashes under actionContextForResultAtPoint
https://bugs.webkit.org/show_bug.cgi?id=138761
<rdar://problem/18990684>

Reviewed by Dean Jackson.

* WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
(PageOverlayClientImpl::actionContextForResultAtPoint):
Initialize apiRange.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (176147 => 176148)


--- trunk/Source/WebKit2/ChangeLog	2014-11-15 00:26:56 UTC (rev 176147)
+++ trunk/Source/WebKit2/ChangeLog	2014-11-15 00:31:51 UTC (rev 176148)
@@ -1,3 +1,15 @@
+2014-11-14  Tim Horton  <timothy_hor...@apple.com>
+
+        Frequent crashes under actionContextForResultAtPoint
+        https://bugs.webkit.org/show_bug.cgi?id=138761
+        <rdar://problem/18990684>
+
+        Reviewed by Dean Jackson.
+
+        * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
+        (PageOverlayClientImpl::actionContextForResultAtPoint):
+        Initialize apiRange.
+
 2014-11-14  Daniel Bates  <daba...@apple.com>
 
         [iOS] CoreGraphics SPI not available in public SDK

Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp (176147 => 176148)


--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp	2014-11-15 00:26:56 UTC (rev 176147)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp	2014-11-15 00:31:51 UTC (rev 176148)
@@ -139,7 +139,7 @@
         if (!m_client.actionContextForResultAtPoint)
             return nil;
 
-        WKBundleRangeHandleRef apiRange;
+        WKBundleRangeHandleRef apiRange = nullptr;
         DDActionContext *actionContext = (DDActionContext *)m_client.actionContextForResultAtPoint(toAPI(&pageOverlay), WKPointMake(location.x(), location.y()), &apiRange, m_client.base.clientInfo);
 
         if (apiRange)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to