зеркало из https://github.com/mozilla/gecko-dev.git
Bug 354808 - 'Choose Application' in feed subscription ui is broken on trunk (mac only). r=gavin
This commit is contained in:
Родитель
9f9b01d149
Коммит
4f0b8e9593
|
@ -317,7 +317,7 @@ FeedWriter.prototype = {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef XP_MACOSX
|
#ifdef XP_MACOSX
|
||||||
var lfm = file.QueryInterface(Components.interfaces.nsILocalFileMac_MOZILLA_1_8_BRANCH);
|
var lfm = file.QueryInterface(Ci.nsILocalFileMac);
|
||||||
try {
|
try {
|
||||||
return lfm.bundleDisplayName;
|
return lfm.bundleDisplayName;
|
||||||
}
|
}
|
||||||
|
@ -546,6 +546,7 @@ FeedWriter.prototype = {
|
||||||
menuItem = this._document.createElementNS(XUL_NS, "menuitem");
|
menuItem = this._document.createElementNS(XUL_NS, "menuitem");
|
||||||
menuItem.id = "selectedAppMenuItem";
|
menuItem.id = "selectedAppMenuItem";
|
||||||
menuItem.className = "menuitem-iconic";
|
menuItem.className = "menuitem-iconic";
|
||||||
|
menuItem.setAttribute("handlerType", "client");
|
||||||
try {
|
try {
|
||||||
var prefs = Cc["@mozilla.org/preferences-service;1"].
|
var prefs = Cc["@mozilla.org/preferences-service;1"].
|
||||||
getService(Ci.nsIPrefBranch);
|
getService(Ci.nsIPrefBranch);
|
||||||
|
@ -553,7 +554,6 @@ FeedWriter.prototype = {
|
||||||
Ci.nsILocalFile);
|
Ci.nsILocalFile);
|
||||||
|
|
||||||
if (selectedApp.exists()) {
|
if (selectedApp.exists()) {
|
||||||
menuItem.setAttribute("handlerType", "client");
|
|
||||||
this._initMenuItemWithFile(menuItem, selectedApp);
|
this._initMenuItemWithFile(menuItem, selectedApp);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче