Merge pull request #17457 from punamdahiya/Bug975599

Bug975599 - [Gallery] - Slightly cropping an image from gallery so that more does not attach to MMS
Merge branch 'v1.3' into v1.3t
window.js DEBUG=true
Possible fix to visibility state
Don't restart home screen if we have visible attention screen
Monitor restart count during the total test and the past 1 min
Add more log to investigate two homescreen div problem
print log when receive touch event on lockscreen, homescreen and utility tray