Closed
Bug 1445769
Opened 7 years ago
Closed 7 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)
(deleted),
text/x-github-pull-request
|
Details |
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•7 years ago
|
Priority: -- → P3
Updated•7 years ago
|
status-firefox60:
--- → wontfix
status-firefox61:
--- → fix-optional
Assignee | ||
Comment 1•7 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•7 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•7 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•7 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•7 years ago
|
||
Comment 6•7 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•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Assignee: nobody → andrei.br92
Iteration: --- → 61.3 - Apr 23
Comment 7•7 years ago
|
||
Target Milestone: --- → Firefox 61
Updated•5 years ago
|
Component: Activity Streams: Newtab → New Tab Page
Updated•5 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•