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.