Closed
Bug 1480508
Opened 6 years ago
Closed 6 years ago
Add Top Site Search Shortcuts automatically for new and existing users
Categories
(Firefox :: New Tab Page, enhancement, P1)
Firefox
New Tab Page
Tracking
()
People
(Reporter: k88hudson, Assigned: ahillier)
References
(Blocks 1 open bug)
Details
User Story
Attachments
(1 file)
We would like to automatically add a Top Site Search Shortcut to users' for existing users if they have an open (i.e. unpinned) tile available and the host name (google, amazon) is found in their top sites. Note that we should store some kind of state in persistent storage when we do this so that we do not add a second time if it is removed/edited/replaced.
Reporter | ||
Updated•6 years ago
|
Severity: normal → enhancement
Priority: -- → P2
Updated•6 years ago
|
Iteration: --- → 63.4 - Aug 20
Updated•6 years ago
|
Assignee: nobody → ahillier
Priority: P2 → P1
Summary: Add Top Site Search Shortcuts for automatically existing users who visit those sites → Add Top Site Search Shortcuts automatically for existing users who visit those sites
Comment 1•6 years ago
|
||
The logic for converting the available search engines to special @aliased search will need to be duplicated from bug 1480504. See https://phabricator.services.mozilla.com/D2681 where it does Services.search.getEngines() then checking _isDefault and a global Map of prefix name matching "Google" and "Amazon"
Comment 2•6 years ago
|
||
Later on, this might be cleaned up by having activity stream import ChromeUtils.import("resource://gre/modules/PlacesSearchAutocompleteProvider.jsm") to get the same Map ?
Assignee | ||
Comment 3•6 years ago
|
||
(See bug 1480509 comment 3) We will only add the @google search shortcut if the user doesn't have Google as their default search engine.
Updated•6 years ago
|
Summary: Add Top Site Search Shortcuts automatically for existing users who visit those sites → Add Top Site Search Shortcuts automatically for new and existing users
Comment 4•6 years ago
|
||
Update 8/6/18: Google/Amazon should be pinned in that order to the first open position in everyone's Top Sites (regardless of frecency).
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Commit pushed to master at https://github.com/mozilla/activity-stream https://github.com/mozilla/activity-stream/commit/725532f6f8e922944ab28c484f38a1c933770ab7 Fix Bug 1480508 - add topSiteSearchShortcuts for new and existing users (#4289)
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Comment 7•6 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/972b3c48c6e9
status-firefox63:
--- → fixed
Target Milestone: --- → Firefox 63
Comment 8•6 years ago
|
||
I have verified this on Windows 10 x64, Arch Linux and Mac 10.13.3 with the latest version of "Firefox Nightly" and I can confirm that the "Top Search Shortcuts" replace the existing top site cards of the same type (if those cards are unpinned) for older profiles, and if for new profiles, the "Top Site Search Shortcuts" are added automatically.
Status: RESOLVED → VERIFIED
Comment 9•6 years ago
|
||
https://hg.mozilla.org/releases/mozilla-beta/rev/9e752b54a20f425449e1f00bf3adefa903f8051a
status-firefox62:
--- → fixed
Comment 10•6 years ago
|
||
I have verified that the search shortcuts override preexisting Top Sites of the same type and that they are automatically added for new profiles in the latest Beta (62.0b18 Build ID 20180816151750) on Windows 10, Mac 10.13 and Arch Linux x64.
Updated•5 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•