[tor-commits] [tor-browser/tor-browser-38.1.0esr-5.0-1] fixup! Bug 15646: Prevent keyboard layout fingerprinting in KeyboardEvent

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


commit c1273008b1e00a60ce51cec4aa68ed83363c9a20
Author: Kathy Brade <brade at pearlcrescent.com>
Date:   Wed Aug 5 10:40:47 2015 -0400

    fixup! Bug 15646: Prevent keyboard layout fingerprinting in KeyboardEvent
    
    Use ThreadsafeIsCallerChrome() instead of IsCallerChrome().
---
 dom/events/KeyboardEvent.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dom/events/KeyboardEvent.cpp b/dom/events/KeyboardEvent.cpp
index 76e6e39..6a68f96 100644
--- a/dom/events/KeyboardEvent.cpp
+++ b/dom/events/KeyboardEvent.cpp
@@ -14,7 +14,7 @@ namespace dom {
 
 static bool ResistFingerprinting() {
   return nsContentUtils::ResistFingerprinting() &&
-         !nsContentUtils::IsCallerChrome();
+         !nsContentUtils::ThreadsafeIsCallerChrome();
 }
 
 KeyboardEvent::KeyboardEvent(EventTarget* aOwner,





More information about the tor-commits mailing list