From 90c16684c7b23bdb91597f2acfe5ba3b0a727510 Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Sun, 24 Jul 2016 11:11:09 -0400 Subject: [PATCH] Bug 1288954 - Only log error if failureId is set. r=jrmuizel MozReview-Commit-ID: HsjNnHTqaya --HG-- extra : rebase_source : 17858078f32ecb34146453441bb4f6405c30fcd9 --- gfx/gl/GLLibraryEGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/gl/GLLibraryEGL.cpp b/gfx/gl/GLLibraryEGL.cpp index 3bb8eb6dbf78..371b0816ee44 100644 --- a/gfx/gl/GLLibraryEGL.cpp +++ b/gfx/gl/GLLibraryEGL.cpp @@ -189,6 +189,10 @@ public: void logError(const char *errorMessage) override { + if (!mFailureId) { + return; + } + nsCString str(errorMessage); Tokenizer tokenizer(str);