Necko:nsIAuthPrompt2: Difference between revisions

Jump to navigation Jump to search
Line 231: Line 231:
* Added authenticationScheme (RFC 2617 wording) to nsIAuthInformation to provide more information to the impl (they can always ignore the field if they don't care). this will be basic, digest, etc.
* Added authenticationScheme (RFC 2617 wording) to nsIAuthInformation to provide more information to the impl (they can always ignore the field if they don't care). this will be basic, digest, etc.
** The level is still useful, for SSL and for not requiring the impl to understand all possible schemes, and also for non-HTTP protocols
** The level is still useful, for SSL and for not requiring the impl to understand all possible schemes, and also for non-HTTP protocols
= Wallet/Satchel =
These want to add a checkbox to the dialog. I propose an interface like this:
/**
* This interface allows creating auth prompts that have a specific parent.
*/
[scriptable, uuid(...)]
interface nsIAuthPrompt2Factory
{
  /**
  * Returns an object implementing nsIAuthPrompt2 that creates dialogs
  * parented to aParent.
  */
  nsIAuthPrompt2 getAuthPrompt2(in nsIDOMWindow aParent);
};
This allows more flexibility than the current interface that wraps an nsIPrompt.
For actually adding the checkbox, nsIPromptService2 will need a method like promptUsernameAndPassword2Checkbox.
Confirmed users
195

edits

Navigation menu