зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1248617 - Stop adding the "Recently bookmarked" smart folder in new profiles. r=mak
--HG-- extra : rebase_source : 44a5834a80bde4e8cc654a723035e6494ae288b8
This commit is contained in:
Родитель
c1f62b800f
Коммит
38bb67e338
|
@ -2223,7 +2223,7 @@ BrowserGlue.prototype = {
|
|||
// be set to the version it has been added in. We will compare its value
|
||||
// to users' smartBookmarksVersion and add new smart bookmarks without
|
||||
// recreating old deleted ones.
|
||||
const SMART_BOOKMARKS_VERSION = 7;
|
||||
const SMART_BOOKMARKS_VERSION = 8;
|
||||
const SMART_BOOKMARKS_ANNO = "Places/SmartBookmark";
|
||||
const SMART_BOOKMARKS_PREF = "browser.places.smartBookmarksVersion";
|
||||
|
||||
|
@ -2256,18 +2256,6 @@ BrowserGlue.prototype = {
|
|||
parentGuid: PlacesUtils.bookmarks.toolbarGuid,
|
||||
newInVersion: 1
|
||||
},
|
||||
RecentlyBookmarked: {
|
||||
title: bundle.GetStringFromName("recentlyBookmarkedTitle"),
|
||||
url: "place:folder=BOOKMARKS_MENU" +
|
||||
"&folder=UNFILED_BOOKMARKS" +
|
||||
"&folder=TOOLBAR" +
|
||||
"&queryType=" + queryOptions.QUERY_TYPE_BOOKMARKS +
|
||||
"&sort=" + queryOptions.SORT_BY_DATEADDED_DESCENDING +
|
||||
"&maxResults=" + MAX_RESULTS +
|
||||
"&excludeQueries=1",
|
||||
parentGuid: PlacesUtils.bookmarks.menuGuid,
|
||||
newInVersion: 1
|
||||
},
|
||||
RecentTags: {
|
||||
title: bundle.GetStringFromName("recentTagsTitle"),
|
||||
url: "place:type=" + queryOptions.RESULTS_AS_TAG_QUERY +
|
||||
|
|
|
@ -40,7 +40,7 @@ updateAppInfo({
|
|||
// Smart bookmarks constants.
|
||||
const SMART_BOOKMARKS_VERSION = 7;
|
||||
const SMART_BOOKMARKS_ON_TOOLBAR = 1;
|
||||
const SMART_BOOKMARKS_ON_MENU = 3; // Takes into account the additional separator.
|
||||
const SMART_BOOKMARKS_ON_MENU = 2; // Takes into account the additional separator.
|
||||
|
||||
// Default bookmarks constants.
|
||||
const DEFAULT_BOOKMARKS_ON_TOOLBAR = 1;
|
||||
|
|
|
@ -65,7 +65,6 @@ detailsPane.noItems=No items
|
|||
detailsPane.itemsCountLabel=One item;#1 items
|
||||
|
||||
mostVisitedTitle=Most Visited
|
||||
recentlyBookmarkedTitle=Recently Bookmarked
|
||||
recentTagsTitle=Recent Tags
|
||||
|
||||
OrganizerQueryHistory=History
|
||||
|
|
|
@ -270,7 +270,7 @@ function backgroundScript() {
|
|||
return browser.bookmarks.search("Menu Item");
|
||||
}).then(results => {
|
||||
browser.test.assertEq(1, results.length, "Expected number of results returned for menu item search");
|
||||
checkBookmark({title: "Menu Item", url: "http://menu.org/", index: 4, parentId: bookmarkGuids.menuGuid}, results[0]);
|
||||
checkBookmark({title: "Menu Item", url: "http://menu.org/", index: 3, parentId: bookmarkGuids.menuGuid}, results[0]);
|
||||
|
||||
// finds toolbar items
|
||||
return browser.bookmarks.search("Toolbar Item");
|
||||
|
|
Загрузка…
Ссылка в новой задаче