-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
Separators on Bookmarks-bar are Vertical rather than Horizontal #1846
Merged
marcelklehr
merged 19 commits into
floccusaddon:develop
from
macrogreg:bookmarks-bar-separators
Feb 1, 2025
Merged
Changes from 8 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0f99ec6
Titles of horizontal separators are better visible consecutive lines.
macrogreg 67d30bb
Create vertical separators on the Bookmarks Bar
macrogreg 6f95334
Tests for vertical separators on the Bookmarks Bar
macrogreg 785f2a7
Translate _locales/en/messages.json in zh_CN
transifex-integration[bot] a199cb7
Fix typos
macrogreg 1341d31
For local development for Firefox.
peter-lyons-kehl 9e3eacd
Merge pull request #1848 from peter-lyons-kehl/manifest-firefox-override
marcelklehr b9a2add
Fix indentation
macrogreg d81610c
Fix trailing spaces
macrogreg b64822a
Fix link issues in files unrelated to overall change
macrogreg fc13881
Add Win-specific npm build scripts
macrogreg 460c9cc
Merge branch 'bookmarks-bar-separators' of github.com:macrogreg/flocc…
marcelklehr 3dce2a9
fix(BrowserTree#getBookmarksTree): Pass parent node to next recursion
marcelklehr 6d20625
fix(separator tests): Set correct separator ids and create artificial…
marcelklehr bab3214
Make sure that only the actual toolbar gets separator special casing
macrogreg ce0da59
Add a unit test to validate that separators are converted correctly
macrogreg f8fe422
Delete files that cause sync artifacts
macrogreg b01c149
Reset files that caused sync artifacts
macrogreg 88389ef
Include separator improvements in changelog.
macrogreg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work, sadly :)
You'll need to create stuff inside the
localRoot
FolderThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or change the localRoot field of the account being synced as is done in a few tests that test syncing the browser root folder, but just creating a folder called Bookmarks bar inside the localRoot should work, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I am not sure. In the prod code, we use that magic node id to test whether this is the bookmark bar:
And then, we use the result of that check to control behavior:
So for the test, we need to control the nodes in the folder with the magic node id - that's the "Bookmarks Toolbar" folder. This all only matters on Firefox, because it is the only browser that supports separators. And on Firefox, the Bookmarks Bar should always be there.
Here is some info:
https://bugzilla.mozilla.org/show_bug.cgi?id=1071505
So, I think that the initial approach
should "just work".
I'll play around with the tests a little more and will see what comes out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: Based on the latest test failure, it looks like your approach to do
does, actually work, and the only reason for the failure is the ordering of the folder branches.
However, based on the above reasoning, I am surprised. It should not actually work.
I think the explanation is this: You set the title to be
'Bookmarks Bar'
and the prod code applies the special logic to any folder named like that. Even if it is not the actual bookmark bar. In fact, the name for that folder in the Englisch Firefox is "Bookmarks Toolbar".To address this I will try changing the prod code to only perform the special casing if the actual toolbar is processed. I will also see if I can fix the test. I will let you know how far I get.