Updated for Firefox 18.