Bug 1299642 - Fix docshell errors when breaking chrome -> chrome leaks. r=ted

It appears the lambda function passed to waitForFocus goes out of
scope when the window is closed. Just pass in SimpleTest.finish
directly instead.
This commit is contained in:
Eric Rahm 2016-09-15 16:43:38 -07:00
Родитель 9013078b1e
Коммит e6256c9f1a
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -362,9 +362,7 @@ function finish() {
ww.registerNotification(function(subject, topic, data) {
if (topic == "domwindowclosed") {
ww.unregisterNotification(arguments.callee);
SimpleTest.waitForFocus(function() {
SimpleTest.finish();
}, opener);
SimpleTest.waitForFocus(SimpleTest.finish, opener);
}
});