Page 1 of 1

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

Posted: Mon Jul 15, 2013 2:45 pm
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.

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

Posted: Tue Jul 23, 2013 8:05 am
by Elbart
Can anybody confirm this? Or not?

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

Posted: Tue Jul 23, 2013 11:38 am
by Thrawn
I don't use Session Manager, so can't help, sorry.

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

Posted: Tue Aug 06, 2013 8:37 am
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?

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

Posted: Tue Aug 06, 2013 12:09 pm
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.

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

Posted: Tue Aug 06, 2013 2:18 pm
by Elbart
Ah, interesting.
Thank you. :)