Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UserAgentApplication.ts #318

Merged
merged 1 commit into from
Jun 12, 2018
Merged

Update UserAgentApplication.ts #318

merged 1 commit into from
Jun 12, 2018

Conversation

aoeah
Copy link
Contributor

@aoeah aoeah commented Jun 5, 2018

This is in reference to the issue in #300

Resolving an issue where if the msal library is initiated from a browser window that linked via a target=_blank it will throw an error. Instead of touching the window.opener.msal yet again, this will just utilize the already evaluated isWindowOpenerMsal variable set above.

To repro the issue prior to this change, you just need a page which is utilizing the msal library to handle a signup or sign-in. Then, create a secondary html page which links to the page that then has a target=_blank which will then open another tab. The end result is that the library will throw an exception and rendering is halted (assuming no error handling is being leveraged).

@CristianKhalilSC
Copy link

@nehaagrawal Can you please review this pull request? We are facing issues on production because of this bug. Thanks

@nehaagrawal nehaagrawal merged commit 0808e27 into AzureAD:dev Jun 12, 2018
@nehaagrawal
Copy link
Contributor

@aoeah done.

@ashot999
Copy link

Thanks guys for the quick response!
@rohitnarula7176 @nehaagrawal do you know when this fix can be released?

@dougmolineux
Copy link

Yes I'd love to know as well, causing us issues in prod. Thank you very much for working on this and getting it merged :)

@nehaagrawal
Copy link
Contributor

nehaagrawal commented Jul 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants