You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use Gesturefy to bind gestures onto TST actions. Since Gesturefy allows binding against external messages to other extensions, so far I've found much success in this integration with TST's external messaging APIs.
However, it seems that TST does not have an API for toggling the sidebar visibility. I tried to look for a Firefox-native solution of activating another extension, but it seems that no such solutions exist due to the strict separation of different extension sandboxes.
If I did miss out an existing solution of this problem from Gesturefy side, please do enlighten me.
Expected result
TST messaging API takes messages like { type: 'toggle-sidebar'} for toggling the visibility of TST sidebar.
The text was updated successfully, but these errors were encountered:
To follow the principle of "no surprises", APIs like this can only be called from inside the handler for a user action. User actions
include the following:
Clicking the extension's browser action or page action.
Selecting a context menu item defined by the extension.
Activating a keyboard shortcut defined by the extension (this only treated as a user action from Firefox 63 onwards).
Clicking a button in a page bundled with the extension.
Thanks for the reply. That pretty much looks like a dead end for this issue.
I think on the Gesturefy side the handler for the gesture itself is definitely considered a user action. But if I understand it correctly as long as the call is passed through the messaging on the other end the user action flag is dropped. Ideally we probably want Firefox to preserve this flag across messaging since the message is sent from a user action handler, but that could be a tricky feature to push for since it may have very bad security implications.
For this issue itself, the workaround I am thinking is either to use Gesturefy to simulate key presses to activate TST, or just to bind TST activation shortcuts to the side keys on my mouse. But both of them will be out of the scope of TST so I am closing the issue now.
Abstract
I am trying to use Gesturefy to bind gestures onto TST actions. Since Gesturefy allows binding against external messages to other extensions, so far I've found much success in this integration with TST's external messaging APIs.
However, it seems that TST does not have an API for toggling the sidebar visibility. I tried to look for a Firefox-native solution of activating another extension, but it seems that no such solutions exist due to the strict separation of different extension sandboxes.
If I did miss out an existing solution of this problem from Gesturefy side, please do enlighten me.
Expected result
TST messaging API takes messages like
{ type: 'toggle-sidebar'}
for toggling the visibility of TST sidebar.The text was updated successfully, but these errors were encountered: