RequestPolicy/requestpolicy — Issue #282: support mozilla.cfg defaultPref settings
Author: jsamuel
Created: 2011-12-22 19:04:02+00:00
State: open
Labels: extension

imported trac ticket
created: 2011-12-20 15:08:08
reporter: justin

User pocm [http://forums.mozillazine.org/viewtopic.php?p=11489117#p11489117 reports]:

I am experimenting with deploying !RequestPolicy site-wide, and am finding some strange behavior. Since the whitelists seem to be stored in config variables, I thought I'd try setting them in mozilla.cfg

{{{
defaultPref("extensions.requestpolicy.allowedOrigins","tinyurl.com");
defaultPref("extensions.requestpolicy.allowedDestinations","flickr.com");
defaultPref("extensions.requestpolicy.allowedOriginsToDestinations","google.com|gstatic.com");
}}}

This type of thing works for other extensions and their config rules ("noscript.untrusted", for example) but !RequestPolicy does not seem to recognize a "defaultPref" declaration at all. New profiles start up with empty whitelists. Why is that?

I assume RP is doing something which is causing defaultPref functionality to be ignored.