-
Notifications
You must be signed in to change notification settings - Fork 106
Outlook on Mac: messageParent
Fails on Some Machines, Potentially Linked to &action=displayDialog
vs. _host_Info
#5479
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
Comments
Here are some similar issues that might help you. Please check if they can solve your problem. Possible solution (Extracted from existing issue, might be incorrect; please verify carefully) I see the problem. On Excel desktop for the mac, you can't send a boolean value in the message. I changed true to "true" for my message and it worked. The docs say you can send either a boolean or a string so you might want to leave this open to fix or change the docs. booleans do work everywhere else. Reference: Powered by issue-sentinel |
Hi @Visualq, Firslty thanks a lot for sharing the details of the issue. We tried reproducing the issue at our end using the code snippet you provided but unfortunately we have been unable to get a repro so far. As you mentioned, it might be an environmental factor causing this, but as we are unable to reproduce the bug, it will be difficult for us to comment at this moment. In the meantime: |
Hi @kumarshrey-msft , Thank you for investigating, I expected it would be a tough one to debug. Regarding your request:
Just a quick question, what makes office.js open a dialog with &action=displayDialog? |
@kumarshrey-msft We are unable to retrieve the diagnostics due to the missing "Collect Diagnostics". Nor do we have a windows machine nearby to 'remote' collect the diagnostics. We'll see what we we can do. |
@exextoc we managed to obtain the incident ID: These are two failed incident IDs: 9ASHZYQ7 / UMPPV92D After we made a new profile on the Mac it first didn't work however when we tried again on the new profile it suddenly worked. However switching back to the customers main profile it was still broken. This is the incident ID that did work in the new profile: AMVYNWUS (working) |
Hi @Visualq, Thanks for sharing the incident ID. We are still not able to reproduce this bug at our end. Can you confirm if your add-in is hard-coding the re-direct URLs at any stage? Additionally, are you setting any property like window.name explicitly in your flow? This can be one of the reasons behind this unexpected scenario. In the meantime, will it be possible for you to share the repro video as well with @exextoc in a private GitHub repo? |
@kumarshrey-msft the base url is always the same, once the url is loaded in the dialog we check if a redirect is needed (to a different domain). If it is we redirect the user to that domain to complete authentication. However even without the domain redirect it doesn't work for that customer. Window.name is not touched. Keep in mind that it works pretty much everywhere except for that customer's Mac. Have to get back to it with the videos, we have to ask our customer to make the videe. |
This issue has been fixed. Can you confirm on your side? |
We can confirm it works now. Thank you for your effort. Was it something we could have prevented? |
Provide required information needed to triage your issue
In an Outlook add-in on Mac,
Office.context.ui.displayDialogAsync
sometimes appends&action=displayDialog
to the dialog URL instead of the expected&_host_Info=...
, which we see on all other platforms. On machines where&action=displayDialog
appears,messageParent
consistently fails to send messages from the child dialog to the parent task pane. On identical setups where_host_Info
is used,messageParent
works as expected. One machine consistently uses&action=displayDialog
(and fails), while another uses_host_Info
(and succeeds), despite matching Outlook versions, builds, add-ins, and URLs. This suggests an environmental factor, but we’re unsure if&action=displayDialog
directly causes themessageParent
failure or is just a symptom.Your Environment
Expected behavior
I expect
Office.context.ui.displayDialogAsync
to consistently append_host_Info
(e.g.,Outlook$Mac$16.00$nl-TR$telemetry$isDialog$$0
) to the dialog URL across all machines, enablingmessageParent
to reliably communicate from the child dialog to the parent task pane. If&action=displayDialog
is intentional, I expectmessageParent
to still work.Current behavior
On some machines,
&action=displayDialog
is appended to the dialog URL instead of_host_Info
. On these machines,messageParent
never sends messages from the child dialog to the parent task pane—no errors are logged, and the parent callback isn’t triggered. On machines where_host_Info
is used,messageParent
works correctly. While&action=displayDialog
correlates with the failure, we’re not certain it’s the direct cause—it could be a related symptom of an underlying issue.Steps to reproduce
It's hard to reproduce as it appears to be environment related.
Link to live example(s)
None.
Provide additional details
Questions:
Context
Our Outlook add-in provides email encryption, requiring authentication via a remote website (Azure AD). This works across platforms, but on some Macs, messageParent fails, preventing authentication data from reaching the add-in. This blocks affected customers from using the service, and the inconsistency undermines reliability.
Clarified the reproduction paragraph
The text was updated successfully, but these errors were encountered: