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

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.