OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
689 stars 95 forks source link

Outlook Web Addin Url (where the Addin is deployed is showing) is showing in dialog/model in outlook desktop (old Outlook/thick client). #3813

Open SubhashRoy044 opened 1 year ago

SubhashRoy044 commented 1 year ago

Provide required information needed to triage your issue

Outlook Web Addin Url (where the Addin is deployed is showing) is showing in dialog/model in outlook desktop (old Outlook/thick client)

Screenshot_Issue_URL

Your Environment

Expected behavior

Outlook Web Addin Url (where the Addin is deployed is showing) should not show in dialog/model in outlook desktop (old Outlook/thick client)

Current behavior

Outlook Web Addin Url (where the Addin is deployed is showing) is showing in dialog/model in outlook desktop (old Outlook/thick client)

Steps to reproduce

1.When we remove the Web Add-in via sideload. 2.Go to Outlook thick client (outlook desktop) and open the new mail and send button then Web Add-in dialog/model appears with URL.,

Link to live example(s)




Provide additional details




Context

Useful logs

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

millerds commented 1 year ago

The repro step say you are removing the add-in and also running one. Can you clarify? What are the specific repro steps and which dialog is coming up?

SubhashRoy044 commented 1 year ago

Bug Title: Dialog Title Displays Outlook Web Add-in URL Instead of Custom Title in Outlook Desktop

Bug Description: The dialog title in Outlook Desktop is displaying the Outlook Web Add-in URL instead of the expected custom title. This behavior is inconsistent with the title display in Outlook Web.

Steps to Reproduce:

Deploy Web Add-in: a. Deploy the Outlook Web Add-in to a hosting environment. b. Verify that the add-in is accessible via the provided URL.

Sideload Web Add-in in Outlook Desktop: a. Open Outlook desktop. b. Sideload the Web Add-in manually. c. Confirm that the add-in is loaded successfully in Outlook desktop.

Open New Mail in Outlook Desktop: a. Create a new email in Outlook desktop. b. Click on the send button to trigger the Web Add-in dialog.

Observe Dialog Title: a. Note the title of the dialog that appears. b. Confirm that the title displays the Outlook Web Add-in URL instead of the expected custom title.

Verify Title in Outlook Web: a. Open Outlook Web. b. Repeat steps 3-4 in Outlook Web. c. Confirm that the dialog title in Outlook Web displays the expected custom title.

Expected Result: The dialog title in Outlook Desktop should display the expected custom title, consistent with the behavior in Outlook Web.

Actual Result: The dialog title in Outlook Desktop is displaying the Outlook Web Add-in URL instead of the expected custom title. This behavior is inconsistent with the title display in Outlook Web.

Note - The title of the dialog not able to change.

VarshaJumanal commented 12 months ago

@exextoc @millerds Could you please let us know if there has been any progress or update on this?

millerds commented 11 months ago

What type of add-in are you creating here? Is this a dialog that is defined in the add-in and run using the dialog API, or is it a dialog that is coming from Outlook? How are you indicating a "custom title"?

RaveendraReshma commented 11 months ago

@millerds, its by using Dialog API.

function OpenDialog(event) {
    Office.context.ui.displayDialogAsync(window.location.origin + '/shell.html', { height: 60, width: 40, displayInIframe: true },
Screenshot 2023-12-04 223110
SubhashRoy044 commented 11 months ago

What type of add-in are you creating here? [subhash044:-Ofiice web add-in using dialog API on click of send ] Is this a dialog that is defined in the add-in [subhash044:- Yes] and run using the dialog API, or is it a dialog that is coming from Outlook?[subhash044:-Here , run using the dialog API] How are you indicating a "custom title"? [subhash044:- We had not provided any custom title , It is taking by default in case of outlook desktop]

millerds commented 10 months ago

I believe the URL showing up is intentional as a security measure and it's not specific to Outlook (WXP would show it as well). Someone else who knows that shared API better would have to comment specifically.