On Fri, Feb 2, 2018 at 2:27 PM, Nicholas Nethercote <n.netherc...@gmail.com>
wrote:

> It might be possible that you could use about:config or the prefs API to
> set a string pref that contains an invalid escape sequence that the parser
> will subsequently reject. I will check that.
>

Thinking (and testing) some more: I don't think this is possible, because
we escape strings appropriately when writing them.

So I think the only way to get data loss is if a user hand-edits prefs.js
and introduces a syntax error, whereupon all subsequent prefs in the file
will be lost. (Which has always been true; the only thing that's changed is
what constitutes a syntax error.) Error recovery would eliminate that data
loss possibility.

Nick
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to