[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.21-584-g1e41756

ap at apple.com ap at apple.com
Fri Feb 26 22:16:09 UTC 2010


The following commit has been merged in the webkit-1.1 branch:
commit a70bf5f69c03428b5741019cfe19403611a49b5d
Author: ap at apple.com <ap at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Feb 9 20:05:47 2010 +0000

            Reviewed by Anders Carlsson.
    
            https://bugs.webkit.org/show_bug.cgi?id=34771
            A stray mouse moved event is sent to plug-ins after mouse exit
    
            * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): A mouseout
            DOM event is dispatched while handling NSMouseMoved - but we shouldn't be sending a
            mouse moved event to plug-ins at this point.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54562 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/mac/ChangeLog b/WebKit/mac/ChangeLog
index 268b08b..f7dcf2a 100644
--- a/WebKit/mac/ChangeLog
+++ b/WebKit/mac/ChangeLog
@@ -1,3 +1,14 @@
+2010-02-09  Alexey Proskuryakov  <ap at apple.com>
+
+        Reviewed by Anders Carlsson.
+
+        https://bugs.webkit.org/show_bug.cgi?id=34771
+        A stray mouse moved event is sent to plug-ins after mouse exit
+
+        * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): A mouseout
+        DOM event is dispatched while handling NSMouseMoved - but we shouldn't be sending a
+        mouse moved event to plug-ins at this point.
+
 2010-02-09  Shinichiro Hamaji  <hamaji at chromium.org>
 
         Reviewed by Darin Adler.
diff --git a/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm b/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
index 5934d7c..eaec807 100644
--- a/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
+++ b/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
@@ -1484,15 +1484,15 @@ public:
     {
     }
     
-    virtual void handleEvent(Event*)
+    virtual void handleEvent(Event* event)
     {
         Frame* frame = Frame::frameForWidget(this);
         if (!frame)
             return;
         
-        NSEvent* event = frame->eventHandler()->currentNSEvent();
-        if ([event type] == NSMouseMoved)
-            [(WebBaseNetscapePluginView *)platformWidget() handleMouseMoved:event];
+        NSEvent* currentNSEvent = frame->eventHandler()->currentNSEvent();
+        if (event->type() == eventNames().mousemoveEvent)
+            [(WebBaseNetscapePluginView *)platformWidget() handleMouseMoved:currentNSEvent];
     }
     
 };

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list