Empty default sqlite in a Firefox 4 compatible extension
I would like to provide a mechanism for a Firefox4-compatible extension I'm writing, to allow a local DB (developed by m开发者_运维知识库e in sqlite) to be originally created/copied to the profile folder. In FF3.6 it was easy putting the empty sqlite db in the extension's default folder and copying it by code, but now the content of the extension seems unaccessible (extension is not unpacked, but xpi is directly stored) and I have to find a better way.
Can you help me?
Thanks,
Livio
You can copy it by creating a download from a chrome: or resource: URL that points to your default file in your extension.
精彩评论