Fix browser plugin API changes