rem: var sandbox = new Components.utils.Sandbox(win.location.href); try { sandbox.win = win; Components.utils.evalInSandbox(text, sandbox); } catch(exc) { FBTrace.dumpProperties("evalInSandBox FAILS sandbox uri="+win.location.href+" and text=\n"+text+"\n", exc); try { var evaledText = eval(text); FBTrace.dumpProperties("\n\n eval(text)=", evaledText); } catch (evalExc) { FBTrace.dumpProperties("eval(text) also FAILS", exc); } } 
add: var sandbox = new Components.utils.Sandbox(win.location.href); try { sandbox.win = win; Components.utils.evalInSandbox(text, sandbox); } catch(exc) { FBTrace.dumpProperties("evalInSandBox FAILS sandbox uri="+win.location.href+" and text=\n"+text+"\n", exc); try { var evaledText = eval(text); FBTrace.dumpProperties("\n\n eval(text)=", evaledText); } catch (evalExc) { FBTrace.dumpProperties("eval(text) also FAILS", exc); } } 
context: this.evalInTo = function(win, text){	var sandbox = new Components.utils.Sandbox(win.location.href);	try 	{		sandbox.win = win;		Components.utils.evalInSandbox(text, sandbox);	}	catch(exc)	{		FBTrace.dumpProperties("evalInSandBox FAILS sandbox uri="+win.location.href+" and text=\n"+text+"\n", exc);		try 		{			var evaledText = eval(text);			FBTrace.dumpProperties("\n\n eval(text)=", evaledText);		}		catch (evalExc)		{			FBTrace.dumpProperties("eval(text) also FAILS", exc);		}	}}
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/8237a6359bebacf3e34f1134ef713c687c8e3edb/lib.js/clean/extension/content/firebug/lib.js