Skip to content
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

Duplicated top site entries after update #9008

Closed
congard opened this issue Apr 3, 2020 · 5 comments · Fixed by brave/brave-core#5173
Closed

Duplicated top site entries after update #9008

congard opened this issue Apr 3, 2020 · 5 comments · Fixed by brave/brave-core#5173

Comments

@congard
Copy link

congard commented Apr 3, 2020

Description

After updating to the last nightly and opening Google Translate from top sites bar, this bug occurred. Instead of my sites, there were only pinned ones. In addition, the GitHub icon has disappeared (perhaps the disappearance of the GitHub icon is due to its updating?).

Steps to Reproduce

  1. Update to last nightly
  2. Open something from top sites bar

Actual result:

Screenshot_20200403_134055

Expected result:

List of my top sites and correct displaying of GitHub icon.

Reproduces how often:

N/A

Brave version (brave://version info)

Brave: 1.9.1 Chromium: 81.0.4044.83 (Official build) unknown (64-bit)
Version: 5718ca617723806b9aacfb41108a0d911d1bde74-refs/branch-heads/4044@{#853}
OS: Linux

Version/Channel Information:

  • Q: Can you reproduce this issue with the nightly channel? A: Yes

Other Additional Information:

  • Q: Does the issue resolve itself when disabling Brave Shields? A: No
  • Q: Does the issue resolve itself when disabling Brave Rewards? A: No
  • Q: Is the issue reproducible on the latest version of Chrome? A: Yes
@cezaraugusto
Copy link
Contributor

Hi @congard, did you take any action before this bug happened like pinned/excluded/re-ordered top sites?

@cezaraugusto
Copy link
Contributor

Also if you don't mind, could you send me (either in this thread or Twitter DM if you prefer, same username @cezaraugusto) your NTP localStorage file? Here's the steps:

  1. Go to brave://newtab and open the developer tools (context menu -> inspect).
  2. Find the console tab, click
  3. Paste the following:
    3.1 JSON.parse(localStorage.getItem('new-tab-data')).pinnedTopSites
    3.2 JSON.parse(localStorage.getItem('new-tab-data')).ignoredTopSites
    3.3 JSON.parse(localStorage.getItem('grid-sites-data-v1')).gridSites
    3.4 JSON.parse(localStorage.getItem('grid-sites-data-v1')).topSites

Please note that we do not store this information and it's only available in your computer (specifically your new tab). I'm requesting it because your top sites data appear to be corrupted after the update and I need a broken profile to try to reproduce your issue. Thanks for reporting!

@congard
Copy link
Author

congard commented Apr 3, 2020

Hi @cezaraugusto, I didn't do anything before this happened. Just updated the browser.
3.1. undefined
3.2. undefined
3.3.
Screenshot_20200403_232825
Screenshot_20200403_232906

3.4. undefined

@cezaraugusto cezaraugusto changed the title Wrong top sites bar Duplicated top site entries after update Apr 7, 2020
@cezaraugusto cezaraugusto added this to the 1.9.x - Nightly milestone Apr 7, 2020
@cezaraugusto
Copy link
Contributor

Thanks @congard, with the data you shared I was able to reproduce and just opened a pull-request.

@kjozwiak
Copy link
Member

kjozwiak commented Apr 29, 2020

Verification PASSED on macOS 10.15.4 x64 Catalina using the following build:

Brave | 1.8.86 Chromium: 81.0.4044.129 (Official Build) (64-bit)
-- | --
Revision | 3d71af9f5704a40b85806f4d08925db24605ba25-refs/branch-heads/4044@{#979}
OS | macOS Version 10.15.4 (Build 19E287)

Went through the cases outlined under brave/brave-core#5173 (comment) and brave/brave-core#5173 (comment) x2 times to ensure everything was working as expected.

Populated several tiles on the NTP using 1.7.98 CR: 81.0.4044.113 as per the following:

Screen Shot 2020-04-28 at 11 40 59 PM

Updated to 1.8.86 CR: 81.0.4044.129 and ensured that I didn't lose any tiles on the NTP:

Screen Shot 2020-04-28 at 11 42 21 PM

Used the script from brave/brave-core#5173 (comment) and ensured that both https://translate.google.com and https://github.com/congard where added in the correct positions:

Screen Shot 2020-04-28 at 11 45 13 PM


Verification passed on

Brave | 1.8.86 Chromium: 81.0.4044.129 (Official Build) (64-bit)
-- | --
Revision | 3d71af9f5704a40b85806f4d08925db24605ba25-refs/branch-heads/4044@{#979}
OS | Windows 10 OS Version 1803 (Build 17134.1006)

Went through the cases outlined under brave/brave-core#5173 (comment) and brave/brave-core#5173 (comment) and ensure everything was working as expected.

Populated several tiles on the NTP using 1.7.98 CR: 81.0.4044.113 as per the following:
image

Updated to 1.8.86 CR: 81.0.4044.129 and ensured that I didn't lose any tiles on the NTP:
image

Used the script from brave/brave-core#5173 (comment) and ensured that both https://translate.google.com and https://github.com/congard where added in the correct positions:
image

  • Launched duplicate pinned top tiles profile using 1.8.86 and ensured that there are no duplicate pinned top tiles when NTP is opened in 1.8.86, also verified new top tiles can be added and pinned in NTP.
  • Populated 6 top tiles in 1.7.98 and pinned 3 sites in NTP and upgraded to 1.8.86 and ensured that top tiles are not lost also there are no duplicate pinned top tiles when NTP is opened
  • Populated 6 top tiles in clean profile 1.8.86 and pinned 3 sites and bookmarked 3 sites and restarted the browser, browser restart did not lose any top tiles, and position of top tiles is retained and ensured that pinned top tiles cannot be excluded and position of the top tiles can be changed by drag and dropping the top tiles and bookmarks can be unbookmarked and top tiles can be excluded and restore all at once.

Verification passed on

Brave 1.8.86 Chromium: 81.0.4044.129 (Official Build) (64-bit)
Revision 3d71af9f5704a40b85806f4d08925db24605ba25-refs/branch-heads/4044@{#979}
OS Ubuntu 18.04 LTS

Upgraded from 1.7.98. Verified no duplicate top sites.
Before upgrade:
image
After upgrade
image

Verified test plan from brave/brave-core#5173
Used the script to generate duplicate top sites.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment