зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1237516 - about:profiles should deal with nsIProfileService throwing exceptions, r=ehsan
This commit is contained in:
Родитель
3263b5aa68
Коммит
315dbefd68
|
@ -299,8 +299,15 @@ function removeProfile(profile) {
|
||||||
|
|
||||||
// If we are deleting the selected or the default profile we must choose a
|
// If we are deleting the selected or the default profile we must choose a
|
||||||
// different one.
|
// different one.
|
||||||
let isSelected = ProfileService.selectedProfile == profile;
|
let isSelected = false;
|
||||||
let isDefault = ProfileService.defaultProfile == profile;
|
try {
|
||||||
|
isSelected = ProfileService.selectedProfile == profile;
|
||||||
|
} catch(e) {}
|
||||||
|
|
||||||
|
let isDefault = false;
|
||||||
|
try {
|
||||||
|
isDefault = ProfileService.defaultProfile == profile;
|
||||||
|
} catch(e) {}
|
||||||
|
|
||||||
if (isSelected || isDefault) {
|
if (isSelected || isDefault) {
|
||||||
let itr = ProfileService.profiles;
|
let itr = ProfileService.profiles;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче