mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1034979 - WeaveCrypto unable to initialize on Mac with Brew's system NSS installed. r=rnewman, sr=dolske
This commit is contained in:
parent
e47e83bb8b
commit
901b4d75a7
@ -132,17 +132,16 @@ WeaveCrypto.prototype = {
|
||||
|
||||
// XXX really want to be able to pass specific dlopen flags here.
|
||||
var nsslib;
|
||||
try {
|
||||
#ifdef MOZ_NATIVE_NSS
|
||||
// Search platform-dependent library paths for system NSS.
|
||||
this.log("Trying NSS library without path");
|
||||
nsslib = ctypes.open(path);
|
||||
} catch(e) {
|
||||
// In case opening the library without a full path fails,
|
||||
// try again with a full path.
|
||||
#else
|
||||
let file = Services.dirsvc.get("GreBinD", Ci.nsILocalFile);
|
||||
file.append(path);
|
||||
this.log("Trying again with path " + file.path);
|
||||
this.log("Trying NSS library with path " + file.path);
|
||||
nsslib = ctypes.open(file.path);
|
||||
}
|
||||
#endif
|
||||
|
||||
this.log("Initializing NSS types and function declarations...");
|
||||
|
||||
|
@ -9,9 +9,15 @@ TEST_DIRS += ['tests']
|
||||
|
||||
EXTRA_JS_MODULES['services-crypto'] += [
|
||||
'modules/utils.js',
|
||||
]
|
||||
|
||||
EXTRA_PP_JS_MODULES['services-crypto'] += [
|
||||
'modules/WeaveCrypto.js',
|
||||
]
|
||||
|
||||
EXTRA_COMPONENTS += [
|
||||
'cryptoComponents.manifest',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_NATIVE_NSS']:
|
||||
DEFINES['MOZ_NATIVE_NSS'] = 1
|
||||
|
Loading…
Reference in New Issue
Block a user