Title: [125389] trunk/Source/WebCore
Revision
125389
Author
[email protected]
Date
2012-08-12 21:36:01 -0700 (Sun, 12 Aug 2012)

Log Message

<rdar://problem/11442485> off-screen or inactive pages can change the mouse pointer

Reviewed by Adele Peterson.

* page/EventHandler.cpp:
(WebCore::EventHandler::fakeMouseMoveEventTimerFired): Added a check that the page is
on-screen and active before dispatching the fake mouse event.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (125388 => 125389)


--- trunk/Source/WebCore/ChangeLog	2012-08-13 04:35:39 UTC (rev 125388)
+++ trunk/Source/WebCore/ChangeLog	2012-08-13 04:36:01 UTC (rev 125389)
@@ -1,3 +1,13 @@
+2012-08-12  Dan Bernstein  <[email protected]>
+
+        <rdar://problem/11442485> off-screen or inactive pages can change the mouse pointer
+
+        Reviewed by Adele Peterson.
+
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::fakeMouseMoveEventTimerFired): Added a check that the page is
+        on-screen and active before dispatching the fake mouse event.
+
 2012-08-12  Jonathan Dong  <[email protected]>
 
         [BlackBerry] use MediaPlayer::userAgent() in MediaPlayerPrivateBlackBerry to avoid layering violation

Modified: trunk/Source/WebCore/page/EventHandler.cpp (125388 => 125389)


--- trunk/Source/WebCore/page/EventHandler.cpp	2012-08-13 04:35:39 UTC (rev 125388)
+++ trunk/Source/WebCore/page/EventHandler.cpp	2012-08-13 04:36:01 UTC (rev 125389)
@@ -2742,6 +2742,9 @@
     if (!view)
         return;
 
+    if (!m_frame->page() || !m_frame->page()->isOnscreen() || !m_frame->page()->focusController()->isActive())
+        return;
+
     bool shiftKey;
     bool ctrlKey;
     bool altKey;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to