Bug 1288954 - Only log error if failureId is set. r=jrmuizel draft
authorBenoit Girard <b56girard@gmail.com>
Sun, 24 Jul 2016 11:11:09 -0400
changeset 392192 17858078f32ecb34146453441bb4f6405c30fcd9
parent 391305 e0bc88708ffed39aaab1fbc0ac461d93561195de
child 526268 a92a02a6ad462c6b035bd152f9eda2aadf4eab13
push id23957
push userb56girard@gmail.com
push dateSun, 24 Jul 2016 15:11:26 +0000
reviewersjrmuizel
bugs1288954
milestone50.0a1
Bug 1288954 - Only log error if failureId is set. r=jrmuizel MozReview-Commit-ID: HsjNnHTqaya
gfx/gl/GLLibraryEGL.cpp
--- a/gfx/gl/GLLibraryEGL.cpp
+++ b/gfx/gl/GLLibraryEGL.cpp
@@ -184,16 +184,20 @@ public:
 
     void SetFailureId(nsACString* const aFailureId)
     {
       mFailureId = aFailureId;
     }
 
     void logError(const char *errorMessage) override
     {
+        if (!mFailureId) {
+            return;
+        }
+
         nsCString str(errorMessage);
         Tokenizer tokenizer(str);
 
         // Parse "ANGLE Display::initialize error " << error.getID() << ": "
         //       << error.getMessage()
         nsCString currWord;
         Tokenizer::Token intToken;
         if (tokenizer.CheckWord("ANGLE") &&