I am new to the development of Firefox add-ons, and so far everything is going well, but I was fixated on how, in fact, to download a file from the Internet, get a URI and save it to disk. The Mozilla MDN documentation contains information on how to upload files, but the download section is empty and not yet written. Unfortunately, I did not find any documentation that describes how to do this.
Does anyone know of relevant documentation on how to do this?
Old Facebook Download Album Adder uses this function call in its overlay JavaScript:
saveURL(images[i].replace(/\/s/g, "/n"), null, null, false, true, null);
Obviously, the first argument is a URI request. The saveURL function saveURL not defined anywhere, so I guess its API extension function. I tried this in my new add-on and it works. However, I would like to know what the other arguments mean.
Delan azabani
source share