Bug 854888, don't warn when GetContextForEventHandlers fails, r=smaug

This commit is contained in:
ishikawa@yk.rim.or.jp 2013-04-07 18:08:14 +03:00
parent 56e7eee9c7
commit d130be9b6c

View File

@ -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.