This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
hidden top site fixes you wouldn't believe existed #12470
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
address #12435
fix #12027
fix #12026
fix #11102
fix #5768
fix #5413
Test plan:
Please note that several topSites features are broken and tracked in #12435 (there's likely more issues). This PR only addresses what's covered by referenced issues.
Covered by
npm run test -- --grep="respects position of pinned items when populating results"
Manual test plan (ensure you're on a fresh profile first):
#12027
visit some websites and ensure they're on the topsites list. Restart browser several times, sites shouldn't be missing
#12026
visit some websites and ensure they're on the topsites list. Restart. You shouldn't see default topSites anywhere else as previous position (they shouldn't appear momentarily)
#11102
visit some websites and ensure they're on the topsites list. Restart. Visit other sites. Top sites shouldn't be missing
#5768
visit some websites and ensure they're on the topsites list. pin 2nd and 4th websites. Visited site should be stored in the first position.
#5413
bookmark any default topsite using the star icon inside tile. Shouldn't jump position. Visit some websites and repeat operation. They shouldn't jump positions.