NSS/NSPR, scroll fixes, texture upload fixes, and hit testing

r? @metajack

Rolled up all these patches into one PR.