forbidBGRefresh delay until page focus annoying

General discussion about the NoScript extension for Firefox
Post Reply
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

forbidBGRefresh delay until page focus annoying

Post by therube »

forbidBGRefresh delay until page (re)focus is annoying


I guess it's not the end of the world, but I find it annoying.

In most instances, I post & jump somewhere (usually to another thread), read, then jump back to review my prior post (to make sure it was correct).
So ... in most instances, I will always be waiting for the prior page to refresh.
Times past, the refresh was done while I was in the other tab, & all I had to do was review.
Now I have to wait.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100530 SeaMonkey/2.1a2pre
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: forbidBGRefresh delay until page focus annoying

Post by Giorgio Maone »

Simply put, there's no way I can think of to give you the protection against background refreshes and keep the annoyance aside.
You can use the nocript.forbidBGRefresh.exception preference, or disable the feature completely by setting noscript.forbidBGRefresh to 0, or suggest a better way to cope with this issue ;)
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: forbidBGRefresh delay until page focus annoying

Post by therube »

I'll give the exceptions whitelist a shot.

Heh.
While jumped back to a different tab, I can see the refresh going on in background tab.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100530 SeaMonkey/2.1a2pre
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: forbidBGRefresh delay until page focus annoying

Post by Giorgio Maone »

I actually have half an idea of skipping the background refresh checks for refreshes whose delay is 0 seconds and URL is different than current (i.e. poor man's HTTP redirections), because they're quite unlikely to be used in an attack (they would be too much in the open, since you're supposed to look at the tab you've just opened in a short timespan) and we don't stop redirections either.
This would take care of most "annoying" cases, e.g. the image hosting service you reported in a previous thread.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: forbidBGRefresh delay until page focus annoying

Post by dhouwn »

Giorgio Maone wrote:and URL is different.
What difference would it make? An attacker could just create a Meta-Refresh pointing to http://example.org/evil#[i]RandNum[/i] for each page refresh.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: forbidBGRefresh delay until page focus annoying

Post by Giorgio Maone »

dhouwn wrote:
Giorgio Maone wrote:and URL is different.
What difference would it make? An attacker could just create a Meta-Refresh pointing to http://example.org/evil#[i]RandNum[/i] for each page refresh.
The important criterion is not "URL is different" (which is just an optimization), but "delay = 0". BTW, same URL + delay = 0 is surely an annoyance which I can't see any legitimate use for.

On a side note, if you reinstall 1.9.9.84 this behavior and some other accuracy improvements, such as honoring the timing of the original refresh even after multiple blur/focus cycles, have been added.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Post Reply