Skip to content
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

Other bookmarks is missing, breaking bookmarks API #7639

Closed
Johann999 opened this issue Jan 7, 2020 · 51 comments · Fixed by brave/brave-core#4404
Closed

Other bookmarks is missing, breaking bookmarks API #7639

Johann999 opened this issue Jan 7, 2020 · 51 comments · Fixed by brave/brave-core#4404

Comments

@Johann999
Copy link

Dear Brave,

isn't it frustrating if after the update to version 1.2.41 instead of "Other bookmarks"only ">>" sees?!

The bookmark changes are unnecessary, bring no benefits and only annoy the users.
The structure and layout of the bookmarks has proven itself for many years. There was no reason to change this. Brave is now no longer compatible with other Chromium based browser.

Please undo changes to bookmarks.

Thank you

@bsclifton
Copy link
Member

bsclifton commented Jan 7, 2020

This was intentionally removed when solving #5158

Removing this was needed to prevent problems with syncing Desktop w/ iOS/Android

Closing as wontfix for now

cc: @rebron @darkdh @jhreis @kjozwiak for additional comments

@Hardtarget24
Copy link

Unfortunately with this new patch the Other Bookmarks folder is no longer anchored to it's own area on the right hand side of the bookmarks bar. This is an issue for me personally and not expected behaviour from a chromium based browser. (and honestly although seemingly minor this change, if intended, will most likely force me to stop using Brave and it's really disruptive to my workflow)

I'm hoping this can be fixed somehow.

@bsclifton
Copy link
Member

per @rob4226 via #5158 (comment)

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.

@bsclifton
Copy link
Member

Going to re-open this; @rebron and @darkdh are looking into this, after comment by @nero120 via #5158 (comment)

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:

Brave offers support for nearly all extensions that are compatible with chromium.

to something like

Brave offers support for some extensions that are compatible with chromium (up to you to work out which though)

Any guidance would be appreciated!

@bsclifton bsclifton reopened this Jan 8, 2020
@bsclifton bsclifton changed the title Other bookmarks Other bookmarks is missing, breaking bookmarks API Jan 8, 2020
@bridiver
Copy link
Contributor

bridiver commented Jan 8, 2020

I wasn't personally a big fan of the change to remove "Other Bookmarks", but (unfortunately ;) I don't always get my way. In any case I can tell you with a high degree of certainty that this change is here to stay. We have had extensive (and heated) discussions about this and it's not likely to change. What could change here is how things are presented in the bookmarks api so that Brave looks like it has the same bookmark structure as Chrome. Basically a kind of "shadow" node that is actually a reference to the bookmarks bar, but appears to be "other bookmarks" in the api. However, breakage in the known extensions could easily be fixed without any changes to Brave and at least one of them relies on undocumented node ids which are not part of the API and hence not even guaranteed to be compatible across chromium versions

@antonycourtney
Copy link

( Moving discussion here from #5158 )

@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

Agree this is disappointing.

For what it's worth, Tabli doesn't depend on a fixed node ID. It does depend on tree.children[1] being the "Other Bookmarks" folder, where tree is the root returned from chrome.bookmarks.getTree.
Not great, although I also think that looking for "Other Bookmarks" by name off the root also would have broken with this change.

The only mention I've found about the contents of the root folder in the API docs is this (on the chrome.bookmarks API page):

image

After this change in Brave, are there any guarantees about what will be in the root folder in Brave?
Is "Other Bookmarks" replaced by a folder named "Bookmarks", a folder that exists at the same level as "Bookmarks", a sub-folder of "Bookmarks", or something else? It's really not clear from all the screenshots above.

@bridiver suggested either leaving the parent id blank or using children.length - 1 as the index when creating the folder used by my extension.

I'd like to do the right thing for Brave users. My hunch is that my extension creating a "Tabli Saved Windows" folder on the Bookmarks Bar in Brave isn't going to be an ideal user experience. "Other Bookmarks" is really a pretty reasonable place for this, but it's not entirely obvious to me if there is an approved replacement for that in Brave.

@nero120
Copy link

nero120 commented Jan 8, 2020

For what it's worth, Tabli doesn't depend on a fixed node ID. It does depend on tree.children[1] being the "Other Bookmarks" folder, where tree is the root returned from chrome.bookmarks.getTree.
Not great, although I also think that looking for "Other Bookmarks" by name off the root also would have broken with this change.

FYI, you can't really query by name (title) since they are different for each language!

@antonycourtney
Copy link

I wasn't personally a big fan of the change to remove "Other Bookmarks", but (unfortunately ;) I don't always get my way. In any case I can tell you with a high degree of certainty that this change is here to stay. We have had extensive (and heated) discussions about this and it's not likely to change. What could change here is how things are presented in the bookmarks api so that Brave looks like it has the same bookmark structure as Chrome. Basically a kind of "shadow" node that is actually a reference to the bookmarks bar, but appears to be "other bookmarks" in the api. However, breakage in the known extensions could easily be fixed without any changes to Brave and at least one of them relies on undocumented node ids which are not part of the API and hence not even guaranteed to be compatible across chromium versions

If Brave provided a root node with a replacement folder for "Other Bookmarks" at position 1 in the children list, I'm pretty sure this would instantly fix the Tabli extension.

@edsimpsons83
Copy link

edsimpsons83 commented Jan 9, 2020

This is really disappointing and very user hostile. Moved my entire family over to Brave during the holidays for improved security and woke up to txts this morning asking why their bookmarks have moved around. With Chrome controlling ~70% of the browser market, the vast majority of people switching to Brave expect the "Other Bookmarks" folder to be on the right, not mixed in with their normal bookmarks.

@georapbox
Copy link

This was intentionally removed when solving #5158

Removing this was needed to prevent problems with syncing Desktop w/ iOS/Android

Closing as wontfix for now

cc: @rebron @darkdh @jhreis @kjozwiak for additional comments

Even after solving #5158 the sync issues still remain though. Trying to sync my Mac with android ended up with duplicate folders or missing bookmarks.

@bridiver
Copy link
Contributor

bridiver commented Jan 9, 2020 via email

@bridiver
Copy link
Contributor

bridiver commented Jan 9, 2020 via email

@bridiver
Copy link
Contributor

bridiver commented Jan 9, 2020

This was intentionally removed when solving #5158
Removing this was needed to prevent problems with syncing Desktop w/ iOS/Android
Closing as wontfix for now
cc: @rebron @darkdh @jhreis @kjozwiak for additional comments

Even after solving #5158 the sync issues still remain though. Trying to sync my Mac with android ended up with duplicate folders or missing bookmarks.

This is something we have discussed and it seems silly to me that we don't match up bookmarks by name/url/folder. I can't see any reason why anyone would intentionally create a duplicate of a bookmark in the same folder cc @davidtemkin, however that is a separate issue that should have its own ticket. Also there are other outstanding issues with the sync implementation that are being fixed for missing bookmarks, etc...

@BrendanEich
Copy link
Member

@antonycourtney @edsimpsons83 This was a mistake, we will fix as best we can. Sorry about it and please stay tuned.

@nsy16
Copy link

nsy16 commented Jan 12, 2020

It would be nice to get my xBrowserSync extension working again. Only started using Brave since November last year after considering many alternative browsers.

@z7r1k3
Copy link

z7r1k3 commented Jan 13, 2020

Yes, due to lack of 1st-party implementations for every platform (talking about things like Arch Linux here) I have a need for other browsers sometimes, so xBrowserSync functionality is a must. It sounds like based off of what @BrendanEich is saying that you guys are planning on undoing the removal of the dedicated "Other Bookmarks" folder, but if you go the route of making "Other Bookmarks" an alias, please do not make it for the Bookmarks Bar, but instead a folder called "Other Bookmarks" that can be put wherever on the Bookmarks Bar. Otherwise we'll have a mess on our hands with any extensions that sync Bookmarks.

@mcmxcdev
Copy link

mcmxcdev commented Jan 13, 2020

For me it happened that after brave auto-updated, all my 2000+ bookmarks disappeared, because https://www.everhelper.me/synchronizer.php couldn't deal with the changes.

@nsy16 and others, I recommend to install Brave version 1.1.23 temporarily to have the old bookmarks structure back and sync it, works for me.

@bsclifton
Copy link
Member

bsclifton commented Feb 23, 2020

Fix has landed and should now be in Nightly (1.7, which is slated for Release channel on April 28). Next step would be planning the back-port of this (ex: Dev 1.6/April 7, Beta 1.5/Mar 17, Release 1.4/Feb 25)

@kjozwiak @rebron @davidtemkin would this be something we want for 1.4? (upcoming release channel). Or would we want to shoot for 1.5 or 1.6? (give the fix a little more time to bake)

@jerrykrinock
Copy link

To summarize: There was some difficulty with bookmarks syncing, and it was determined that the complicated and ill-defined bookmarks structure inherited from Chrome was preventing a clean solution. Now, after the migration to a simpler structure has been in the field, it is decided to revert to the original structure. Our brave developers shall, without noticeable disruption, reverse-migrate users, some of whom may have several synced devices, some migrated and some not, using various versions of Brave, back to the original structure. And then, I presume, solve the original syncing difficulty.

This will be a very impressive accomplishment.

@nero120
Copy link

nero120 commented Feb 23, 2020

@jerrykrinock out of interest, what exactly was so difficult about syncing the original chrome bookmarks structure?

@jerrykrinock
Copy link

@nero120 First of all, I'm not with Brave. I am just an bookmarks-related extension deveIoper who subscribed to this issue because I need to support Brave's past and future changes.

To answer your question, I'm just recalling what I read, maybe it was in the Brave forums or maybe it was in the original issue wherein they decided to remove Other Bookmarks. And I do recall that, in the original 2009 chrome.bookmarks API, the Other Bookmarks was not properly defined by Google, so I had to do some reverse engineering. I suspect it has something to do with the fact that synchronizing a tree is complicated enough if there is only one "hard" root item.

@gabrielmulle
Copy link

Another update, another version and another disappointment.
How can a famous browser in 2020 be this broken?
Yeah the fix is in nightly I saw, but I think I just wanted you to be this cautious before you have implemented the change that broke the bookmarks in the first place
This is extremely frustrating in the point of view of an end user.

@stmuk
Copy link

stmuk commented Feb 29, 2020

Fix has landed and should now be in Nightly (1.7, which is slated for Release channel on April 28). Next step would be planning the back-port of this (ex: Dev 1.6/April 7, Beta 1.5/Mar 17, Release 1.4/Feb 25)

@kjozwiak @rebron @davidtemkin would this be something we want for 1.4? (upcoming release channel). Or would we want to shoot for 1.5 or 1.6? (give the fix a little more time to bake)

I am right in thinking this fix isn't in Version 1.4.95?

@bsclifton
Copy link
Member

@stmuk this is currently only in Nightly (1.7)

Per our release schedule, 1.7 is scheduled to be publicly released on April 28

@rebron @kjozwiak should this fix be uplifted to 1.6? (scheduled for April 7). It's definitely too late to pull into 1.5 (scheduled for March 17)

@Johann999
Copy link
Author

Please correct the problem as soon as possible.
Thank you very much.

@jsecretan
Copy link

FWIW, @bsclifton I would say to try to uplift into 1.6.

@bsclifton
Copy link
Member

Actually- uplift may not be needed... current plan is to expedite 1.7 to April 7 😄 (skipping the 1.6 version)

@jerrykrinock
Copy link

jerrykrinock commented Mar 21, 2020

I see that 1.5 is now in production and 1.7 is now in beta. So is this true that 1.6 is being skipped? And that if anyone does have 1.6 (from a nightly or whatever), that 1.6 does not have Other Bookmarks?

@gabrielmulle
Copy link

gabrielmulle commented Apr 7, 2020

Actually- uplift may not be needed... current plan is to expedite 1.7 to April 7 😄 (skipping the 1.6 version)

I've been visiting the "About Brave" today to update brave and finally resolve this issue that is affecting us since January, but until now, no update. Do you know when the update will be released?

cc @bsclifton

@LaurenWags
Copy link
Member

LaurenWags commented Apr 7, 2020

Verified passed with

Brave 1.7.86 Chromium: 80.0.3987.163 (Official Build) (64-bit)
Revision e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS macOS Version 10.14.6 (Build 18G3020)

Verified test plan from brave/brave-core#4404

Migrate previous migration - Pass

  • Confirmed STR from test plan for this scenario
  • Note, if 'Other Bookmarks' is not at the end of the Bookmark Bar (it is somewhere in the middle), the migration will not occur. In this case, a new 'Other Bookmarks' folder is created as a permanent node

Virtual "Other Bookmarks" Mapping

  • Create - PASS

    • Device A macOS Mojave, Device B macOS Mojave, Device C iPad mini iOS 13
    • Confirmed all devices received folders as expected
  • Delete - PASS

    • Device A macOS Mojave, Device B macOS Mojave, Device C iPad mini iOS 13
    • Confirmed empty 'Other Bookmarks' on both desktop devices
  • Move - PASS

    • Device A macOS Mojave, Device B macOS Mojave, Device C Pixel 3 XL
  • Reorder - PASS

    • Device A macOS Mojave, Device B macOS Mojave, Device C Pixel 3 XL
  • Rename - FAIL

  • Late joined desktop(1) - PASS

    • Device A macOS Mojave, Device B macOS Mojave, Device C Pixel 3 XL
  • Late joined desktop(2) - PASS

    • Device A macOS Mojave, Device B macOS Mojave, Device C Pixel 3 XL

Other Scenarios I executed:

  1. Clean profile 1.7.x --> confirmed 'Other Bookmarks' is available on bookmarks manager

  2. Clean profile 1.5.x --> confirmed 'Other Bookmarks' is not available on bookmarks manager --> upgrade to 1.7.x --> confirmed 'Other Bookmarks' is available on bookmarks manager

  3. Upgrade profile from 1.1.x (Other Bookmarks exists):

  • Installed 1.1.23. (last version with 'Other Bookmarks' folder)
  • Confirmed presence of 'Other Bookmarks'
  • Added bookmarks/folders/both to 'Bookmarks' and 'Other Bookmarks' folders.
  • Upgraded to 1.2.41
  • Confirmed 'Other Bookmarks' is as per Desktop Bookmark Platform Alignment #5158 (quick checks of this only, sync never enabled)
  • Upgrade normally to 1.5.x
  • Confirmed 'Other Bookmarks' did not return to same place as 1.1.x
  • Upgraded on test channel 1.7.x
    --> Confirmed 'Other Bookmarks' is moved to permanent node as expected
    --> Confirmed 'Other Bookmarks' displays on bookmarks bar on right side
    --> Confirmed able to add a bookmark to 'Other Bookmarks' after migration
    --> Confirmed able to add a folder to 'Other Bookmarks' after migration
    --> Confirmed able to add a bookmark into the folder added in step above.

before upgrade to 1.7.x:
1 5 x from 1 2 x pre migration - addtl scenario1

after upgrade to 1.7.x:
1 5 x to 1 7 x migration addtl scenario1

Verification is in progress

Brave 1.7.86 Chromium: 80.0.3987.163 (Official Build) (64-bit)
Revision e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS Windows 10 OS Version 1803 (Build 17134.1006)

Migrate previous migration

  • Verified that the bookmarks from the Other bookmarks folder in 1.5.x is migrated to Other bookmarks permanent folder in 1.7.x - Migration works as successfully
    image

Virtual "Other Bookmarks" mapping

  • Create - PASS

Device A windows 1.7.x, Device B windows 1.8.x, Device C Android
Confirmed all devices received folders as expected

  • Delete - PASS

Device A windows 1.7.x, Device B windows 1.8.x, Device C Android
Confirmed empty 'Other Bookmarks' on both desktop devices

  • Move - PASS

Device A windows 1.7.x, Device B windows 1.8.x, Device C Android

  • Reorder - PASS

Device A windows 1.7.x, Device B windows 1.8.x, Device C Android

  • Rename - FAIL

Device A Desktop 1.7.x, Device B Desktop 1.8.x, Device C iPhone 8
Scenario does not behave as expected, encountered #9073 (comment) and logged brave/brave-ios#2458

  • Late joined desktop(1) - PASS

    • Device A windows 1.7.x, Device B windows 1.8.x, Device C iPhone8
  • Late joined desktop(2) - PASS

    • Device A A windows 1.7.x, Device B windows 1.8.x, Device C iPhone8
  • Performed general sync testing on clean and upgraded profile and it works fine

Verification passed on

Brave 1.7.92 Chromium: 80.0.3987.163 (Official Build) (64-bit)
Revision e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS Ubuntu 18.04 LTS

Migrate previous migration

  • Verified that the bookmarks from the Other bookmarks folder in 1.5.x is migrated to Other bookmarks permanent folder in 1.7.x - Migration works as successfully

Virtual "Other Bookmarks" mapping

  • Create - PASS

Device A Linux 1.7.x, Device B Linux 1.7.x, Device C Android
Confirmed all devices received folders as expected

  • Delete - PASS

Device A Linux 1.7.x, Device B Linux 1.7.x, Device C Android
Confirmed empty 'Other Bookmarks' on both desktop devices

  • Move - PASS

Device A Linux 1.7.x, Device B Linux 1.7.x, Device C Android

  • Reorder - PASS

Device A Linux 1.7.x, Device B Linux 1.7.x, Device C Android

  • Rename - FAIL
  • Late joined desktop(1) - PASS

    • Device A Linux 1.7.x, Device B Linux 1.7.x, Device C Android
  • Late joined desktop(2) - PASS

    • Device A Linux 1.7.x, Device B Linux 1.7.x, Device C Android
  • Performed general sync testing on clean and upgraded profile and it works fine

@rebron
Copy link
Collaborator

rebron commented Apr 7, 2020

Hi @gabrielmulle. We have a candidate build out now that we're testing, 1.7.86 and looking to make it available this Thursdaay.

@rebron
Copy link
Collaborator

rebron commented Apr 7, 2020

@jerrykrinock Sorry for the super late response but yes 1.6 did not have other bookmarks. Other bookmarks was added back in 1.7.6.

@jerrykrinock
Copy link

Thank you, @rebron. I found the release calendar a couple weeks ago. On April 3 I published an update to my apps which will supposedly handle bookmark imports and exports with all versions of Brave, with or without the hard Other Bookmarks. I also posted a support article explaining the situation and advising users to ignore the warnings and circuit breaker tripping which will presumably occur when large numbers of bookmarks are moved back into the resurrected hard Other Bookmarks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment