Firefox: Stop Websites From Stealing Cursor?

The place for all kinds of software for all kinds of operating systems.

Moderator: Dposcorp

Firefox: Stop Websites From Stealing Cursor?

Postposted on Tue Jun 26, 2012 2:09 pm

This has been a source of frustration and annoyance for some time. I load up a page and start typing somewhere, and the damn website steals my cursor and puts it somewhere else. I've even gone so far as to make my start page about:blank, because most common home pages will steal the cursor while I'm attempting to type in a URL.

Does anyone know how to completely prevent all cursor stealing in Firefox?
i5 2500k - P67 - GTX660 - 840 Pro 256GB - Xonar Essence STX - Senn HD595's
The Egg
Gerbil Elite
Silver subscriber
 
 
Posts: 607
Joined: Sun Apr 06, 2008 4:46 pm

Re: Firefox: Stop Websites From Stealing Cursor?

Postposted on Tue Jun 26, 2012 2:25 pm

I don't think FF is your problem - more likely an extension you may have installed or the site's javascript is causing the form field(s) to grab focus. An easy shortcut to get the cursor into the address bar while highlighting all of it is alt+d. This works in every browser as well as windows explorer. Alternatively if you wanted to try it, you could disable javascript but I have a feeling that solution will cause frustration on other pages.
Corsair 600T | ASUS P8P67 PRO | Intel 2500k @ 4.4Ghz | EVGA 560 TI | G.SKILL Ripjaws Series 8GB | Corsair HX650 650W
steelcity_ballin
Gerbilus Supremus
Silver subscriber
 
 
Posts: 11924
Joined: Mon May 26, 2003 5:55 am
Location: Pittsburgh PA

Re: Firefox: Stop Websites From Stealing Cursor?

Postposted on Tue Jun 26, 2012 2:26 pm

I believe that disabling Javascript will prevent this from happening. The problem is likely that you are typing into a box on the page, but the website hasn't completely finished loading. At some point in time, the Javascript code is loaded and executes and calls the "focus()" method on a different text box than the one you are typing in. Anger ensues. :evil:

As a workaround, I've made a conscious effort to not type anything into a page until it has completely finished loading.

EDIT: http://superuser.com/questions/96708/st ... search-box
GA-EP45-DS3R · E8500@3.8 · Scythe Ninja+ · 8GB G.Skill DDR2-800 · MSI TwinFrozr HD7850 · Corsair VX450 · Antec Solo
180GB i520 SSD · WD1002FAEX · Plextor PX-755SA · HP ZR24w · Intel EXPI9301CT · X-Fi XtremeGamer · Win7/Mint
nerdrage
Graphmaster Gerbil
 
Posts: 1284
Joined: Thu Mar 06, 2003 2:49 pm
Location: Raleigh/Durham, NC

Re: Firefox: Stop Websites From Stealing Cursor?

Postposted on Tue Jun 26, 2012 3:13 pm

nerdrage wrote:I believe that disabling Javascript will prevent this from happening. The problem is likely that you are typing into a box on the page, but the website hasn't completely finished loading. At some point in time, the Javascript code is loaded and executes and calls the "focus()" method on a different text box than the one you are typing in. Anger ensues. :evil:

As a workaround, I've made a conscious effort to not type anything into a page until it has completely finished loading.

EDIT: http://superuser.com/questions/96708/st ... search-box

Yeah, I'm sure that's what's happening as well, and I've almost thrown objects across the room on several occasions. I do run NoScript, but this typically happens with sites which are whitelisted and I'll need their functionality at some point. It's particularly infuriating when you have just opened a new browser and started typing a URL, only to have the start page grab the cursor halfway through. Like I said, I've resorted to opening with "about:blank", but this is still a major annoyance at other times as well.

I can't think of a single instance where cursor stealing would be desirable. I was hoping there was some little-known way to just kill that ability altogether.
i5 2500k - P67 - GTX660 - 840 Pro 256GB - Xonar Essence STX - Senn HD595's
The Egg
Gerbil Elite
Silver subscriber
 
 
Posts: 607
Joined: Sun Apr 06, 2008 4:46 pm

Re: Firefox: Stop Websites From Stealing Cursor?

Postposted on Tue Jun 26, 2012 3:23 pm

This seems like it would be easy to do with grease monkey, just ignore the focus() method.
BobbinThreadbare
Graphmaster Gerbil
Silver subscriber
 
 
Posts: 1042
Joined: Sun Mar 20, 2005 2:47 am
Location: Champaign, IL

Re: Firefox: Stop Websites From Stealing Cursor?

Postposted on Tue Jun 26, 2012 5:00 pm

That bug has been around since FF2.
Image
The Model M is not for the faint of heart. You either like them or hate them.

Gerbils unite! Fold for UnitedGerbilNation, team 2630.
Flying Fox
Gerbil God
 
Posts: 24580
Joined: Mon May 24, 2004 2:19 am

Re: Firefox: Stop Websites From Stealing Cursor?

Postposted on Tue Jun 26, 2012 7:42 pm

Flying Fox wrote:That bug has been around since FF2.


Hard to call it a bug when every other browser does this as well. What browser in stock form can you visit say Google on and not have your cursor captured?
Washer
Gerbil First Class
 
Posts: 110
Joined: Wed Feb 01, 2012 3:41 pm

Re: Firefox: Stop Websites From Stealing Cursor?

Postposted on Wed Jun 27, 2012 4:34 am

Washer wrote:
Flying Fox wrote:That bug has been around since FF2.


Hard to call it a bug when every other browser does this as well. What browser in stock form can you visit say Google on and not have your cursor captured?

Not when it is cross-tab.
Image
The Model M is not for the faint of heart. You either like them or hate them.

Gerbils unite! Fold for UnitedGerbilNation, team 2630.
Flying Fox
Gerbil God
 
Posts: 24580
Joined: Mon May 24, 2004 2:19 am

Re: Firefox: Stop Websites From Stealing Cursor?

Postposted on Fri Jun 29, 2012 7:07 am

So basically, there's no solution to this except maybe try Grease Monkey?
i5 2500k - P67 - GTX660 - 840 Pro 256GB - Xonar Essence STX - Senn HD595's
The Egg
Gerbil Elite
Silver subscriber
 
 
Posts: 607
Joined: Sun Apr 06, 2008 4:46 pm


Return to General Software

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests