[iOS] Tapping any link crashes in WebCore::EventHandler::mouseMoved()
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Jan 2014 22:32:19 +0000 (22:32 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Jan 2014 22:32:19 +0000 (22:32 +0000)
(also crashes when scrolling certain sites)
https://bugs.webkit.org/show_bug.cgi?id=126401
<rdar://problem/15739334>

Reviewed by Tim Horton.

* page/ios/EventHandlerIOS.mm:
(WebCore::currentEventSlot): Make the shared variable have static-storage duration.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161227 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/ios/EventHandlerIOS.mm

index 6cbf418..9c17e81 100644 (file)
@@ -1,3 +1,15 @@
+2014-01-02  Daniel Bates  <dabates@apple.com>
+
+        [iOS] Tapping any link crashes in WebCore::EventHandler::mouseMoved()
+        (also crashes when scrolling certain sites)
+        https://bugs.webkit.org/show_bug.cgi?id=126401
+        <rdar://problem/15739334>
+
+        Reviewed by Tim Horton.
+
+        * page/ios/EventHandlerIOS.mm:
+        (WebCore::currentEventSlot): Make the shared variable have static-storage duration.
+
 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
 
         Merge didMoveOnscreen / page visibility to isVisible
index 1c37a34..5ac76fd 100644 (file)
@@ -53,7 +53,7 @@ namespace WebCore {
 
 static RetainPtr<WebEvent>& currentEventSlot()
 {
-    NeverDestroyed<RetainPtr<WebEvent>> event;
+    static NeverDestroyed<RetainPtr<WebEvent>> event;
     return event;
 }