-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NTP: Prevent top sites interface from handling duplicated site entries #5173
Conversation
I had a broken top sites profile and tested the macOS version of PR build is working properly now for my top sites, no duplicate top sites and no overflow of top sites into a second or third row. Removing top sites and undoing is also working. |
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.
LGTM
@@ -115,3 +115,29 @@ export function filterFromExcludedSites ( | |||
.every((removedSite: NewTab.Site) => removedSite.url !== site.url) | |||
}) | |||
} | |||
|
|||
export function equalsSite ( |
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.
nit: Should this method has export
because it is only used in this file?
Just created uplift with #5219 😄 |
@cezaraugusto ran throught the PR on
On existing profile with top tiles running Verification PASSED on
Downloaded Upgraded to |
Fix brave/brave-browser#9008
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Covered by automated tests
npm run test-unit
(Manual) Test Plan
typing
chrome.topSites.get(site => console.log(site))
in your NTP console outputs more than one result (this bug only happens in existing profiles w/ top sites).👉👉👉👉👉👉👉Code you need to copy 👈👈👈👈👈👈👈
Reviewer Checklist:
After-merge Checklist:
changes has landed on.