rem: resultsManager.addObserver(self, attackHttpResponseObserver); 
add: resultsManager.addObserver(attackHttpResponseObserver); 
context:         function afterWorkTabHasLoaded(event) {            dump('start afterWorkTabHasLoaded\n');                        //this will copy all the form data...            if (field){                tabManager.writeTabForms(workTab.linkedBrowser.contentDocument.                        forms,  formIndex, field.index, testValue);                            }            else {                tabManager.writeTabForms(workTab.linkedBrowser.contentDocument.                        forms,  formIndex, null, null);                            }            self.testData = tabManager.getTabData(workTab.linkedBrowser.                    contentDocument.forms,  formIndex, field.index);            dump('attackRunner::testData == ' + this.testData + '\n');            dump('tab data should be written now\n');                        setTimeout(function() {                    workTab.linkedBrowser.removeEventListener('pageshow',                     afterWorkTabHasLoaded, false)}, 1);                                if (resultsManager)            {                workTab.linkedBrowser.addEventListener('pageshow',                         afterWorkTabHasSubmittedAndLoaded, false);                                            var observerService = Components.                        classes['@mozilla.org/observer-service;1'].                        getService(Components.interfaces.nsIObserverService);                var attackHttpResponseObserver =                         new AttackHttpResponseObserver(self, resultsManager);                resultsManager.addObserver(self, attackHttpResponseObserver);                observerService.addObserver(attackHttpResponseObserver,                         'http-on-examine-response', false);                            }            var formGotSubmitted = self.submitForm(                    workTab, formIndex);            dump('end afterWorkTabHasLoaded '+ formGotSubmitted +'\n');             }
meta: 9596	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9596/7c184efb82757e3b562cde2617dd7f1b1b1e7b21/AttackRunner.js/clean/content/AttackRunner.js