Fix onWindowOpen event handler.
Fix onWindowOpen event handler.

The event handler was written for Firefox on Android, which is
slightly different.

UNINETT/SAML-tracer,UNINETT/SAML-tracer,UNINETT/SAML-tracer