rem:     workTab.linkedBrowser.webNavigation.stop(STOP_ALL); 
context:         function afterWorkTabHasLoaded(event) {            dump('start afterWorkTabHasLoaded\n');            var formData = null;            workTab.linkedBrowser.removeEventListener('pageshow',                     afterWorkTabHasLoaded, false);                        //I'm not so sure that this speeds anything up...            //It's also kind of dangerous, if it runs before the listener is            //removed it can do trigger this function again.            workTab.linkedBrowser.webNavigation.stop(STOP_ALL);                        //this will copy all the form data...            if (field){                tabManager.writeTabForms(workTab.linkedBrowser.contentDocument.                        forms,  formIndex, field.index, testValue);                formData = tabManager.getFormDataForURL(workTab.linkedBrowser.                        contentDocument.forms,  formIndex, field.index,                         testValue);            }            else {                tabManager.writeTabForms(workTab.linkedBrowser.contentDocument.                        forms,  formIndex, null, null);                formData = tabManager.getFormDataForURL(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(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/fc0224ce5a5df1b69540c6053ddec51df3a8950c/AttackRunner.js/buggy/content/AttackRunner.js