Bug 482175 - Put off further actions that depend on hidden asynchronicity. a=test-only

This commit is contained in:
Josh Matthews 2010-10-18 11:03:32 -04:00
Родитель 6b1d2d7b89
Коммит ca9ab173db
1 изменённых файлов: 8 добавлений и 4 удалений

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

@ -422,11 +422,15 @@ function handleLoad() {
ok(popup, "got popup notification");
clickPopupButton(popup, kChangeButton);
popup.remove();
// Housekeeping: change it back
tmpLogin.init("http://mochi.test:8888", null, "mochitest",
"mochiuser1", "mochipass1-new", "", "");
pwmgr.modifyLogin(tmpLogin, login3A);
function resetIt() {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
tmpLogin.init("http://mochi.test:8888", null, "mochitest",
"mochiuser1", "mochipass1-new", "", "");
pwmgr.modifyLogin(tmpLogin, login3A);
}
setTimeout(resetIt, 0);
// Same as last test, but for a realm we haven't already authenticated
// to (but have an existing saved login for, so that we'll trigger