Bug 490028 - JavaScript strict warning in chrome://messenger-newsblog/content/Feed.js and feed-parser.js (feed-parser.js part). suggestion=bienvenu, r=myk.
authorRimas Kudelis <rq@akl.lt>
Thu, 04 Jun 2009 23:49:27 +0300
changeset 2776 7f60d259141f4acad2514fe2349b58bb9139081e
parent 2775 e14d90899db9603776590e173f3e8568e65516e6
child 2777 63dc0f6f9564c3af76ed1d507eb8c683b6e83424
push id2249
push userrq@akl.lt
push dateThu, 04 Jun 2009 20:49:35 +0000
treeherdercomm-central@7f60d259141f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmyk
bugs490028
Bug 490028 - JavaScript strict warning in chrome://messenger-newsblog/content/Feed.js and feed-parser.js (feed-parser.js part). suggestion=bienvenu, r=myk.
mailnews/extensions/newsblog/content/feed-parser.js
--- a/mailnews/extensions/newsblog/content/feed-parser.js
+++ b/mailnews/extensions/newsblog/content/feed-parser.js
@@ -494,18 +494,17 @@ FeedParser.prototype =
           ((alink.getAttribute('rel') && alink.getAttribute('rel') == linkRel) ||
            //if there isn't, assume 'alternate'
            (!alink.getAttribute('rel') && (linkRel=="alternate"))) 
           && alink.getAttribute('href')) 
       {
         // Atom links are interpreted relative to xml:base
         var ioService = Components.classes["@mozilla.org/network/io-service;1"]
                                    .getService(Components.interfaces.nsIIOService);
-        url = ioService.newURI(alink.baseURI, null, null);
-        return url.resolve(alink.getAttribute('href'));
+        return ioService.newURI(alink.baseURI, null, null).resolve(alink.getAttribute('href'));
       }
     }
     return null;
   },
   
   stripTags: function(someHTML)
   {
     return someHTML ? someHTML.replace(/<[^>]+>/g,"") : someHTML;