Closed Bug 1470875 Opened 6 years ago Closed 6 years ago

Firefox is prompted to enter the master password for every site after enabling Windows certificate store.

Categories

(Toolkit :: Password Manager, defect)

60 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: support, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID: 20180605171542

Steps to reproduce:

Created a file named enableroot.js and placed it in the following directory; C:\Program Files (x86)\Mozilla Firefox\defaults\pref to enable Firefox to use the Windows certificate store. The file contains the following; pref("security.enterprise_roots.enabled", true);



Actual results:

Firefox now recognizes and uses the Windows certificate store, as intended. 
The issue is that anyone that uses a master password is now prompted for that master password numerous times. I posted on Spiceworks and there is another company that is experiencing the same issue. 

https://community.spiceworks.com/topic/2141697-firefox-master-password-prompt?_ga=2.218904729.1495939746.1529928219-1621371457.1443016246



Expected results:

Firefox should only prompt for the master password once.
Component: Untriaged → Password Manager
Product: Firefox → Toolkit
So entering the Master Password in the multiple prompts actually works or is it re-prompting the same way it would if you enter the incorrect password? You can test by loading a login page with a saved login and seeing if/when the username and password get autofilled.
Flags: needinfo?(support)
If you enter the correct password enough times, it works. Removing the js file from the pref directory restores normal master password functionality.
Flags: needinfo?(support)
Can you attach password manager debug logging when you're entering the correct master password each time? https://wiki.mozilla.org/Firefox:Password_Manager_Debugging
Flags: needinfo?(support)
It occurs when the application is first launched, it asks for the master password.  I can still use the browser, but I have to put http/s in front of everything in the address bar, and the quick search does not work.


Debug log:
uncaught exception: 2147500037  TelemetryEnvironment.jsm:1253:7
getDefaultEngineInfo: No default engine  nsSearchService.js:4152 uncaught exception: 2147500037  ContentSearch.jsm:506:9 [Exception... "Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource:///modules/ContentSearch.jsm :: _currentEngineObj :: line 506"  data: no]  (unknown)
TypeError: this.defaultEngine is undefined  contentSearchUI.js:626:5 nsLoginManager:No alternate nsILoginManagerStorage registered  nsLoginManager.js:122 Login storage:Initialization failed: Exception { name: "NS_ERROR_XPC_GS_RETURNED_FAILURE", message: "Component returned failure code: 0x…", result: 2153185302, filename: "jar:file:///C:/Program%20Files%20(x…", lineNumber: 48, columnNumber: 0, data: null, stack: "init@jar:file:///C:/Program%20Files…", location: XPCWrappedNative_NoHelper }  storage-json.js:86
NS_ERROR_XPC_GS_RETURNED_FAILURE: Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]  crypto-SDR.js:48
Error: Initialization failed  storage-json.js:87:13
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "Initialization failed" {file: "jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/omni.ja!/components/storage-json.js" line: 87}]'[JavaScript Error: "Initialization failed" {file: "jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/omni.ja!/components/storage-json.js" line: 87}]' when calling method: [nsILoginManagerStorage::initialize]  nsLoginManager.js:127 [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: resource://gre/modules/XPCOMUtils.jsm :: XPCU_serviceLambda :: line 261"  data: no]  (unknown) Ping failure with error: TypeError: NetworkError when attempting to fetch resource.  PingCentre.jsm:176 addMozEntries failed to update the db!  SafeBrowsing.jsm:543 Key event not available on some keyboard layouts: key=“i” modifiers=“accel,alt,shift” id=“key_browserToolbox”  browser.xul Cannot initialize search service, bailing out: 2147500037  search.xml:90 uncaught exception: 2147500037  PlacesSearchAutocompleteProvider.jsm:76:9
Unable to initialize search service.  PlacesSearchAutocompleteProvider.jsm:41
uncaught exception: 2147500037  browser.js:2495:18 uncaught exception: 2147500037  search.xml:160:15
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  search.xml:160 uncaught exception: 2147500037  nsSearchSuggestions.js:154:1
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  nsSearchSuggestions.js:154 uncaught exception: 2147500037  search.xml:1042:15
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  search.xml:1042 uncaught exception: 2147500037  search.xml:1494:13
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  search.xml:1494 uncaught exception: 2147500037  nsSearchSuggestions.js:154:1
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  nsSearchSuggestions.js:154 uncaught exception: 2147500037  nsSearchSuggestions.js:154:1
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  nsSearchSuggestions.js:154 uncaught exception: 2147500037  nsSearchSuggestions.js:154:1
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  nsSearchSuggestions.js:154 uncaught exception: 2147500037  nsSearchSuggestions.js:154:1
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  nsSearchSuggestions.js:154 uncaught exception: 2147500037  nsSearchSuggestions.js:154:1
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  nsSearchSuggestions.js:154 uncaught exception: 2147500037  search.xml:160:15
NS_ERROR_FAILURE: Failure'Failure' when calling method: [nsIBrowserSearchService::currentEngine]  search.xml:160
Flags: needinfo?(support)
Hmm… I wonder if bug 1471932 also fixed your issue? Could you check if the problem occurs in the latest Nightly build: https://nightly.mozilla.org/

Also, is a proxy server with authentication being used?
Flags: needinfo?(support)
No, there is no proxy server. If we remove the js file, everything works as it should.
Flags: needinfo?(support)
Does it happen on the latest Nightly though? I want to know if bug 1471932 also fixed this.
Flags: needinfo?(support)
The bug does appear fixed in Nightly version 63.0a1. We could only test in a test environment, not in production.
Flags: needinfo?(support)
OK, this was likely fixed by bug 1471932 then. Thanks for checking!

That bug will be fixed in Firefox 62 and in Firefox ESR 60.2 both released 2018-09-05.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
See Also: → 1471932
Re-open this bug if the problem occurs in production using one of those versions or later.
You need to log in before you can comment on or make changes to this bug.