-
Notifications
You must be signed in to change notification settings - Fork 6
Fix where Chrome Other bookmarks is not id 2 #7
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
base: main
Are you sure you want to change the base?
Fix where Chrome Other bookmarks is not id 2 #7
Conversation
|
Hi Mike, Does "Other Bookmarks" always have the same id or does it change? What is the version of chrome where this happens? These builtin nodes was earlier identified by it's title "Bookmarks bar" and "Other bookmarks" (Chrome) but caused issues when system languages was not in English, see bug #2 and 149411b. Then class "BuiltinBookmark" was added and these built-in folders were found by the hard-coded id instead. |
|
Sorry should've included the version for Chrome which is 132.0.6834.197. I just checked again and it is the same ID, so it's not changing. I did create a new Chrome profile and it was "2". Language in Chrome settings:
|
|
Interesting.. Let me know if you're able to reproduce and we can come up with a solution that works for both cases:
|
|
In Chrome 134, the Bookmarks API introduced a
I happened to stumble upon this Chrome Developer blog post and they mention:
They showed an example of how the
Getting into that state without help is difficult, but it is possible. Here are the steps:
So I tried using If I understand the code correctly, the reason we grab the "other bookmarks" node (previous ID=2) is to use that node's title to replace all the "other bookmarks" with
There are some bugs that I've discovered. ID is not fixedThe ID is not fixed as stated here.
In this PR I've also now changed the bookmarks bar node id to be grabbed by Import bug of multi-special foldersIf you export, then import, it mashes them all under the same
I consider this a bug outside of scope of the PR, because it exists in the current production build regardless of this PR. I'm bringing awareness to it within this PR since I'm suggesting moving to |




Some old references state that the "Other bookmarks" is always id 2 but it can be unique.
This pull request changes it so that it finds the "Other bookmarks", and returns the "id" that it finds.
I have no idea how to reproduce this issue accurately to help you verify.
The picture below shows the "Other bookmarks" with a different id. This is a Chrome profile that is a few years on Windows 10.