Bug 1070036 - Catch NS_ERROR_NOT_AVAILABLE during OpenH264Provider startup. r=irving

This commit is contained in:
Georg Fritzsche 2014-09-24 17:38:50 +02:00
parent 82ae4752e3
commit c56aa93bed

View File

@ -268,7 +268,11 @@ let OpenH264Provider = {
if (this.gmpPath && enabled) {
this._log.info("startup() - adding gmp directory " + this.gmpPath);
gmpService.addPluginDirectory(this.gmpPath);
try {
gmpService.addPluginDirectory(this.gmpPath);
} catch (e if e.name == 'NS_ERROR_NOT_AVAILABLE') {
this._log.warning("startup() - adding gmp directory failed with " + e.name + " - sandboxing not available?");
}
}
},