Bug 1343850 - fix PlacesProvider.jsm undefined variable (aLastKnownTitle vs. aTitle), r=mak
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 02 Mar 2017 13:51:05 +0000
changeset 374864 15651f8268b74f12d6db4b4949bcf2bdbef63809
parent 374863 06464864d84f4400bd0ab6e37a89a820747f34ec
child 374865 a600cecf698c94d6ef63e56b3cea90bc33eab48d
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1343850
milestone54.0a1
Bug 1343850 - fix PlacesProvider.jsm undefined variable (aLastKnownTitle vs. aTitle), r=mak MozReview-Commit-ID: D86SQTcMLvM
browser/components/newtab/PlacesProvider.jsm
--- a/browser/components/newtab/PlacesProvider.jsm
+++ b/browser/components/newtab/PlacesProvider.jsm
@@ -110,17 +110,17 @@ Links.prototype = {
       // See toolkit/components/places/tests/unit/test_frecency_observers.js
       gLinks.emit("manyLinksChanged");
     },
 
     onVisit(aURI, aVisitId, aTime, aSessionId, aReferrerVisitId, aTransitionType,
             aGuid, aHidden, aVisitCount, aTyped, aLastKnownTitle) {
       // For new visits, if we're not batch processing, notify for a title update
       if (!this._batchProcessingDepth && aVisitCount == 1 && aLastKnownTitle) {
-        this.onTitleChanged(aURI, aTitle, aGuid);
+        this.onTitleChanged(aURI, aLastKnownTitle, aGuid);
       }
     },
 
     onTitleChanged: function historyObserver_onTitleChanged(aURI, aNewTitle) {
       if (NewTabUtils.linkChecker.checkLoadURI(aURI.spec)) {
         gLinks.emit("linkChanged", {
           url: aURI.spec,
           title: aNewTitle