summaryrefslogtreecommitdiffstats
path: root/mailnews/base/public/nsIMsgAsyncPrompter.idl
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-12-30 08:46:47 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-11 13:43:22 +0100
commit798cdc9e47f5b5231fb64d0ff552658026763b70 (patch)
tree449b72bf49a7cc6e76dcc9a088b96a1c59d1a446 /mailnews/base/public/nsIMsgAsyncPrompter.idl
parent1110944d4b3dffbd822d22ad2cc75a32eda718d7 (diff)
downloadUXP-798cdc9e47f5b5231fb64d0ff552658026763b70.tar
UXP-798cdc9e47f5b5231fb64d0ff552658026763b70.tar.gz
UXP-798cdc9e47f5b5231fb64d0ff552658026763b70.tar.lz
UXP-798cdc9e47f5b5231fb64d0ff552658026763b70.tar.xz
UXP-798cdc9e47f5b5231fb64d0ff552658026763b70.zip
Bug 1176399 - Multiple requests for master password when GMail OAuth2 is enabled.
Diffstat (limited to 'mailnews/base/public/nsIMsgAsyncPrompter.idl')
-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.
*/