-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't crash if Firefox hands us negative bookmark indices [#417]
Firefox will sometimes report that bookmarks are at negative indices in their parent folder, because of internal inconsistencies in the user's bookmarks DB. Work around this by clamping the index in `setPosition()` to positive values. We'll probably position the bookmark incorrectly, but we at least won't crash.
- Loading branch information
1 parent
fb5a2eb
commit f7fb218
Showing
2 changed files
with
29 additions
and
1 deletion.
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