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