const {Cc, Ci} = require("chrome");
const xpcom = require("xpcom");
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Not sure if the three lines are all needed but it did the trick and works.
The simple-storage data is stored in Firefox's profile directory as a
json file in:
$firefox_profile_dir/jetpack/$extension_id/simple-storage/store.json
Searching for 'simple-storage' or 'store.json' on your file system
should work.
> And Secondly is there any way to access the SQlite Database, any third
> party API or anything that can be of help.
> Something like this
> http://groups.google.com/group/mozilla-labs-jetpack/browse_thread/thread/5a2da7059c073784/32d3401c36e89cd5
>
> (Dunno why but the cfx test for this API gives me errors, so not able
> to use this)
That module was written perhaps before we made major changes to the SDK
and has not been updated since. One technique I know people have used if
they need more than simple storage is using the hidden window module to
access IndexDb.
The Modules page on the wiki might be a good place to look for more
sophisticated use of the SDK:
https://wiki.mozilla.org/Jetpack/Modules
cheers, Jeff