Backed out changeset b0d41235146a
Bug 454561 disable tracing when JavaScript-Debugger is enabled [ @ jsd_lock ]
this isn't the correct fix
r=graydon
--- a/dom/src/base/nsJSEnvironment.cpp
+++ b/dom/src/base/nsJSEnvironment.cpp
@@ -1167,22 +1167,16 @@ nsJSContext::JSOptionChangedCallback(con
nsIScriptGlobalObject *global = context->GetGlobalObject();
// XXX should we check for sysprin instead of a chrome window, to make
// XXX components be covered by the chrome pref instead of the content one?
nsCOMPtr<nsIDOMChromeWindow> chromeWindow(do_QueryInterface(global));
PRBool useJIT = nsContentUtils::GetBoolPref(chromeWindow ?
js_jit_chrome_str :
js_jit_content_str);
-
-#ifdef MOZ_JSDEBUGGER
- if (context->mContext->debugHooks->debuggerHandler)
- useJIT = PR_FALSE;
-#endif
-
if (useJIT)
newDefaultJSOptions |= JSOPTION_JIT;
else
newDefaultJSOptions &= ~JSOPTION_JIT;
#ifdef DEBUG
// In debug builds, warnings are always enabled in chrome context
// Note this callback is also called from context's InitClasses thus we don't