зеркало из https://github.com/mozilla/gecko-dev.git
Bug 409192 - "Applications prefpane is broken if shell service isn't available at runtime (Applications preferences dialogue is empty, no way to add applications)" [p=mh+mozilla@glandium.org (Mike Hommey) r=gavin]
This commit is contained in:
Родитель
e610cd000f
Коммит
a0ccb79d68
|
@ -538,8 +538,7 @@ FeedHandlerInfo.prototype = {
|
|||
|
||||
_shellSvc:
|
||||
#ifdef HAVE_SHELL_SERVICE
|
||||
Cc["@mozilla.org/browser/shell-service;1"].
|
||||
getService(Ci.nsIShellService),
|
||||
getShellService(),
|
||||
#else
|
||||
null,
|
||||
#endif
|
||||
|
@ -670,7 +669,7 @@ FeedHandlerInfo.prototype = {
|
|||
defaultFeedReader = this._shellSvc.defaultFeedReader;
|
||||
}
|
||||
catch(ex) {
|
||||
// no default reader
|
||||
// no default reader or _shellSvc is null
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -697,7 +696,7 @@ FeedHandlerInfo.prototype = {
|
|||
return true;
|
||||
}
|
||||
catch(ex) {
|
||||
// no default reader
|
||||
// no default reader or _shellSvc is null
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче