Let browser_Browser.js use the status filter instead of a raw progress listener to see if it makes a difference for bug 458688

This commit is contained in:
Dão Gottwald 2010-05-16 22:27:20 +02:00
parent e47ae5d46e
commit 6f40b4016d

View File

@ -70,8 +70,7 @@ function test() {
// check event
is(gTabMoveCount, 1, "Checking event handler for tab move");
let browser = gBrowser.getBrowserAtIndex(gPageB.index);
browser.addProgressListener({
gBrowser.addProgressListener({
onStateChange: function (webProgress, request, stateFlags, status) {
info("onStateChange: " + stateFlags);
@ -79,7 +78,7 @@ function test() {
Ci.nsIWebProgressListener.STATE_IS_NETWORK +
Ci.nsIWebProgressListener.STATE_STOP;
if ((stateFlags & complete) == complete) {
browser.removeProgressListener(this);
gBrowser.removeProgressListener(this);
onPageBLoadComplete();
}
},