This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 973
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring, Bug fixes, and tests for top sites on about:newtab
Bookmarking items does not affect position Fixes #5413 Sites are ordered by most visited (count) DESC Fixes #5322 Groundwork laid for #5565, but the task is unfinished as-is. ----- These commits moving existing logic from newtab.js into the session helper. Tests were then added and I manually tested each scenario and tried to make sure tests cover those. Things which are not covered are marked with TODO(bsclifton) The important thing: appState.about.newtab.sites no longer persists a separate copy of the sites array. It instead uses the location/partion of items saved to lookup the real object from appState.sites. ----- Auditors: @cezaraugusto, @bbondy
- Loading branch information
Showing
4 changed files
with
157 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.