зеркало из https://github.com/mozilla/pjs.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 a=beltzner]
This commit is contained in:
Родитель
9c8b38291a
Коммит
b4332d0bc7
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче