Backed out changeset b0d41235146a
authortimeless@mozdev.org
Wed, 29 Oct 2008 10:15:48 +0100
changeset 21140 429bfa1c5dea5601da90aba52524b302a1472ab9
parent 20981 b0d41235146aadb5a4bc0b86f61fa8e404e55dbb
child 21142 c072c1a950ab28b0a6f3016140f91aa04243a747
push id3349
push usertimeless@mozdev.org
push dateFri, 31 Oct 2008 11:54:34 +0000
treeherdermozilla-central@c072c1a950ab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs454561
milestone1.9.1b2pre
backs outb0d41235146aadb5a4bc0b86f61fa8e404e55dbb
Backed out changeset b0d41235146a Bug 454561 disable tracing when JavaScript-Debugger is enabled [ @ jsd_lock ] this isn't the correct fix r=graydon
dom/src/base/nsJSEnvironment.cpp
--- 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