Bug 1925033 - Use Services.focus for bookmarking from mailnews. r=IanN
This commit is contained in:
Родитель
2cb29fc2af
Коммит
cb036a5f45
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Загрузка…
Ссылка в новой задаче