[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 6253: Add canvas image extraction prompt.



commit cce64292e7b2633016b2505da8a445b7af633fd5
Author: Kathy Brade <brade@xxxxxxxxxxxxxxxxx>
Date:   Wed Aug 5 10:36:30 2015 -0400

    fixup! Bug 6253: Add canvas image extraction prompt.
    
    Use ThreadsafeIsCallerChrome() instead of IsCallerChrome().
---
 dom/canvas/CanvasUtils.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dom/canvas/CanvasUtils.cpp b/dom/canvas/CanvasUtils.cpp
index f1978ff..9883a52 100644
--- a/dom/canvas/CanvasUtils.cpp
+++ b/dom/canvas/CanvasUtils.cpp
@@ -55,7 +55,7 @@ bool IsImageExtractionAllowed(nsIDocument *aDocument, JSContext *aCx)
     return true;
 
   // Don't show canvas prompt for chrome scripts (e.g. Page Inspector)
-  if (nsContentUtils::IsCallerChrome())
+  if (nsContentUtils::ThreadsafeIsCallerChrome())
     return true;
 
   JS::AutoFilename scriptFile;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits