mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1100069 - have nsIHandlerService::getTypeFromExtension fail gracefully and silently in xpcshell. r=bz
This commit is contained in:
parent
d43fd4f419
commit
b05b3dabbc
@ -457,6 +457,14 @@ HandlerService.prototype = {
|
||||
var fileExtension = aFileExtension.toLowerCase();
|
||||
var typeID;
|
||||
|
||||
// See bug 1100069 for why we want to fail gracefully and silently here.
|
||||
try {
|
||||
this._ds;
|
||||
} catch (ex) {
|
||||
Components.returnCode = Cr.NS_ERROR_NOT_AVAILABLE;
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._existsLiteralTarget(NC_FILE_EXTENSIONS, fileExtension))
|
||||
typeID = this._getSourceForLiteral(NC_FILE_EXTENSIONS, fileExtension);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user