Bug 1228282 - fix use of aMenuItem in FeedWriter's _initMenuItemWithFile to unbreak feed reader UI, r=mak
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 26 Nov 2015 11:15:34 +0000
changeset 274372 5fe77514a40b016456ea9935fd9794f32bde3230
parent 274201 b499eb4027bdd116e7fd33cc61785d9d7a2860ec
child 274373 4aad8e3db7e990ccd2dfc6e7840632559272b22b
push id29729
push usercbook@mozilla.com
push dateFri, 27 Nov 2015 10:05:25 +0000
treeherdermozilla-central@ad985ade8a2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1228282
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1228282 - fix use of aMenuItem in FeedWriter's _initMenuItemWithFile to unbreak feed reader UI, r=mak
browser/components/feeds/FeedWriter.js
--- a/browser/components/feeds/FeedWriter.js
+++ b/browser/components/feeds/FeedWriter.js
@@ -641,18 +641,18 @@ FeedWriter.prototype = {
    *   @param aMenuItem
    *          The menuitem on which the attributes should be set
    *   @param aFile
    *          The menuitem's associated file
    */
   _initMenuItemWithFile: function(aMenuItem, aFile) {
     var label = this._getFileDisplayName(aFile);
     var image = this._getFileIconURL(aFile);
-    aMenuitem.setAttribute('label', label);
-    aMenuitem.setAttribute('image', image);
+    aMenuItem.setAttribute('label', label);
+    aMenuItem.setAttribute('image', image);
   },
 
   /**
    * Helper method to get an element in the XBL binding where the handler
    * selection UI lives
    */
   _getUIElement: function FW__getUIElement(id) {
     return this._document.getAnonymousElementByAttribute(