From d130be9b6cc41cfece985ccd0369e61692db08a2 Mon Sep 17 00:00:00 2001 From: "ishikawa@yk.rim.or.jp" Date: Sun, 7 Apr 2013 18:08:14 +0300 Subject: [PATCH] Bug 854888, don't warn when GetContextForEventHandlers fails, r=smaug --- content/base/src/nsContentUtils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/base/src/nsContentUtils.cpp b/content/base/src/nsContentUtils.cpp index d88b6eff57d..a9c0f4b0d36 100644 --- a/content/base/src/nsContentUtils.cpp +++ b/content/base/src/nsContentUtils.cpp @@ -3073,7 +3073,13 @@ nsCxPusher::Push(EventTarget *aCurrentTarget) nsresult rv; nsIScriptContext* scx = aCurrentTarget->GetContextForEventHandlers(&rv); +#ifdef DEBUG_smaug NS_ENSURE_SUCCESS(rv, false); +#else + if(NS_FAILED(rv)) { + return false; + } +#endif if (!scx) { // The target may have a special JS context for event handlers.