I'm working on an add-in for Microsoft Outlook, and we've been encountering an issue with the Outlook 2016 taskpane not being able to talk to a new window. This currently only occurs on the Version 1810, Build 10927.20001.
To reproduce the issue in this particular version of outlook:
- Launch a new window from the taskpane (in our case it was the OAuth login window, redirecting to a successful login page)
- Inspect the window - it appears that the window.opener object is undefined
If we compare this behavior to an older version of outlook, we have access to the window object, the window.opener object and other properties defined in the window.opener object. This issue started occurring as of about 2 weeks ago.
This code will only work if https://contoso/ is in the AppDomains List. Otherwise mywindow will be null.