How can I download and unpack ZIP file to extension folder?
Need to update my resources/config from ZIP package stored online.
Is this possible?
Please point me over to documentation or examples
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Firefox 4+ you can get the directory of your extension like this:
To download the file from an extension, create an XMLHttpRequest using:
You can read the ZIP file using the nsIZipReader XPCOM interface (see http://mxr.mozilla.org/mozilla-central/source/modules/libjar/nsIZipReader.idl). Instantiate the component like this: