You declare and unlock mUserAndPasswordPromptAggregator, but you never seem to use it. I guess you had intended to use it in function nsPromptService::PromptUsernameAndPasswo...
You declare and unlock mUserAndPasswor dPromptAggregat or, but you never seem to use it. I guess you had intended to use it in function nsPromptService ::PromptUsernam eAndPasswo. ..