Syncing js changes, primarily refinements to visibility/overflow computations.
This change makes two java changes to support running JS tests:
- Restrict the window size when running JS tests as this matters for a lot
  of the overflow tests and not every browser supports window.resizeTo
- When launching Opera, ensure geolocation is enabled by default