rem: if (isFirefox2()) {    this.runner.eval = doEval; this.runner.window = window; this.runner.Element = window.Element; this.runner.Event = window.Event; subScriptLoader.loadSubScript('chrome: subScriptLoader.loadSubScript('chrome: } 
context: function Debugger(editor) {	this.log = new Log("Debugger");	this.editor = editor;	var self = this;		this.init = function() {		if (this.runner != null) {			// already initialized			return;		}				this.log.debug("init");		this.paused = false;		this.runner = new Object();		this.runner.editor = this.editor;		this.editor.testCaseListeners.push(function(testCase) { self.runner.testCase = testCase; });		this.runner.testCase = this.editor.testCase;				const subScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]	    .getService(Components.interfaces.mozIJSSubScriptLoader);		//subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/selenium-logging.js', this.runner);        if (isFirefox2()) {            // In Firefox 2.0, it seems that methods added to Object or String does not work in subscripts,            // so we'll load prototype.js and htmlutils.js again            // (Tested on Firefox 2.0 RC2)            this.runner.eval = doEval;            this.runner.window = window;            this.runner.Element = window.Element;            this.runner.Event = window.Event;            subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/lib/prototype.js', this.runner);            subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/htmlutils.js', this.runner);        }		subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/selenium-api.js', this.runner);		subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js', this.runner);		subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js', this.runner);		subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js', this.runner);		if (this.editor.options.userExtensionsURL) {			try {				ExtensionsLoader.loadSubScript(subScriptLoader, this.editor.options.userExtensionsURL, this.runner);			} catch (error) {				this.log.error("error loading user-extensions.js: " + error);			}		}		subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium-runner.js', this.runner);        this.editor.infoPanel.logView.setLog(this.runner.LOG);        		this.runner.getInterval = function() {			if (self.runner.testCase.debugContext.currentCommand().breakpoint) {				self.paused = true;				return -1;			} else if (self.paused) {				return -1;			} else {				return document.getElementById("runInterval").selectedItem.value;			}		}	}}
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3428/76e1bdfe03c10374e3ffa3c7b2469e18236e6c66/debugger.js/buggy/src/content/debugger.js