Page 1 of 1

Fast tab switching is broken

Posted: Mon Aug 29, 2011 11:38 am
by itsme
My config: Firefox 6.0, NoScript 2.1.2.8rc1

I love opening lots of tabs. But when using the keyboard to quickly switch backward and forward between them, switching comes to a stop. I have to release the key for one or two seconds, then can switch to another tab.

The Error Console is flooded with Information messages like:

[NoScript ClearClick] Swallowed event keydown on http://forums.informaction.com/viewforum.php?f=10 (rapid fire from http://noscript.net in 400ms)

[NoScript ClearClick] Swallowed event keypress on http://forums.informaction.com/viewforum.php?f=10 (rapid fire from http://noscript.net in 400ms)

[NoScript ClearClick] Swallowed event keyup on http://forums.informaction.com/viewforum.php?f=10 (rapid fire from http://noscript.net in 400ms)


Workaround:
Go to about:config and set noscript.clearClick.rapidFireCheck to false.

After doing so, fast switching works again.

bye,
itsme

Re: Fast tab switching is broken

Posted: Mon Aug 29, 2011 4:43 pm
by Giorgio Maone
You did not mention which shortcuts you use to cycle.

Re: Fast tab switching is broken

Posted: Mon Aug 29, 2011 5:24 pm
by itsme
I used the keyconfig extension to map some JavaScript code to the shortcuts 1 and 2. Here's what I did:

Name: Focus Prev Tab
Shortcut: 1
Script: gBrowser.mTabContainer.advanceSelectedTab(-1,true);

Name: Focus Next Tab
Shortcut: 2
Script: gBrowser.mTabContainer.advanceSelectedTab(1,true);

bye,
itsme

Re: Fast tab switching is broken

Posted: Mon Aug 29, 2011 5:39 pm
by Giorgio Maone
itsme wrote:I used the keyconfig extension to map some JavaScript code to the shortcuts 1 and 2.
Then it's by design, because you could be tricked into a Clickjacking attack involving fast changing to a different document and capturing your keystrokes.
To work-around, just add a modifier (e.g. alt or ctrl) to your shortcut.

Re: Fast tab switching is broken

Posted: Mon Aug 29, 2011 6:01 pm
by itsme
Giorgio Maone wrote:To work-around, just add a modifier (e.g. alt or ctrl) to your shortcut.
Adding a modifier decreases usability way to much for me.

I stumbled upon "switching tabs with keys 1 and 2" in the early days of the Opera browser. And I fell in love with that functionality from the very first second. Nowadays - when surfing the web - I'm using the right hand to point and click with the mouse. The left hand navigates web pages: Q and A scroll up and down; W and S page up and down; E and D go to the top and bottom.

So I have to stick to the workaround mentioned in my first posting.

Anyway, thanks for your fast responses. And thanks for this great NoScript extension and all the time and work you put in. I appreciate that very much.

bye,
itsme