"PolicyState is not defined" in combination w/ another addon

Bug reports and enhancement requests
Post Reply
Elbart
Junior Member
Posts: 35
Joined: Mon Jul 15, 2013 2:25 pm

"PolicyState is not defined" in combination w/ another addon

Post by Elbart »

Hello.

I'd like to report an error which NoScript 2.6.6.7 is reporting, when it is being used alongside the current development-versions (0.8.0.8pre20130626b and newer) of the addon "Session Manager" (SM).

When both addons are active during browser-startup, and SM is set to "Prompt for a session" and "Pre-select previous session", and if the preselected session is containing entries with favicons (pretty much anything but about: URLs), NoScript is issuing the following error once per favicon:
Mon Jul 15 2013 12:00:24
Error: PolicyState is not defined
Source file: jar:file:///C:/Users/user/AppData/Roaming/Mozilla/Firefox/Profiles/yxct4dqb.default/extensions/%7B73a6fe31-595d-460b-a920-fcc0f8843232%7D.xpi!/components/noscriptService.js
Line: 1383
This doesn't happen with the latest stable version SM 0.8.0.7 in Firefox 20 to 22 with NoScript 2.6.6.7 installed. This also doesn't happen if SM isn't active during startup and being used at a later time to restore sessions.

Original tests done in Firefox 20 to 22 with SM 0.8.0.8pre20130626b and NoScript 2.6.6.7 with new profiles.

Also reported this in the SM-thread at http://forums.mozillazine.org/viewtopic ... #p12971369

EDIT: This also happens in Firefox 20 and SM 0.8.0.7.

EDIT2: The first version of NoScript to show this error is 2.6.3rc4.
Mozilla/5.0 (Windows NT 6.0; rv:22.0) Gecko/20100101 Firefox/22.0
Elbart
Junior Member
Posts: 35
Joined: Mon Jul 15, 2013 2:25 pm

Re: "PolicyState is not defined" in combination w/ another a

Post by Elbart »

Can anybody confirm this? Or not?
Mozilla/5.0 (Windows NT 6.0; rv:22.0) Gecko/20100101 Firefox/22.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: "PolicyState is not defined" in combination w/ another a

Post by Thrawn »

I don't use Session Manager, so can't help, sorry.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0
Elbart
Junior Member
Posts: 35
Joined: Mon Jul 15, 2013 2:25 pm

Re: "PolicyState is not defined" in combination w/ another a

Post by Elbart »

The changelog for 2.6.7rc1 has this item:
"x Removed "ReferenceError: PolicyState is not defined" message appearing sometimes in the console dump on startup"
Does this mean that the underlying problem has been fixed, or will there be just no more error-messages on startup?
Mozilla/5.0 (Windows NT 6.0; rv:22.0) Gecko/20100101 Firefox/22.0
User avatar
Giorgio Maone
Site Admin
Posts: 9530
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "PolicyState is not defined" in combination w/ another a

Post by Giorgio Maone »

Elbart wrote: Does this mean that the underlying problem has been fixed, or will there be just no more error-messages on startup?
There's no "underlying problem", just the specific situation triggers NoScript at a time it's no fully initialized yet, and the error condition rather than being ignored (as it is now with no problem) got reported.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Elbart
Junior Member
Posts: 35
Joined: Mon Jul 15, 2013 2:25 pm

Re: "PolicyState is not defined" in combination w/ another a

Post by Elbart »

Ah, interesting.
Thank you. :)
Mozilla/5.0 (Windows NT 6.0; rv:22.0) Gecko/20100101 Firefox/22.0
Post Reply