-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Desktop Bookmark Platform Alignment #5158
Comments
Verified passed with
Verified test plan from brave/brave-core#3620 Old Brave:
Other Bookmarks on clean profile Other Bookmarks on upgraded profile without sync
Other Bookmarks with sync - both devices on old Brave
Other Bookmarks with sync - Device A(New Brave), Device B(Old Brave) Other Bookmarks with sync - Device A(New Brave), Device B(New Brave)
Verification passed on
Other Bookmarks with sync disabled - Old Brave
Launch New brave (Bravebeta 1.2.39 ) with old profile 1.1.23
Other Bookmarks with sync - Device A(New Brave), Device B(Old Brave)
Verification PASSED on
Renaming
|
This update on Windows 10 just broke a bookmark extension xBrowserSync and I had no idea why all day until I finally looked here. Is there any way to change it back (with syncing off), unnesting the Other Bookmarks folder? Thank you. |
This broke having "Other Bookmarks" being on the right side in a separate area of the bookmarks bar. how do we get this functionality restored? |
@Hardtarget24 there's an issue up at #7639 if you want to leave a comment (and subscribe for updates) I had closed as |
As this change potentially breaks compatibility with any extension that uses the bookmarks api, what's the plan for dealing with that? Will you be launching your own extensions store shortly since extension authors that use the bookmarks api will now need to provide a separate build for brave...? I suppose you'll need to update this page from:
to something like
Any guidance would be appreciated! |
I've done that but I think this issue has larger complications than you guys realized based on nero and rob's replies. |
I'm the author of the Tabli tab manager extension for Chrome (https://chrome.google.com/webstore/detail/tabli/igeehkedfibbnhbfponhjjplpkeomghi). I never tested with Brave, but users reported successfully using Tabli with Brave, until today... Is there anything like a compatibility guide for extension authors, providing some guidance on how to deal with bookmarks stored under "Other Bookmarks" to support both Chrome and Brave in the presence of this change? Was there any staging of this change, such as an interim release before making the breaking change that would log and warn about extensions with this implicit dependency on "Other Bookmarks", or an attempt to warn users or extension of authors of impending breakage? |
if you are trying to create bookmarks in the "Other Bookmarks" folder you should just leave the parentId blank. That will work correctly in Chrome and Brave. |
by "correctly" I mean that it will go in the default folder which is "Other Bookmarks" on Chrome and the bookmarks bar on Brave |
another option would be to use |
Also relying on undocumented fixed bookmark node ids seems dangerous to me. We could potentially make changes to the bookmarks api to create a "shadow" node to have the same number of children as chrome, but this issue is closed and a new issue should be opened for this so it can be appropriately triaged and assigned a priority. |
The active issue is #7639 |
Thanks for the tip, I'll test this and report back as soon as I can.
Could not agree with you more, it is a real shame that the chromium devs didn't include methods to retrieve container nodes when they originally implemented the bookmarks API. |
@nero120 I was surprised they didn't have constants for the bookmarks bar and other bookmarks node. I expected to find them in the api docs and use it as a potential fix inside the api |
@bridiver there have been instances whereby a few of my Chrome users have reported issues in the past that lead to the discovery that their Chrome bookmarks data file has different ids for other bookmarks and bookmarks bar. Could be that the ids are not fixed for these nodes by design, hence no constant. I don't know how the internal browser code identifies these nodes, but it can't be by id obviously. Though as I said before, shame they didn't include API methods that use the same logic to return the node(s). |
well, there are different ways they could handle the constant in the c++ code so it works even if the actual ids are not deterministic, but in any case it does seem odd that the only apparent way to accurately identify them is by folder name |
@bridiver you can't even do that as the container node title values are different for each language 😭 |
I moved my comments over to open issue #7639. Propose we continue the discussion there. |
I guess in that case maybe array index is the best option, but I think length - 1 may not work correctly on Chrome if you have mobile bookmarks from android
… On Jan 8, 2020, at 4:07 PM, Rich ***@***.***> wrote:
@bridiver you can't even do that as the container node title values are different for each language 😭
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Actually you could use the l10n apis to handle that, no?
… On Jan 8, 2020, at 4:07 PM, Rich ***@***.***> wrote:
@bridiver you can't even do that as the container node title values are different for each language 😭
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thought you could only access your own locale strings using that API? |
Right, but you would search based on the localized string so it should always match. |
Sorry I meant that the extension would need to package the strings itself for every locale, like so:
Possible but horrid! Would be far better for the bookmarks API to present a way to request container nodes. |
Ok, I assumed |
Yeah that would have been useful, but I believe the API only access your own implemented I18n strings, not internal browser ones. There are some predefined strings but nothing that would help us. |
Haha, that's great, so you have either 2 or 3 root nodes (depending on whether or not you're syncing with mobile) and the only way to identify them is to hope they're in the order you expect them to be in? I guess you could create a bookmark without specifying the
|
and fyi - in the c++ code there are several ways to get the nodes
and
|
Description
Please carefully read this in its entirety, and if any issues are known, please raise them before starting work. If any of the below are discovered to be impossible during development, please raise concerns before completing the rest of the items, as these are all tightly coupled together.
Currently each Brave platform has variations to bookmarks that can often lead to unexpected syncing behavior. The following changes are outlined to help align desktop with the mobile platforms and how bookmarks are presented to the user.
The main change surrounds the function of “Other Bookmarks” on Chromium. Most changes outlined below related solely to UI modifications. The main exception to this is a migration process to move some bookmarks to a new folder.
UI Menu Changes
The menu items below are currently always present, and should be hidden from the user completely.
1. Hide/Delete “Other Bookmarks” from “Bookmark Manager”:
2. Hide/Delete “Other Bookmarks” from Bookmark Edit menu:
3. Hide/Delete “Other Bookmarks” from Bookmark Ad menu:
Other Changes
4. Migration Bookmarks inside “Other Bookmarks” to new folder.
The new folder will share the exact same title as “Other Bookmarks”. It should be noted that the title of this folder is localized, and should not just be titled “Other Bookmarks”, but should be titled with the literal string.
The newly created “Other Bookmarks” folder should be inside the “Bookmarks Bar” folder (see step 5 below for additional note on this).
All user bookmarks from the Chromium “Other Bookmarks” should be moved into this folder. This folder has no special permissions, it is the same as a user-created folder. e.g. the user can rename it, delete it, move it, etc…
See screenshot for expected outcome. Notice that "Other Bookmarks" is no longer a root node, and is nested under the only present root node.
5. Remove "Bookmarks Bar" node in Bookmark Manager (or rename)
Ideally "Bookmarks Bar" would also be removed from the Bookmark Manager, and bookmarks just listed linearly:
6. Rename "Bookmarks Bar" to just "Bookmark" on edit / add menu for bookmarks (if possible)
Rename the two menus below:
Miscellaneous Information:
Please have @jhreis review any associated PRs to verify behavior.
Reproduces how often:
N/A
Brave version (brave://version info)
N/A
Version/Channel Information:
Other Additional Information:
The text was updated successfully, but these errors were encountered: