I believe the Web Extensions API is largely based on the Chrome extension api so should be an easy port.