This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Fix dialog/authentication issues for Edge + 365 and Desktop versions of Office #144
Open
almgong
wants to merge
8
commits into
OfficeDev:master
Choose a base branch
from
appfolio:vmFixEdgeSupport
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2ad247b
ag - Refactor isIEOrEdge to separate static methods
almgong db1cabd
ag - Force Edge environments to be handled as a non add-in
almgong 2df85d0
ag - Open authentication dialog on Edge using displayDialogAsync
almgong 3540ec1
Ensure dialog is closed after successfully retrieving token
almgong c3e0087
1.0.3
almgong 7ae712a
Send token via messageParent for Edge dialogs
almgong 952bfe1
Listen for dialog messages for Edge
almgong f46480f
2.0.0
almgong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's a bug with this dialog on the Outlook desktop client (tested build 1908 & 1909). I use the fork this PR is based on, and my changes in my fork of the fork(🙄) seems to have fixed it.
The problem seem to be that the dialog isn't properly closed as far as
office.js
is concerned. It works as expected when using OWA in Edge, but not on the desktop client.The scenario is the user is authenticated through the popup dialog right. And at some point the token is invalid and
offce-helpers
tries to open a new popup to authenticate the user again. But it receives an error from office.js with code 12007 "A dialog box is already opened from this host window."These changes seems to have fixed the problem: