Updated for Firefox 21.