Confirmed users
195
edits
(→Issues) |
m (→Wallet/Satchel) |
||
Line 235: | Line 235: | ||
These want to add a checkbox to the dialog. I propose an interface like this: | 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(...)] | [scriptable, uuid(...)] | ||
interface nsIAuthPrompt2Factory | interface nsIAuthPrompt2Factory | ||
{ | { | ||
/** | /** | ||
* Returns an object implementing nsIAuthPrompt2 that creates dialogs | * Returns an object implementing nsIAuthPrompt2 that creates dialogs | ||
Line 246: | Line 246: | ||
*/ | */ | ||
nsIAuthPrompt2 getAuthPrompt2(in nsIDOMWindow aParent); | nsIAuthPrompt2 getAuthPrompt2(in nsIDOMWindow aParent); | ||
}; | }; | ||
This allows more flexibility than the current interface that wraps an nsIPrompt. | This allows more flexibility than the current interface that wraps an nsIPrompt. | ||
For actually adding the checkbox, nsIPromptService2 will need a method like promptUsernameAndPassword2Checkbox. | For actually adding the checkbox, nsIPromptService2 will need a method like promptUsernameAndPassword2Checkbox. |