bookmarklet handling broken, turns on scripts globally

Ask for help about NoScript, no registration needed to post
Guest

bookmarklet handling broken, turns on scripts globally

Post by Guest »

bookmarklet handling is fundamentally broken in noscript
every time you run a bookmarklet, noscripts temporarily enables script globally,
but its not always temporary
for example, if the bookmarklet prompts like

Code: Select all

javascript:(function(){ prompt(location.href,location.href); })()
disabling scripts globally doesn't happen unless you close the prompt dialog by hitting ok or cancel
if you close the tab, scripts remain enabled globally until you manually forbid scripts globally

i've tested out a lame fix for this by making it impossible to enable scripts globally, see
http://forums.informaction.com/viewtopi ... 66&p=27495

Thanks
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
therube
Ambassador
Posts: 7930
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: bookmarklet handling broken, turns on scripts globally

Post by therube »

Interesting.
An unwanted side effect.
That's not good.
Dangerous you might say.
if you close the tab ...
How do you do that without dismissing the prompt?
(Suppose a Quit could do it?)
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 NT 6.1; rv:2.0.1) Gecko/20110511 Firefox/4.0.1 SeaMonkey/2.1
Guest

Re: bookmarklet handling broken, turns on scripts globally

Post by Guest »

therube wrote:Interesting.
An unwanted side effect.
That's not good.
Dangerous you might say.
if you close the tab ...
How do you do that without dismissing the prompt?
(Suppose a Quit could do it?)
in firefox 4, javascript alerts/prompts.... no longer block the entire application (finally), only the tab, so you can close the tab without dismissing the prompt
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
therube
Ambassador
Posts: 7930
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: bookmarklet handling broken, turns on scripts globally

Post by therube »

in firefox 4, javascript alerts/prompts.... no longer block the entire application (finally), only the tab, so you can close the tab without dismissing the prompt
Confirmed in FF4, but not for SeaMonkey 2.1!

Offhand, do you have a Bug# for that?
<RattyAway> therube: we don't have tabmodal prompts (yet)
<RattyAway> currently it 's a bit of a hack really
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 NT 6.1; rv:2.0.1) Gecko/20110511 Firefox/4.0.1 SeaMonkey/2.1
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: bookmarklet handling broken, turns on scripts globally

Post by Giorgio Maone »

I've got a pretty clear idea of what's going on. Will be fixed in next dev build.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: bookmarklet handling broken, turns on scripts globally

Post by Giorgio Maone »

Fixed in latest development build, thanks.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Post Reply