diff --git a/js/src/xpconnect/src/nsXPConnect.cpp b/js/src/xpconnect/src/nsXPConnect.cpp index 94092a438c67..4414621c3374 100644 --- a/js/src/xpconnect/src/nsXPConnect.cpp +++ b/js/src/xpconnect/src/nsXPConnect.cpp @@ -2508,8 +2508,7 @@ nsXPConnect::Push(JSContext * cx) break; } } - /* Turning debugging off is immediate even if JS is running */ - if (!runningJS || !gDesiredDebugMode) + if (!runningJS) CheckForDebugMode(mRuntime->GetJSRuntime()); } @@ -2778,8 +2777,6 @@ NS_IMETHODIMP nsXPConnect::SetDebugModeWhenPossible(PRBool mode) { gDesiredDebugMode = mode; - if (!mode) - CheckForDebugMode(mRuntime->GetJSRuntime()); return NS_OK; }