Firefox

TwitterFacebook
Get flash to fully experience Pearltrees

Miscellaneous - MDN

var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath("C:\\filename.html"); var wbp = Components.classes['@mozilla.org/embedding/browser/nsWebBrowserPersist;1'] .createInstance(Components.interfaces.nsIWebBrowserPersist); wbp.saveDocument(content.document, file, null, null, null, null); var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath("C:\\filename.html"); var wbp = Components.classes['@mozilla.org/embedding/browser/nsWebBrowserPersist;1'] .createInstance(Components.interfaces.nsIWebBrowserPersist); var ios = Components.classes['@mozilla.org/network/io-service;1'] .getService(Components.interfaces.nsIIOService); var uri = ios.newURI("http://www.google.com/", null, null); wbp.persistFlags &= ~Components.interfaces.nsIWebBrowserPersist.PERSIST_FLAGS_NO_CONVERSION; // don't save gzipped wbp.saveURI(uri, null, null, null, null, file); https://developer.mozilla.org/en/Code_snippets/Miscellaneous
https://developer.mozilla.org/en/Code_snippets/Downloading_Files Downloading files To download a file, create an instance of nsIWebBrowserPersist and call its nsIWebBrowserPersist.saveURI() method, passing it a URL to download and an nsIFile instance representing the local file name/path. // create a persist var persist = Components.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"] .createInstance(Components.interfaces.nsIWebBrowserPersist); // with persist flags if desired See nsIWebBrowserPersist page for more PERSIST_FLAGS. const nsIWBP = Components.interfaces.nsIWebBrowserPersist; const flags = nsIWBP.PERSIST_FLAGS_REPLACE_EXISTING_FILES; persist.persistFlags = flags | nsIWBP.PERSIST_FLAGS_FROM_CACHE; // do the save persist.saveURI(uriToFile, null, null, null, "", nsIFile); Downloading files that require credentials

Downloading Files - MDN

http://stackoverflow.com/questions/3387888/broken-firefox-add-on-update

Broken Firefox add-on update - Stack Overflow

We are providing updates to our Firefox add-on on our own http site. Due to an error in the manual signing process with McCoy, a version of the add-on was published with the wrong public key in its install.rdf. We don't have the matching private key to sign the update.rdf.
AMO

https://developer.mozilla.org/en/Extension_Versioning,_Update_and_Compatibility Add-on Versioning Add-ons should specify their versions using the Toolkit version format . As a rough overview this is a version string split by periods, some examples: Note: Before Firefox 1.5 the more basic Firefox Version Format was used: major.minor.release.build[+] where only digits were allowed.

Extension Versioning, Update and Compatibility - MDC

Firefox Plugin

From MozillaWiki Please don't edit this page directly, either add comments to the discussion page or to the threads in the newsgroup or forums . See also the original newsgroup thread where extension authors discuss the potential impact to the addon community. Overview

Extension Manager:Addon Update Security - MozillaWiki

https://wiki.mozilla.org/Extension_Manager:Addon_Update_Security

Afficher le sujet - [Résolu] Soucis pour publier la mise à jour de mon extension

http://www.geckozone.org/forum/viewtopic.php?f=9&t=77896 Bonjour J'ai repris une extension (privée) d'un copain depuis plusieurs mois, et je n'ai pas réussi à mettre en place une mise à jour automatique jusque là. Je m'y suis penché plus sérieusement depuis ce week-end, mais j'obtiens toujours la même erreur lorsque je souhaite mettre à jour (sur Firefox Portable) :
3) Package your theme into a .jar file, calculate a hash, and place the updateHash entry inside the update.rdf file you will be using on your site. (See below for additional info on how to calculate the hash.) 6) Install your theme. It should allow you to do it without any error messages about not being a secure add-on, and when you increment the theme version, it will successfully update as well. You don't need to add the updateKey to install.rdf manually. http://forums.mozillazine.org/viewtopic.php?f=18&t=585878&sid=64bd4e8493205cc8fbdc3ef1ba2723c9

McCoy - a cryptographic tool for secure add-on updates • mozillaZine Forums