[tor-commits] [tor-browser/tor-browser-38.1.0esr-5.0-1] fixup! Bug 4755: Return client window coordinates for mouse event screenX/Y

mikeperry at torproject.org mikeperry at torproject.org
Thu Aug 6 21:37:28 UTC 2015


commit 5282caeb91c9458ddb26edc2684a8b76ee53eb42
Author: Kathy Brade <brade at pearlcrescent.com>
Date:   Wed Aug 5 10:29:19 2015 -0400

    fixup! Bug 4755: Return client window coordinates for mouse event screenX/Y
    
    Use ThreadsafeIsCallerChrome() instead of IsCallerChrome().
---
 dom/events/Event.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dom/events/Event.cpp b/dom/events/Event.cpp
index 066fc0b..c92d2c9 100644
--- a/dom/events/Event.cpp
+++ b/dom/events/Event.cpp
@@ -882,7 +882,7 @@ Event::GetScreenCoords(nsPresContext* aPresContext,
                        WidgetEvent* aEvent,
                        LayoutDeviceIntPoint aPoint)
 {
-  if (!nsContentUtils::IsCallerChrome()) {
+  if (!nsContentUtils::ThreadsafeIsCallerChrome()) {
     // For non-chrome callers, return client coordinates instead.
     // For some events, the result will be zero; specifically, for dragend
     // events (there is no widget associated with dragend events, which





More information about the tor-commits mailing list