Commit 3c02e9e2 authored by Tatiana Meshkova's avatar Tatiana Meshkova

Added LoginPrompter from Android FF and added some API to UI

parent 7c831ba1
......@@ -23,14 +23,31 @@ EmbedLiteGlobalHelper.prototype = {
// Engine DownloadManager notifications
case "app-startup": {
dump("EmbedLiteGlobalHelper app-startup\n");
Services.obs.addObserver(this, "invalidformsubmit", false);
Services.obs.addObserver(this, "xpcom-shutdown", false);
// Init LoginManager
Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager);
break;
}
case "invalidformsubmit": {
dump("EmbedLiteGlobalHelper invalidformsubmit\n");
break;
}
case "xpcom-shutdown": {
dump("EmbedLiteGlobalHelper xpcom-shutdown\n");
Services.obs.removeObserver(this, "invalidformsubmit", false);
break;
}
}
},
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver, Ci.nsISupportsWeakReference])
notifyInvalidSubmit: function notifyInvalidSubmit(aFormElement, aInvalidElements) {
dump("NOT IMPLEMENTED Invalid Form Submit, need to do something about it\n");
if (!aInvalidElements.length)
return;
},
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver, Ci.nsISupportsWeakReference, Ci.nsIFormSubmitObserver])
};
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([EmbedLiteGlobalHelper]);
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment