Closed
Bug 539183
Opened 15 years ago
Closed 15 years ago
nsILoginManager fails in enterprise autoadmin with Thunderbird >=3.0
Categories
(Thunderbird :: Security, defect)
Thunderbird
Security
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: chetan, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
I use autoadmin.global_config_url to set a http page from where my thunderbird client downloads settings.
For thunderbird 2.x i use nsIPasswordManager in the config script which works great and i am able to save passwords for accounts auto-created.
After Thunderbird 3.0 i am supposed to use -
var passwordManager = Components.classes["@mozilla.org/login-manager;1"].getService(Components.interfaces.nsILoginManager);
However thunderbird javascript security is probably blocking this since I get an error but I am able to create other XPCOM components like version-comparator and prompts without any problem in the autoadmin script.
Reproducible: Always
Steps to Reproduce:
1. use or create nsILoginManager object any where in autoadmin script . Doesn't matter even if the function is declared in greprefs , or in the config file or directly in the global_config_url web page.
2.
3.
Actual Results:
Netscape.cfg/AutoConfig failed. Please contact your system administrator.
Error: changePass - failed: [Exception... "Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]" nsresult: "0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)" location: "JS frame :: <unknown filename> :: changePass :: line 35" data: no]
Expected Results:
Should be able to create nsILoginManager to save passwords using autoadmin script.
Would like if this bug is fixed or a workaround given. Have over 300 PC's using autoadmin and thier customized global_config_url
Comment 1•15 years ago
|
||
nsIPasswordManager does not exist anymore (password handling was reworked a lot for tb3)
Reporter | ||
Comment 2•15 years ago
|
||
Actually I have subsequently found out that for some unknown reason nsiLoginManager cannot be created within a javascript function . I have to create the nsiLoginManager in the main javascript code and then i can use the object.
If i create nsiLoginManager object within a function without first creating it in the main javascript body it gives the error I posted above.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•