IdentityModel / oidc-token-manager

Apache License 2.0
51 stars 36 forks source link

Fixed detecting closed popups in IE and Firefox #58

Closed michaldudak closed 8 years ago

michaldudak commented 8 years ago

IE (11, on Windows 10) and Firefox (45.0.2) do not detect if the popup is closed: In FF, the popup.window field in the checkClosed function is not null - instead, the closed field should be checked.

IE throws an error every second:

The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.

oidc-token-manager.js (8808,1)

Thus, I extended the condition in checkClosed function to cover these scenarios.

brockallen commented 8 years ago

Thanks for this. I've incorporated this change into the recently rewritten version here: https://github.com/IdentityModel/oidc-client-js/issues/2