Page 1 of 1

Bookmarklets causing addition to whitelist

Posted: Fri Feb 19, 2010 12:08 pm
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

Re: Bookmarklets causing addition to whitelist

Posted: Fri Feb 19, 2010 1:07 pm
by Giorgio Maone
Thanks for your report, investigating.

Re: Bookmarklets causing addition to whitelist

Posted: Fri Feb 26, 2010 3:38 pm
by Giorgio Maone
Fixed in 1.9.9.49, thanks.

Re: Bookmarklets causing addition to whitelist

Posted: Fri Feb 26, 2010 4:13 pm
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?

Re: Bookmarklets causing addition to whitelist

Posted: Fri Feb 26, 2010 4:59 pm
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.

Re: Bookmarklets causing addition to whitelist

Posted: Sun Feb 28, 2010 11:46 am
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 !

Re: Bookmarklets causing addition to whitelist

Posted: Sun Feb 28, 2010 3:19 pm
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

Re: Bookmarklets causing addition to whitelist

Posted: Sun Feb 28, 2010 6:25 pm
by Guest
Giorgio Maone wrote: NoScript Options|Reset
Oh, but I mean to reset whitelist... only !

Re: Bookmarklets causing addition to whitelist

Posted: Sun Feb 28, 2010 8:47 pm
by victor
Off topic:
You put a link to "bookmarlet" in wikipedia (Italy)

Re: Bookmarklets causing addition to whitelist

Posted: Sun Feb 28, 2010 9:59 pm
by Giorgio Maone
Open Tools|Error Console and enter the following line:

Code: Select all

CC["@maone.net/noscript-service;1"].getService().wrappedJSObject.resetDefaultSitePref();

Re: Bookmarklets causing addition to whitelist

Posted: Mon Mar 01, 2010 11:27 am
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 !

Re: Bookmarklets causing addition to whitelist

Posted: Mon Mar 01, 2010 1:17 pm
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();

Re: Bookmarklets causing addition to whitelist

Posted: Mon Mar 01, 2010 2:53 pm
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 ?

Re: Bookmarklets causing addition to whitelist

Posted: Mon Mar 01, 2010 3:38 pm
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.

Re: Bookmarklets causing addition to whitelist

Posted: Mon Mar 01, 2010 6:08 pm
by Guest
Thanks, Giorgio ! Astounding magics ...

Terrible captchas still ;=)
--
Czerno