-
-
Notifications
You must be signed in to change notification settings - Fork 192
Key bindings lost on update. #1477
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
Comments
I am no longer certain that this isn't a straight Firefox bug. Debugging the extension while in the broken state shows that we should be getting everything for the key bindings in question, browser.commands has them, with the correct shortcuts, and onCmd is properly registered. But for key sequences that were bound before the extension upgrade, we just don't get called. |
Looks like the same thing I run into: #1470 |
Finally, I've managed to reproduce this Firefox bug! Thanks, @zelch and @visua0! |
@visua0 I've been having this issue the past 2 weeks too, likely after one of the recent Firefox upgrades. Glad this isn't caused by any of the Firefox scripts I have or Sidebery. I'm currently on the latest 123... did you say you're not having the issue in a different version? Also, it only affects keybindings for Sidebery. Are we sure it isn't something Sidebery related? I can use ATD shortcut to discard current tab or open history sideview with Ctrl + H. |
The issue only occurs if the addon runs command listener in the sidebarAction, so if the Bugzilla ticket doesn't attract attention, I'll just move the logic of keybindings to background. That was planned anyway (partially). |
Steps to reproduce
Have active key maps.
Let Firefox update Sideberry automatically in the background.
Expected behavior
Everything keeps working.
Actual behavior
All of the keybindings stop working in currently open windows.
If you open a new window, that will have functional keybindings.
Likewise, if you close Firefox and restart, that will also fix things.
But rebinding in settings does not work, that is, it can happily pickup the keys that you're trying to bind, but if it is the same binding they still don't work.
If it is an entirely new key sequence that has never been bound to something, it works just fine.
I'm not sure how to trigger the same update flow manually, or I would spend some time debugging it.
Looking through the code, I don't see how new bindings would be working at all if our listener (keybindings.setupListeners and keybindings.resetListeners) had gotten lost.
Hitting reset addon isn't enough to fix things, same with 'Reset Keybindings'.
Same with exporting the keybindings and reimporting them.
So without being able to reproduce this at will, I'm not sure how to debug this further.
The text was updated successfully, but these errors were encountered: