mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
e47ae5d46e
commit
6f40b4016d
@ -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();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user