mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 410297 - Assertion ('Content type should be known by now.') while running netwerk xpcshell tests. r=dmose, sr=biesi, a=blocking1.9+
This commit is contained in:
parent
fedbf200d4
commit
f24a6f2a31
@ -132,10 +132,16 @@ HandlerService.prototype = {
|
||||
},
|
||||
|
||||
_updateDB: function HS__updateDB() {
|
||||
// if the default prefs have changed, inject any new default handers
|
||||
// into the datastore
|
||||
var defaultHandlersVersion = this._datastoreDefaultHandlersVersion;
|
||||
try {
|
||||
var defaultHandlersVersion = this._datastoreDefaultHandlersVersion;
|
||||
} catch(ex) {
|
||||
// accessing the datastore failed, we can't update anything
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
// if the default prefs have changed, inject any new default handers
|
||||
// into the datastore
|
||||
if (defaultHandlersVersion < this._prefsDefaultHandlersVersion) {
|
||||
// set the new version first so that if we recurse we don't
|
||||
// call _injectNewDefaults several times
|
||||
@ -180,9 +186,7 @@ HandlerService.prototype = {
|
||||
get _datastoreDefaultHandlersVersion() {
|
||||
var version = this._getValue("urn:root", NC_DEFAULT_HANDLERS_VERSION);
|
||||
|
||||
version = version ? version : -1;
|
||||
|
||||
return version;
|
||||
return version ? version : -1;
|
||||
},
|
||||
|
||||
set _datastoreDefaultHandlersVersion(aNewVersion) {
|
||||
|
Loading…
Reference in New Issue
Block a user