Commit 7e636f04 authored by Raine Makelainen's avatar Raine Makelainen

Merge branch 'jb45429' into 'master'

[embedlite-components] Update LoginManagerContent/-Parent/-Prompter API...

See merge request mer-core/embedlite-components!41
parents 76977b72 87023382
......@@ -120,6 +120,9 @@ LoginManagerPrompter.prototype = {
this.log("===== initialized =====");
},
setE10sData : function (aBrowser, aOpener) {
throw new Error("This should be filled in when EmbedLite is multiprocess");
},
/*
* promptToSavePassword
......
......@@ -23,6 +23,9 @@ XPCOMUtils.defineLazyServiceGetter(this, "DOMUtils",
XPCOMUtils.defineLazyModuleGetter(this, "LoginManagerContent",
"resource://gre/modules/LoginManagerContent.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "LoginManagerParent",
"resource://gre/modules/LoginManagerParent.jsm");
XPCOMUtils.defineLazyServiceGetter(Services, "embedlite",
"@mozilla.org/embedlite-app-service;1",
......@@ -563,15 +566,14 @@ EmbedHelper.prototype = {
handleEvent: function(aEvent) {
switch (aEvent.type) {
case "DOMContentLoaded": {
if (LoginManagerContent.onContentLoaded) {
LoginManagerContent.onContentLoaded(aEvent);
}
LoginManagerParent.init();
break;
}
case "DOMFormHasPassword": {
if (LoginManagerContent.onFormPassword) {
LoginManagerContent.onFormPassword(aEvent);
}
let form = aEvent.target;
let doc = form.ownerDocument;
let win = doc.defaultView;
LoginManagerContent.onDOMFormHasPassword(aEvent, win);
break;
}
case "DOMAutoComplete":
......
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