Closed
Bug 1445769
Opened 6 years ago
Closed 6 years ago
Top Sites runs `refresh` at startup even when disabled
Categories
(Firefox :: New Tab Page, defect, P3)
Firefox
New Tab Page
Tracking
()
People
(Reporter: jryans, Assigned: andreio)
References
Details
Attachments
(1 file)
STR: 1. Disable Top Sites via the newtab gear UI * This sets the pref "browser.newtabpage.activity-stream.showTopSites" to false 2. TopSitesFeed.jsm#refresh is still called for at least the `INIT` action, leading to screenshot collection that will go unused
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
status-firefox60:
--- → wontfix
status-firefox61:
--- → fix-optional
Assignee | ||
Comment 1•6 years ago
|
||
Looks like the issue here is that we have 2 different prefs for controlling Topsites * browser.newtabpage.activity-stream.feeds.topsites decides if the feed gets initialized * browser.newtabpage.activity-stream.showTopSites decides if the section is visible And you would need to set both to false. This issue should probably focus on consolidating the pref into one. Sounds like a dependency for bug 1445158.
Blocks: 1445158
Assignee | ||
Comment 2•6 years ago
|
||
Do you know if there are any blockers preventing us from switching away from `showTopSites` and only use `feeds.topsites`?
Flags: needinfo?(khudson)
Comment 3•6 years ago
|
||
I can't really think of anything, but there might have been a reason we used a different pref – perhaps check the git history just in case?
Flags: needinfo?(khudson)
Comment 4•6 years ago
|
||
A related question is if there's anything that depends on TopSitesFeed running? E.g., TOP_SITES_UPDATED would no longer be dispatched and related TopSites.initialized would always be false? Or any actions that depend on the feed running? TOP_SITES_PIN / PREVIEW stuff are handled there but probably don't need to do anything if we aren't showing top sites… ?
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/bbd820cb2d33efe7ae53ec6c7a0848a3b1a2ee83 Fix Bug 1445769 - Top Sites runs `refresh` at startup even when disabled
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Assignee: nobody → andrei.br92
Iteration: --- → 61.3 - Apr 23
Comment 7•6 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9896401414cb
Target Milestone: --- → Firefox 61
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
•