Bug 737841 - Part 1: ensure Places history properly handles redirecting and error visits.
authorMarco Bonardo <mbonardo@mozilla.com>
Sat, 07 Apr 2012 01:17:49 +0200
changeset 26416 81e2b205143d98d0c634e7f1d44c90f9dd95d80e
parent 26415 fc967da87da352b957e0d96286bdd9c7944dc241
child 26417 06f48f69a7496a6a56fcd03220761a2c920b3d41
push id1834
push userclokep@gmail.com
push dateMon, 23 Jan 2017 21:48:40 +0000
treeherdercomm-beta@293cffe83e59 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs737841
Bug 737841 - Part 1: ensure Places history properly handles redirecting and error visits. r=dietrich
suite/common/places/nsPlacesAutoComplete.js
--- a/suite/common/places/nsPlacesAutoComplete.js
+++ b/suite/common/places/nsPlacesAutoComplete.js
@@ -1314,16 +1314,17 @@ urlInlineComplete.prototype = {
     if (!this.__syncQuery) {
       // Add a trailing slash at the end of the hostname, since we always
       // want to complete up to and including a URL separator.
       this.__syncQuery = this._db.createStatement(
           "/* do not warn (bug no): could index on (typed,frecency) but not worth it */ "
         + "SELECT host || '/' "
         + "FROM moz_hosts "
         + "WHERE host BETWEEN :search_string AND :search_string || X'FFFF' "
+        + "AND frecency <> 0 "
         + (this._autofillTyped ? "AND typed = 1 " : "")
         + "ORDER BY frecency DESC "
         + "LIMIT 1"
       );
     }
     return this.__syncQuery;
   },