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

fix closeInfoPage to call on promise resolution #510

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

lieut-data
Copy link
Member

@lieut-data lieut-data commented Feb 21, 2024

Summary

I regressed the behaviour, which closed the window before the promise was resolved. In my case, since the window never actually closed, the fetch had a chance to succeed. On browsers that honoured window.close, the fetch was interrupted and the settings never saved.

Ticket Link

Fixes: https://mattermost.atlassian.net/browse/MM-56967

I regressed the behaviour, which closed the window before the promise
was resolved. In my case, since the window never actually closed, the
fetch had a chance to succeed. On browsers that honoured `window.close`,
the `fetch` was interrupted and the settings never saved.
@lieut-data lieut-data added the 2: Dev Review Requires review by a core committer label Feb 21, 2024
@lieut-data lieut-data added this to the v1.8.0 milestone Feb 21, 2024
Copy link
Contributor

@larkox larkox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

@lieut-data lieut-data merged commit d12a0e1 into main Feb 21, 2024
7 checks passed
@lieut-data lieut-data deleted the fix-close-info-page branch February 21, 2024 18:42
@lieut-data lieut-data added QA/Deferred Agreement with QA that these changes will be tested post-merge 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request QA/Deferred Agreement with QA that these changes will be tested post-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants