commit cce64292e7b2633016b2505da8a445b7af633fd5 Author: Kathy Brade brade@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;
tbb-commits@lists.torproject.org