Title: [201351] trunk/Source/WebKit2
Revision
201351
Author
commit-qu...@webkit.org
Date
2016-05-24 14:12:33 -0700 (Tue, 24 May 2016)

Log Message

Fix null pointer dereferencing in WebViewImpl::inputContext
https://bugs.webkit.org/show_bug.cgi?id=158026
rdar://problem/25994093

Patch by Alex Christensen <achristen...@webkit.org> on 2016-05-24
Reviewed by Tim Horton.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView inputContext]):
this was null sometimes in WebViewImpl::inputContext.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (201350 => 201351)


--- trunk/Source/WebKit2/ChangeLog	2016-05-24 21:03:51 UTC (rev 201350)
+++ trunk/Source/WebKit2/ChangeLog	2016-05-24 21:12:33 UTC (rev 201351)
@@ -1,3 +1,15 @@
+2016-05-24  Alex Christensen  <achristen...@webkit.org>
+
+        Fix null pointer dereferencing in WebViewImpl::inputContext
+        https://bugs.webkit.org/show_bug.cgi?id=158026
+        rdar://problem/25994093
+
+        Reviewed by Tim Horton.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView inputContext]):
+        this was null sometimes in WebViewImpl::inputContext.
+
 2016-05-24  Antoine Quint  <grao...@apple.com>
 
         Elements with backdrop-filter cannot be clipped with clip-path or mask

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (201350 => 201351)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm	2016-05-24 21:03:51 UTC (rev 201350)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm	2016-05-24 21:12:33 UTC (rev 201351)
@@ -2648,6 +2648,8 @@
 
 - (NSTextInputContext *)inputContext
 {
+    if (!_impl)
+        return nil;
     return _impl->inputContext();
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to