Bug 1341081 - put final URL to comment field of autofill entry, r?gijs draft
authorSvetlana Orlik <sveta.orlik.code@gmail.com>
Mon, 20 Feb 2017 20:52:18 +0300
changeset 487094 92add5fad043d3f724dff94c37128ea328b023c7
parent 487049 b28a89f970be526f731239e45fa3d6f20e87fd46
child 546379 933b3b8a05a6ee026b930eaae8b5732265cffa75
push id46129
push userbmo:sveta.orlik.code@gmail.com
push dateMon, 20 Feb 2017 18:04:39 +0000
reviewersgijs
bugs1341081
milestone54.0a1
Bug 1341081 - put final URL to comment field of autofill entry, r?gijs MozReview-Commit-ID: CqqAizy0FOS
toolkit/components/places/UnifiedComplete.js
--- a/toolkit/components/places/UnifiedComplete.js
+++ b/toolkit/components/places/UnifiedComplete.js
@@ -1077,17 +1077,17 @@ Search.prototype = {
 
   _matchPrefillSiteForAutofill() {
     if (!Prefs.prefillSitesEnabled)
       return false;
     for (let site of PrefillSiteStorage.sites) {
       if (site.uri.host.startsWith(this._searchString)) {
         let match = {
           value: stripPrefix(site.uri.spec),
-          comment: site.title,
+          comment: stripHttpAndTrim(site.uri.spec),
           style: "autofill",
           finalCompleteValue: site.uri.spec,
           frecency: FRECENCY_DEFAULT,
         };
         this._result.setDefaultIndex(0);
         this._addMatch(match);
         return true;
       }