-
Notifications
You must be signed in to change notification settings - Fork 218
Expose bookmarks on the Content Feed #442
Comments
I'm asking about JavaScript injection and if/when it will be added to GeckoView. |
thanks! see my comments elsewhere:
it may be easier to just use Gecko's Bookmarks engine directly. or the but, yeah JavaScript could be injected or we could pass the bookmarks as the Home URL on browser load/click of the Home icon, like so: and then the Content Feed could just listen for any hash changes, so the page wouldn't need to be refreshed: const getHash = () => window.location.hash.substr(1);
const parseBookmarks = hash => hash ? JSON.parse(hash).bookmarks : [];
let bookmarks = parseBookmarks(getHash());
window.addEventListener('hashchange', () => {
bookmarks = parseBookmarks(getHash());
}); |
GeckoView doesn't support the Gecko Bookmarks engine, that is desktop only. |
gotcha. which persistent data-storage API or structure would you suggest I consider using to create an MVP? master...cvan:bookmarks |
@bluemarvin Is there a GV API for this? |
GV does not have a bookmark API, it is the responsibility of the embedding application to support bookmarks. The android-components project may have a bookmark component. |
A bookmarks implementation is coming to Android Components. Opened a placeholder ticket for that. |
I am assuming that we are now done with this issue, since we've chosen a different way to implement it. |
Let's keep this open, since there is still discussion of exposing the Bookmarks in the Feed in future designs. Thanks for checking on this one. |
tracking this in #759 |
As exposed on #347 (comment)
TL;DR The idea is to be able to bookmark content from the FxR UI and show it on a specific category for that on the Content Feed.
Even so it could be an MVP before we have some proper UI/UX for the bookmarks on the FxR chrome, they both could coexist as they do right now on the new tab on Firefox Desktop.
The content feed should be able to remove bookmarks, although a two-ways API is encouraged for MVP we could just add them to a filter list on the localstorage for the page and just filter them from the list provided by the browser.
The text was updated successfully, but these errors were encountered: