From 045158e1f4f0a1247333506251310ec7fe17f190 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Fri, 7 Jun 2019 10:35:42 +0000 Subject: [PATCH] Bug 1556145 - Remove a spammy warning in CanvasUtils.cpp, r=jkt Differential Revision: https://phabricator.services.mozilla.com/D33752 --HG-- extra : moz-landing-system : lando --- 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 dd9271ee59a2..9f9b65bc82f9 100644 --- a/dom/canvas/CanvasUtils.cpp +++ b/dom/canvas/CanvasUtils.cpp @@ -306,7 +306,7 @@ bool CheckWriteOnlySecurity(bool aCORSUsed, nsIPrincipal* aPrincipal, } nsIGlobalObject* incumbentSettingsObject = dom::GetIncumbentGlobal(); - if (NS_WARN_IF(!incumbentSettingsObject)) { + if (!incumbentSettingsObject) { return true; }