From 9630812ba7ff726060509fe24d1e6a7f63f3d8c5 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Thu, 18 Apr 2013 11:36:05 -0400 Subject: [PATCH] Bug 860438 - Add assertion back in. r=gabor --- content/base/src/nsContentUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/base/src/nsContentUtils.cpp b/content/base/src/nsContentUtils.cpp index fddd94e303d..6e22edf6e79 100644 --- a/content/base/src/nsContentUtils.cpp +++ b/content/base/src/nsContentUtils.cpp @@ -3196,7 +3196,8 @@ nsCxPusher::Pop() // pop is the same as it was right after we pushed. MOZ_ASSERT_IF(mPushedContext, mCompartmentDepthOnEntry == js::GetEnterCompartmentDepth(mPushedContext)); - + DebugOnly stackTop; + MOZ_ASSERT(NS_SUCCEEDED(stack->Peek(&stackTop)) && mPushedContext == stackTop); stack->Pop(nullptr); if (!mScriptIsRunning && mScx) {