From ca9ab173db0fc8ad51325b026a2234368d615fc8 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 18 Oct 2010 11:03:32 -0400 Subject: [PATCH] Bug 482175 - Put off further actions that depend on hidden asynchronicity. a=test-only --- toolkit/components/passwordmgr/test/test_prompt.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/toolkit/components/passwordmgr/test/test_prompt.html b/toolkit/components/passwordmgr/test/test_prompt.html index 948828a02ae6..cbbe750a261f 100644 --- a/toolkit/components/passwordmgr/test/test_prompt.html +++ b/toolkit/components/passwordmgr/test/test_prompt.html @@ -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