Jason Bassford wrote:
>>user_pref("capability.policy.default.window.open", "noAccess");
>>user_pref("capability.policy.non_spammers.sites", "http://www.microsoft.com");
>>user_pref("capability.policy.non_spammers.window.open", "allAccess");
>>user_pref("capability.policy.non_spammers.windowinternal.open", "allAccess");
>>
>
> Your syntax is wrong. (This isn't helped by wrong documentation at
>Mozilla itself - I had to look through Newsgroup postings to find the
>correct whitelist syntax.) It should have the following form - also
>pay attention to the fact that it is case sensitive:
>
>user_pref("capability.policy.allowpopups.Window.open", "sameOrigin");
>user_pref("capability.policy.allowpopups.sites",
>"http://www.somesite.com");
>user_pref("capability.policy.default.Window.open", "noAccess");
>
The documentation
<http://www.mozilla.org/projects/security/components/configPolicy.html>
is OK.
It also was in the 0.9.2 release notes:
*
The syntax for blocking pop-up windows has changed since Mozilla
0.9. To block pop-up windows, add this line to the prefs.js file
in your Mozilla profile directory while Mozilla is not running:
user_pref("capability.policy.default.Window.open", "noAccess");
If you want to allow specific sites to open new windows, add the
line above and also these lines:
user_pref("capability.policy.allowpopups.sites",
"http://www.mozilla.org http://bugzilla.mozilla.org");
user_pref("capability.policy.allowpopups.Window.open", "sameOrigin");
See the Configurable Security Policy
<http://www.mozilla.org/projects/security/components/configPolicy.html>
documentation for more information.
0.1.