some CAPS questions

General discussion about the NoScript extension for Firefox
Post Reply
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

some CAPS questions

Post by al_9x »

  1. You mentioned that CAPS is scheduled for removal, could you point to some Mozilla info about that, Bugzilla, wiki, whatever exists?
  2. How much of it will be left for the sake of NS?
  3. Is there going to be any replacement functionality?
  4. Is it currently possible to add additional policies with NS installed? What's the trick, it doesn't seem to work?
  5. If not possible, I am curious as to why, since CAPS supports multiple policies.
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: some CAPS questions

Post by Giorgio Maone »

al_9x wrote: You mentioned that CAPS is scheduled for removal, could you point to some Mozilla info about that, Bugzilla, wiki, whatever exists?
References are very sparse, but CAPS for property access control is already dead, even though its corpse may still contract sometimes, see https://bugzilla.mozilla.org/show_bug.cgi?id=453928#c0 for instance
al_9x wrote: How much of it will be left for the sake of NS?
Domain-wide script execution control. Notice that NoScript 3 currently does not use CAPS at all, though.
al_9x wrote:Is there going to be any replacement functionality?
Nothing of declarative and user-facing, I'm afraid. A combination of page-level surrogates (or pagemods, or whatever can run user scripts before anything else) and Proxies, maybe.
al_9x wrote:Is it currently possible to add additional policies with NS installed? What's the trick, it doesn't seem to work?
[*] If not possible, I am curious as to why, since CAPS supports multiple policies.
It's a CAPS design flaw: even though CAPS does support multiple policies, if the same site is listed in two different policies the results are unpredictable. Therefore, you can use multiple policies as long as their site lists have no intersection (making NoScript generally incompatible with any other site-level policy).
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: some CAPS questions

Post by Thrawn »

Giorgio Maone wrote:
al_9x wrote:[*] If not possible, I am curious as to why, since CAPS supports multiple policies.
It's a CAPS design flaw: even though CAPS does support multiple policies, if the same site is listed in two different policies the results are unpredictable. Therefore, you can use multiple policies as long as their site lists have no intersection (making NoScript generally incompatible with any other site-level policy).
Does that mean that to apply a different CAPS policy to a site, you would need to leave it untouched (default-denied) in NoScript?

And is it possible for users to tweak the 'trusted'/'untrusted' policies by adding entries to prefs.js?
Last edited by Thrawn on Fri Jun 01, 2012 8:42 am, edited 1 time in total.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: some CAPS questions

Post by Giorgio Maone »

Thrawn wrote: Does that mean that to apply a different CAPS policy to a site, you would need to leave it untouched (default-denied) in NoScript?
Exactly, otherwise it would be automatically added to NoScript's "maonoscript" policy.
Also, in order to override the default policy, your custom policy must include a

Code: Select all

user_pref("capability.policy.mycustompolicy.javascript.enabled", "allAccess");
clause, in addition to the others.
Thrawn wrote: And is it possible for users to tweak the 'trusted'/'untrusted' policies by adding entries to prefs.js?
Yes, but it requires extreme care for the reasons explained above.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Post Reply