Giorgio Maone wrote:Could you check whether the
error console show any
error message (current NSA alphas are quite verbose anyway)?
I checked and there is nothing there relating to NSA. Just some messages about addonRepository.js and that's all.
Giorgio Maone wrote:Regarding the JSON, it was put in a more readable and commented format on the
NSA site:
Yeah I hadn't looked recently but I had a copy of the JSON and working through it, figured most of it straight forward but wanted to validate with you.
Giorgio Maone wrote:As you can see, we fully define 3 "groups", i.e. TRUSTED (like the currently whitelisted sites), UNTRUSTED (like our implicit blacklist) and DEFAULT (any website which is not explicitly listed in the policy).
Understood, with you there so far, I got that much already.
Giorgio Maone wrote:"1" and "0" are used during JSON serialization as references to UNTRUSTED (0) and TRUSTED (1), but they just mean that the website which references them "inherits" its permissions from one of these two groups.
Suspected as much, so far so good. But a followup question, if you have an item under say DEFAULT and/or TRUSTED but you put :0 intending to mark it as UNTRUSTED, will the inherited permission from TRUSTED group override that? or DEFAULT for that matter? I hope you know where I am going with this.
Giorgio Maone wrote:Of course, any site can declare its own custom permissions (in this sample mail.google.com does), even though there's no UI yet to handle them (as you can see, you can just rotate a site from DEFAULT to TRUSTED to UNTRUSTED), but it will come later.
So at the moment, NSA will allow the option of servers pushing their own rules and we can't stop it like we can in the regular NS version by unchecking it, is that what you are saying? Just want to make sure, or you are saying that is feature that will come later but not there yet? Of if you have something like mail.google.com explicitly marked as say UNTRUSTED, they push it, will it override what you have explicitly disallowed? Or will it honor as final word the user's input?
Also, a common problem with modifying the JSON in the options section is that it is ALL displayed on a single line, and as you know editing text on a mobile device in this manner is VERY tedious and difficult, until the UI comes into play, which is a must for such difficult input devices, is there anyway to have the JSON field be a textarea rather than textbox, so it can be viewed in a more flowing manner, like how have it here on the screen? Just wondering. At the moment, I have to copy all and paste into a text editor, make my changes, and then select all and drop back into the box and its a bit, an understatement, of a pain in the neck to do.
Also, I notice that you have silverlight on your provided code but the code I got directly from the NSA installation on my phone, did not have that in the JSON, is that a recent implementation? I would have expected if it was released to update onto the device settings, no? Or if you have a customization of the JSON, it can't integrate anything new without risk of breaking existing configuration? And you didn't respond on the specifics of setting true/false in each section and their respective implications, can you please read that part and give me some feedback, thanks.