saka-key icon indicating copy to clipboard operation
saka-key copied to clipboard

Tab switching with C-TAB stops working on certain tabs

Open snyball opened this issue 4 years ago • 0 comments

Software

  • Saka key: Current version as of 2020-03-28
  • Browser: Mozilla Firefox v74.0
  • OS: Linux 5.4.27

Why

Because of limitations in WebExtensions, saka key doesn't (and cannot) work while pages are loading, and when viewing special protected firefox tabs.

Because of this, I don't use Saka key for switching tabs, I use the C-TAB, and C-S-TAB keys instead, as they will work everywhere.

What I expect to happen

I press C-TAB, and Firefox should switch to the next tab and stay on it.

I click on a tab, and Firefox should switch to that tab and stay on it.

What actually happens

Firefox switches to the tab, but then immediately switches to the next tab after the tab that was switched to.

This doesn't happen on every tab, certain tabs somehow become "corrupted" in such a way that switching to them causes yet another switch to the next tab.

Workaround

If saka-key is used to switch to the "corrupted" tab, everything works as expected.

If saka-key is disabled, and then re-enabled the previously corrupted tabs (presumably) have their state reset in such a way that the issue goes away, this is how I confirmed the issue to be with saka.

How to reproduce

I haven't been able to reliably reproduce the bug.

Does saka key have a very complex per-tab state? If not then you might be able to sketch out a state-machine to trace how saka key could run into this problem.

Does saka key not expect tabs to be switched to using the default bindings?

snyball avatar Mar 28 '20 14:03 snyball