[Greasemonkey] GM_setValue limit?

Nikolas Coukouma lists at atrus.org
Tue Jul 19 14:14:55 EDT 2005

Hash: SHA1

Mark Pilgrim wrote:

> On 7/18/05, Nikolas Coukouma <lists at atrus.org> wrote:
>> Interesting. The prefereneces system just uses c-style char*
>> internally, so there shouldn't be a limit.
> This is actually a question I've had for a while, and it's good to
> know that values can theoretically be arbitrarily long.

I wonder if there's some limitation imposed by XPConnect or the JS
engine in general, but haven't gotten around to poking at it.

>> I also seem to recall Mark Pilgrim having some trouble with
>> caching entire pages.
> My troubles stemmed not from the length but the character encoding.
> I've worked around the problem by "ASCII"fying values before
> storing them. Sucks, but works well enough for my purposes.
> Sorry, rest-of-the-world-outside-USA-and-England!

Well, 0.4 has my fix so utf-8 strings can be stored and retrieved
safely. It won't help with binary data, but at least you have a chance
at storing other languages.

- -Nikolas Coukouma
Version: GnuPG v1.4.1 (GNU/Linux)


More information about the Greasemonkey mailing list