commit 5282caeb91c9458ddb26edc2684a8b76ee53eb42 Author: Kathy Brade brade@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
tor-commits@lists.torproject.org