Firefox 29 compatibility fixes.