rem: WebRunner.attachDocument(domDocument); 
add: this.attachDocument(domDocument); 
context:   onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) {    if (aStateFlags & Ci.nsIWebProgressListener.STATE_IS_REQUEST) {      if (aStateFlags & Ci.nsIWebProgressListener.STATE_START) {        this._requestsStarted++;      }      else if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP) {        this._requestsFinished++;      }      if (this._profile.status && this._requestsStarted > 1) {        var value = (100 * this._requestsFinished) / this._requestsStarted;        var progress = document.getElementById("progress");        progress.setAttribute("mode", "determined");        progress.setAttribute("value", value);      }    }    if (this._profile.status && (aStateFlags & Ci.nsIWebProgressListener.STATE_IS_NETWORK)) {      var progress = document.getElementById("progress");      if (aStateFlags & Ci.nsIWebProgressListener.STATE_START) {        progress.hidden = false;      }      else if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP) {        progress.hidden = true;        this.onStatusChange(aWebProgress, aRequest, 0, "Done");        this._requestsStarted = this._requestsFinished = 0;      }    }    if (aStateFlags & Ci.nsIWebProgressListener.STATE_IS_DOCUMENT) {      if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP) {        var domDocument = aWebProgress.DOMWindow.document;        WebRunner.attachDocument(domDocument);      }    }  },
meta: 2142	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2142/40aa9912b01c926c8472ab683231ad8050492f7b/webrunner.js/buggy/app/chrome/content/webrunner.js