bug 395641: add a separator between the 'Live Bookmarks in Firefox' item and the helper app items in the Actions menu for the feed type in the Applications prefpane; r=gavin; a=mconnor
git-svn-id: svn://10.0.0.236/trunk@236119 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1078,7 +1078,7 @@ var gApplicationsPane = {
|
||||
while (menuPopup.hasChildNodes())
|
||||
menuPopup.removeChild(menuPopup.lastChild);
|
||||
|
||||
// If this is the feed type, add "always ask" and "live bookmarks" items.
|
||||
// If this is the feed type, add Preview in Firefox and Live Bookmarks items.
|
||||
if (handlerInfo.type == TYPE_MAYBE_FEED) {
|
||||
let menuItem = document.createElementNS(kXULNS, "menuitem");
|
||||
menuItem.setAttribute("alwaysAsk", "true");
|
||||
@@ -1094,6 +1094,11 @@ var gApplicationsPane = {
|
||||
menuPopup.appendChild(menuItem);
|
||||
if (handlerInfo.preferredAction == Ci.nsIHandlerInfo.handleInternally)
|
||||
menu.selectedItem = menuItem;
|
||||
|
||||
// Add a separator to distinguish these items from the helper app items
|
||||
// that follow them.
|
||||
menuItem = document.createElementNS(kXULNS, "menuseparator");
|
||||
menuPopup.appendChild(menuItem);
|
||||
}
|
||||
|
||||
// Create a menu item for the OS default application, if any.
|
||||
|
||||
Reference in New Issue
Block a user