API changes to support Firefox add-on.