Title: [150273] trunk/Source/WebKit/mac
Revision
150273
Author
ander...@apple.com
Date
2013-05-17 10:40:17 -0700 (Fri, 17 May 2013)

Log Message

Accessing null function pointers is bad.

* WebCoreSupport/WebFrameLoaderClient.mm:

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (150272 => 150273)


--- trunk/Source/WebKit/mac/ChangeLog	2013-05-17 17:34:24 UTC (rev 150272)
+++ trunk/Source/WebKit/mac/ChangeLog	2013-05-17 17:40:17 UTC (rev 150273)
@@ -1,5 +1,11 @@
 2013-05-17  Anders Carlsson  <ander...@apple.com>
 
+        Accessing null function pointers is bad.
+
+        * WebCoreSupport/WebFrameLoaderClient.mm:
+
+2013-05-17  Anders Carlsson  <ander...@apple.com>
+
         Make kit(Frame*) more robust
         https://bugs.webkit.org/show_bug.cgi?id=116324
 

Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm (150272 => 150273)


--- trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm	2013-05-17 17:34:24 UTC (rev 150272)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm	2013-05-17 17:40:17 UTC (rev 150273)
@@ -2037,13 +2037,11 @@
     if (!frame)
         return;
 
-#if !ASSERT_DISABLED
     FramePolicyFunction policyFunction = _policyFunction;
-#endif
     _policyFunction = nullptr;
 
     ASSERT(policyFunction);
-    (frame->loader()->policyChecker()->*_policyFunction)(action);
+    (frame->loader()->policyChecker()->*policyFunction)(action);
 }
 
 - (void)ignore
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to