mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 762993 - Follow-up fix for 15ac0594d478. Unregister for WindowWatcher notifications in the success case. a=bustage-fix
This commit is contained in:
parent
4ea07adc41
commit
ffa8e94e62
@ -239,12 +239,16 @@ function test_popup() {
|
||||
free_and_check_sandbox(theSandbox);
|
||||
theSandbox = null;
|
||||
}
|
||||
Services.ww.registerNotification(new WindowObserver(continueTest));
|
||||
let winObs = new WindowObserver(continueTest);
|
||||
Services.ww.registerNotification(winObs);
|
||||
new Sandbox(alertURL, function sandboxCB(aSandbox) {
|
||||
theSandbox = aSandbox;
|
||||
check_sandbox(aSandbox, alertURL);
|
||||
// Wait 5 seconds to see if the window is going to open.
|
||||
setTimeout(continueTest, 5000);
|
||||
setTimeout(function() {
|
||||
Services.ww.unregisterNotification(winObs);
|
||||
continueTest();
|
||||
}, 5000);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user