[tbb-commits] [tor-browser/tor-browser-38.1.0esr-5.0-1] fixup! Bug 6253: Add canvas image extraction prompt.

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


commit cce64292e7b2633016b2505da8a445b7af633fd5
Author: Kathy Brade <brade at pearlcrescent.com>
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;





More information about the tbb-commits mailing list