Issue 937029

overwrite 1.3 with https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/app_window.js#L829