[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser/tor-browser-38.1.0esr-5.0-1] fixup! Bug 4755: Return client window coordinates for mouse event screenX/Y
commit 5282caeb91c9458ddb26edc2684a8b76ee53eb42
Author: Kathy Brade <brade@xxxxxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits