summaryrefslogtreecommitdiffstats
path: root/mailnews/base/public
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-12-30 08:46:47 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-12-30 20:29:20 -0500
commit0395a076c826ffed7f9a83f8b8f5d49730f773ba (patch)
tree56d6ebe0b4e6159b20ecc26265043ff01f7ae625 /mailnews/base/public
parent357405f6356e28e5fa94cecc078b65c20433d236 (diff)
downloadUXP-0395a076c826ffed7f9a83f8b8f5d49730f773ba.tar
UXP-0395a076c826ffed7f9a83f8b8f5d49730f773ba.tar.gz
UXP-0395a076c826ffed7f9a83f8b8f5d49730f773ba.tar.lz
UXP-0395a076c826ffed7f9a83f8b8f5d49730f773ba.tar.xz
UXP-0395a076c826ffed7f9a83f8b8f5d49730f773ba.zip
Bug 1176399 - Multiple requests for master password when GMail OAuth2 is enabled.
Diffstat (limited to 'mailnews/base/public')
-rw-r--r--mailnews/base/public/nsIMsgAsyncPrompter.idl26
1 files changed, 21 insertions, 5 deletions
diff --git a/mailnews/base/public/nsIMsgAsyncPrompter.idl b/mailnews/base/public/nsIMsgAsyncPrompter.idl
index 5a59c4f39..4e1f81d12 100644
--- a/mailnews/base/public/nsIMsgAsyncPrompter.idl
+++ b/mailnews/base/public/nsIMsgAsyncPrompter.idl
@@ -35,21 +35,37 @@ interface nsIMsgAsyncPrompter : nsISupports {
in nsIMsgAsyncPromptListener aCaller);
};
+[scriptable, function, uuid(acca94c9-378e-46e3-9a91-6655bf9c91a3)]
+interface nsIMsgAsyncPromptCallback : nsISupports {
+ /**
+ * Called when an auth result is available. Can be passed as a function.
+ *
+ * @param aResult True if there is auth information available following the
+ * prompt, false otherwise.
+ */
+ void onAuthResult(in boolean aResult);
+};
+
/**
* This is used in combination with nsIMsgAsyncPrompter.
*/
[scriptable, uuid(fb5307a3-39d0-462e-92c8-c5c288a2612f)]
interface nsIMsgAsyncPromptListener : nsISupports {
/**
- * Called when the listener should do its prompt. The listener
- * should not return until the prompt is complete.
- *
- * @return True if there is auth information available following the prompt,
- * false otherwise.
+ * This method has been deprecated, please use onPromptStartAsync instead.
*/
boolean onPromptStart();
/**
+ * Called when the listener should do its prompt. This can happen
+ * synchronously or asynchronously, but in any case when done the callback
+ * method should be called.
+ *
+ * @param aCallback The callback to execute when auth prompt has completed.
+ */
+ void onPromptStartAsync(in nsIMsgAsyncPromptCallback aCallback);
+
+ /**
* Called in the case that the queued prompt was combined with another and
* there is now authentication information available.
*/