Closed Bug 1545110 Opened 7 years ago Closed 7 years ago

Unexpected search shortcut in Topsites

Categories

(Firefox :: New Tab Page, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 68
Iteration:
68.4 - Apr 29 - May 12
Tracking Status
firefox68 --- verified

People

(Reporter: nanj, Assigned: rrosario)

References

Details

(Keywords: github-merged)

Attachments

(1 file)

A Google search shortcut was added to the Topsites while google was chosen as the default search engine. Per bug 1520853, AS should not create a search shortcut if it's set as the default search engine.

STR:

  • Use a new profile in Nightly
  • Perform a few searches in the address bar with the default search engine
  • After a few newtab loads, a Google search will show up in the Topsites.

Expected:

AS won't create a Google search shortcut and add it to Topsites.

Bug 1520853 seems to be described and implemented relating to the default behavior for new profiles. I.e., don't create a google search shortcut for a new user on first run as the user can easily use google from the search box.

This bug would show up if google becomes a top site by the user frequently visiting google more than other sites, and it gets converted to a search shortcut. I'm not sure if this is a problem or not as the page is just trying to show the sites the user frequently visits.

See Also: → 1520853

(In reply to Ed Lee :Mardak from comment #1)

This bug would show up if google becomes a top site by the user frequently visiting google more than other sites, and it gets converted to a search shortcut. I'm not sure if this is a problem or not as the page is just trying to show the sites the user frequently visits.

I think the intention of this method was to filter out the current search engine from top sites: https://github.com/mozilla/activity-stream/blob/master/lib/TopSitesFeed.jsm#L129-L147

But I think it's getting short circuited in that second if statement?

So I guess the bug to look at would be bug Bug 1479478.

(In reply to Ricky Rosario [:rrosario, :r1cky] from comment #2)

But I think it's getting short circuited in that second if statement?

Hmm, or maybe that's just working as designed? I'm not sure :)

(In reply to Ricky Rosario [:rrosario, :r1cky] from comment #2)

But I think it's getting short circuited in that second if statement?

Oh.. right. I guess it was implemented this way to allow google to appear as a default search shortcut, but now that we don't... I guess that whole if block can be removed? ??

Mike, what's your take on this? Is it expected?

Flags: needinfo?(mconnor)

Google should not show up organically. That's the point of the filter (otherwise it'll quickly become a top site because of bug 1461844).

Flags: needinfo?(mconnor)
Assignee: nobody → rrosario
Iteration: --- → 68.4 - Apr 29 - May 12
Priority: -- → P1
Blocks: 1549863
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68

I have verified that this issue is no longer reproducible with the latest Firefox Nightly (68.0a1 Build ID - 20190509033505) installed, on Windows 10 x64, Arch Linux and Mac 10.13.3. Now, the "Google" search shortcut is no longer added to "Top Sites".

Status: RESOLVED → VERIFIED
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: