Bug 1288954 - Only log error if failureId is set. r=jrmuizel
MozReview-Commit-ID: HsjNnHTqaya
--- 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") &&