-
Notifications
You must be signed in to change notification settings - Fork 972
fix topsites never returning after exclusion #12806
Conversation
app/browser/api/topSites.js
Outdated
@@ -85,6 +89,7 @@ const getTopSiteData = () => { | |||
let sites = historyState.getSites(state) | |||
.filter((site, key) => !isSourceAboutUrl(site.get('location')) && | |||
!isPinned(state, key) && | |||
!isIgnored(state, site.get('key')) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use just key
here same as for isPinned
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok done
c04a787
to
341fdb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming a clean profile, if I use the STR from the Test Plan Description I don't get a 6th tile.
If I follow the STR from #10411 (comment) I do get a 6th tile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test plan works for me. It does take a second to show the new tile. It seems that I have to also have to switch to that tab in order for the icon to load (which then creates the tile). ++
Codecov Report
@@ Coverage Diff @@
## master #12806 +/- ##
==========================================
+ Coverage 56.09% 56.11% +0.01%
==========================================
Files 279 279
Lines 27309 27314 +5
Branches 4444 4445 +1
==========================================
+ Hits 15319 15326 +7
+ Misses 11990 11988 -2
|
341fdb3
to
c77674e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both scenarios tried in #12806 (review) work as expected :)
fix topsites never returning after exclusion
fix topsites never returning after exclusion
cc @LaurenWags
fix #10411
STR:
Please note that we debounce all newtab page data so the sixth tile will be shown only after a new site visit, even if you have other sites on the list.