Closed ayoy closed 1 week ago
Warnings | |
---|---|
:warning: | PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible. |
Generated by :no_entry_sign: dangerJS against fbf76370955ba902c3d7f3714e283eaad343c333
One thing that is different from the current production build is that in the production build, we are limited on how many favorites we can add; here, there is no limit. Is that on purpose?
@jotaemepereira sorry to only reply now to you about it. This seems to be done on purpose - the FE always offers to add a new favorite. This is currently being ship-reviewed for Windows and wasn't protested. We may still change this behavior going forward but for now, the native side doesn't have control on whether or not the "add favorite" and ghost buttons are displayed.
Task/Issue URL: https://app.asana.com/0/72649045549333/1208246350498753/f
Description: This change implements
NewTabPageFavoritesClient
that connects HTML NTP to favorites. The client talks to theNewTabPageUserScript
, and it uses a newly addedNewTabPageFavoritesModel
, which provides favorites array fromBookmarkManager
and delegates favorites-related actions toNewTabPageFavoritesActionsHandler
. Favicons are provided by FaviconsManager but need to be delivered to the web UI as "web assets" which means they're handled in DuckURLSchemeHandler.Steps to test this PR:
Definition of Done:
Internal references:
Pull Request Review Checklist Software Engineering Expectations Technical Design Template Pull Request Documentation