Bug 1293710 - Group activity stream highlights by URL to avoid duplicates. r=ahunt

The same URL could be picked as highlight from history and from bookmarks.

MozReview-Commit-ID: 5vBHluZKfAN

--HG--
extra : rebase_source : 1fee3b2532670d0b9d472518f3648ee5b5bebb8e
This commit is contained in:
Sebastian Kaspari 2016-09-02 19:52:56 +02:00
parent de0e351a2d
commit e8e8706e93

View File

@ -1198,7 +1198,10 @@ public class BrowserProvider extends SharedBrowserDatabaseProvider {
"ORDER BY " + History.DATE_LAST_VISITED + " DESC " +
"LIMIT " + historyLimit + ")";
final String query = "SELECT DISTINCT * FROM (" + bookmarksQuery + " UNION ALL " + historyQuery + ");";
final String query = "SELECT DISTINCT * " +
"FROM (" + bookmarksQuery + " " +
"UNION ALL " + historyQuery + ") " +
"GROUP BY " + Combined.URL + ";";
return db.rawQuery(query, null);
}