Bookmarklets causing addition to whitelist

Ask for help about NoScript, no registration needed to post
Bababo
Posts: 1
Joined: Fri Feb 19, 2010 10:31 am

Bookmarklets causing addition to whitelist

Post by Bababo »

Bookmarklets seem to be having a strange effect within noscript. When I invoke a javascript bookmarklet whilst visiting a site that has javascipt either permanently or temporarily allowed then an extra permanent entry is added to the whitelist for the full protocol/site.

So for example if I visit http://www.raintoday.co.uk/ and temporarily allow raintoday.co.uk and invoke a bookmarklet say javascript:alert("Hello World") then http://www.raintoday.co.uk/ is permanently white listed!

Similarly if I visit http://maps.google.co.uk/maps?hl=en&tab=wl where google.co.uk is permanently allowed and invoke the same bookmarklet a permanent entry for http://maps.google.co.uk is added to the whitelist.

Version 1.9.9.39 does not show this problems. Versions 1.9.9.42 onwards do show this problem. All versions downloaded from https://addons.mozilla.org/.

Mark
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091220 Gentoo Firefox/3.5.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Bookmarklets causing addition to whitelist

Post by Giorgio Maone »

Thanks for your report, investigating.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Bookmarklets causing addition to whitelist

Post by Giorgio Maone »

Fixed in 1.9.9.49, thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bookmarklets causing addition to whitelist

Post by therube »

Should there be (for some period of time) a sticky or whatnot to make (those who may read it) aware to check their whitelist for any unanticipated entries?
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.1.8) Gecko/20100205 SeaMonkey/2.0.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Bookmarklets causing addition to whitelist

Post by Giorgio Maone »

therube wrote:Should there be (for some period of time) a sticky or whatnot to make (those who may read it) aware to check their whitelist for any unanticipated entries?
Done.
I also added this warning to the release notes page.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
Guest

Re: Bookmarklets causing addition to whitelist

Post by Guest »

Aw! I guess some sites are in the list by default, would you please provide a copy of the standard whitelist as shipped ?

Thanks,

--
Czerno, a (mostly) happy user.


PS: the confirmation "captcha" is near impossible to grasp. Please! A genius like you must be able to devise something better !
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Bookmarklets causing addition to whitelist

Post by Giorgio Maone »

Guest wrote:Aw! I guess some sites are in the list by default, would you please provide a copy of the standard whitelist as shipped ?
NoScript Options|Reset
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
Guest

Re: Bookmarklets causing addition to whitelist

Post by Guest »

Giorgio Maone wrote: NoScript Options|Reset
Oh, but I mean to reset whitelist... only !
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
victor

Re: Bookmarklets causing addition to whitelist

Post by victor »

Off topic:
You put a link to "bookmarlet" in wikipedia (Italy)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 GTBDFff GTB7.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Bookmarklets causing addition to whitelist

Post by Giorgio Maone »

Open Tools|Error Console and enter the following line:

Code: Select all

CC["@maone.net/noscript-service;1"].getService().wrappedJSObject.resetDefaultSitePref();
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
Guest

Re: Bookmarklets causing addition to whitelist

Post by Guest »

Giorgio Maone wrote:Open Tools|Error Console and enter the following line:

Code: Select all

CC["@maone.net/noscript-service;1"].getService().wrappedJSObject.resetDefaultSitePref();
Did that : console answers : CC is not defined !
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Bookmarklets causing addition to whitelist

Post by Giorgio Maone »

Guest wrote:
Giorgio Maone wrote:Open Tools|Error Console and enter the following line:

Code: Select all

CC["@maone.net/noscript-service;1"].getService().wrappedJSObject.resetDefaultSitePref();
Did that : console answers : CC is not defined !
Sorry, my fault. Should have been

Code: Select all

Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject.resetDefaultSitePrefs();
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bookmarklets causing addition to whitelist

Post by therube »

Code: Select all

Error: Components.classes['@maone.net/noscript-service;1'].getService().wrappedJSObject.resetDefaultSitePref is not a function
Source file: javascript:%20Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject.resetDefaultSitePref();
Line: 1
Yet resetDefaultSitePrefs is in Main.js in noscript.jar ?
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.1.8) Gecko/20100205 SeaMonkey/2.0.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Bookmarklets causing addition to whitelist

Post by Giorgio Maone »

@therube: Yes, indeed it's

Code: Select all

Components.classes['@maone.net/noscript-service;1'].getService().wrappedJSObject.resetDefaultSitePrefs()
Fixed in my previous message too, thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
Guest

Re: Bookmarklets causing addition to whitelist

Post by Guest »

Thanks, Giorgio ! Astounding magics ...

Terrible captchas still ;=)
--
Czerno
Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.9.2) Gecko/20100115 Firefox/3.6
Post Reply