Bug 1925033 - Use Services.focus for bookmarking from mailnews. r=IanN

This commit is contained in:
Frank-Rainer Grahl 2024-10-10 22:46:54 +02:00
Родитель 2cb29fc2af
Коммит cb036a5f45
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -1156,7 +1156,7 @@ var PlacesUIUtils = {
info.hiddenRows.push("keyword"); info.hiddenRows.push("keyword");
return this.showBookmarkDialog(info, return this.showBookmarkDialog(info,
focusManager.activeWindow || Services.focus.activeWindow ||
Services.wm.getMostRecentWindow(null)); Services.wm.getMostRecentWindow(null));
}, },
@ -1379,10 +1379,6 @@ XPCOMUtils.defineLazyGetter(PlacesUIUtils, "ellipsis", function() {
Ci.nsIPrefLocalizedString).data; Ci.nsIPrefLocalizedString).data;
}); });
XPCOMUtils.defineLazyServiceGetter(this, "focusManager",
"@mozilla.org/focus-manager;1",
"nsIFocusManager");
/** /**
* Determines if an unwrapped node can be moved. * Determines if an unwrapped node can be moved.
* *