(Previously bounced from the list)

On Sun, Nov 29, 2009 at 7:51 PM, Adrienne Porter Felt <[email protected]>wrote:

> > The study says that extensions use nsIFile to 'store information that
>> > is too complex for the preferences system'. What is 'too complex' ? If
>> > a key value store (viz. the preferences system) isn't good enough,
>> > would localStorage work ? Do you have a list of extensions for whom
>> > localStorage would be good enough (but can't work with just the
>> > preferences system) ?
>>
>
> It's not that extensions "can't" use with the preferences system.  That was
> not what I meant to imply -- lazy wording on my part.  Rather, developers
> choose not to use prefs when their data is complex -- they write XML or
> JSON.  IMO this is because (1) writing XML out to a file is simpler/more
> familiar and (2) the name "prefs" does not make it sound like a place for
> general data storage.
>
> If nsIFile were taken away, I personally think either prefs or localStorage
> would be good and usable alternatives (although I would suggest a name
> change to prefs), keeping in mind Adam's points.
>
_______________________________________________
dev-security mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-security

Reply via email to