<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Is JSONFile.jsm suitable for the long-sought Gecko storage system
that's not as hacky as <a class="moz-txt-link-freetext" href="about:config">about:config</a> prefs or as heavyweight as
SQLite? btw, I didn't see any tests specifically for JSONFile.jsm.
Are the other Password Manager tests on top of JSONFile.jsm adequate
test coverage?<br>
<br>
Here is a link to a 2013 "Storage in Gecko" thread on dev-platform
bikeshedding requirements around sync/async APIs and atomic and lazy
I/O. This thread spun out bug 866238 ("implement simple key-value
store on top of IndexedDB").<br>
<br>
<a class="moz-txt-link-freetext" href="https://groups.google.com/d/msg/mozilla.dev.platform/vYbQqkqGzlo/YYIvd-rB9ToJ">https://groups.google.com/d/msg/mozilla.dev.platform/vYbQqkqGzlo/YYIvd-rB9ToJ</a><br>
<br>
<br>
<div class="moz-cite-prefix">On 10/11/2016 7:53 AM, Luke Chang
wrote:<br>
</div>
<blockquote
cite="mid:CALT4T49MpnAz5RLCusbTNOnM0C4EobNndpu4trxGkECnyPnspw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hey folks,</div>
<div><br>
</div>
<div>This is a notice about a module, JSONFile.jsm, just
landed in "toolkit/modules".</div>
<div><br>
</div>
<div>Matt, Steve and I have been working on Form Autofill [1].
While implementing, we intend to leverage modules of
Password Manager because of their similar behaviors.
LoginStore.jsm [2] is one of those modules.</div>
<div><br>
</div>
<div>The above-mentioned JSONFile.jsm is basically separated
from LoginStore.jsm, which is in charge of storing
login-related data in a ".json" file. In order to increase
the reusability of such JSON-formatted storage that we're
going to use in Form Autofill as well, we refactored
LoginStore.jsm. More specifically, those IO-specific APIs
were generalized and moved to JSONFile.jsm. Therefore,
LoginStore.jsm will focus on schema-related operations such
as data migrations.</div>
<div><br>
</div>
<div>To sum up, you can now utilize JSONFile.jsm to store
simple data in a single file as long as the data can be
serialized to JSON format. More details can be found in bug
1304322 [3].</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Luke</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="https://wiki.mozilla.org/Firefox/Features/Form_Autofill">https://wiki.mozilla.org/Firefox/Features/Form_Autofill</a></div>
<div>[2] <a moz-do-not-send="true"
href="https://dxr.mozilla.org/mozilla-central/source/toolkit/components/passwordmgr/LoginStore.jsm">https://dxr.mozilla.org/mozilla-central/source/toolkit/components/passwordmgr/LoginStore.jsm</a></div>
<div>[3] <a moz-do-not-send="true"
href="https://bugzilla.mozilla.org/show_bug.cgi?id=1304322">https://bugzilla.mozilla.org/show_bug.cgi?id=1304322</a></div>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
firefox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a>
<a class="moz-txt-link-freetext" href="https://mail.mozilla.org/listinfo/firefox-dev">https://mail.mozilla.org/listinfo/firefox-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>