Bug 1288954 - Only log error if failureId is set. r=jrmuizel
authorBenoit Girard <b56girard@gmail.com>
Sun, 24 Jul 2016 11:11:09 -0400
changeset 331345 3f5a9799b9feabdd49dfd73d03c4bf0e3514ee3b
parent 331344 6fb55e17cd0279ade680b87ad9bc2d03424affc3
child 331346 d5407d5642bf63eef799eedf52052fc9a6074d71
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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") &&