Myk Melez wrote:
* text size * text and background colors * ability to run JavaScript (+ advanced JavaScript settings?) * ability to open popup windows (already applied per-site)
Hmm... So we already have mechanisms for per-site customization for some of these. In fact, for some of them we effectively have multiple such mechanisms (ability to run JavaScript comes to mind; I believe we have at least 3 different ways of affecting it, and none use nsIPermissionManager, which is the general API for per-site permissions for various stuff that we have)...
It feels to me like we might want different solutions to the different parts of this. Things that can be expressed as permissions ought to use the existing nsIPermissionManager (or pseudo-CAPS stuff like JS execution does) if they can. Things that correspond to layout behavior can be gotten by prescontext from some service instead of getting them from prefs, and the service could either use prefs or whatever it wants. For backwards compat, we should probably have a version of this service that just looks at the existing prefs.
But I have to admit that I haven't thought about this much, so please take everything I say with some caution!
-Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

