Bug 1044423 - Add more logics to AppChrome.js. r=etienne