Re: nsIAuthInformation.ONLY_PASSWORD
Christian Biesinger <[email protected]> Fri, 17 Aug 2012 06:34:04 -0700
| Newsgroups | gmane.comp.mozilla.devel.netlib |
|---|---|
| Message-ID | <CACpOFMsK-nR_ETrQ+RCUuXSc9uTohgKmCM-JskHPytKdGS0akg@mail.gmail.com> |
On Fri, Aug 17, 2012 at 3:16 AM, Patrick Wang <[email protected]> wrote: > I am writing a test case for an asyncPromptAuth() implementation with sjs files, > and I am try to simulate a scenario that the prompt shows only password field, > that is, nsIAuthInformation.ONLY_PASSWORD is set when the authInfo is passed to > asyncPromptAuth(). But I don't know how to let caller pass such authInfo. > Could anybody tell me how to make caller pass an AuthInfo with ONLY_PASSWORD set? So, this only happens for (certain) FTP requests, basically for ftp://[email protected]/ when the server asks for a password. I don't think we have an FTP server for tests (maybe we do?) Why do you need an actual caller? Can't your test directly call your auth prompt implementation? Though I don't really understand how SJS files relate to auth prompts. -christian