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 blocked presentation after dismissing context menu and opening Safari #52

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Tunous
Copy link
Contributor

@Tunous Tunous commented Jul 9, 2024

There is a case where attempts to present a Safari view controller could happen while a context menu is appearing/dismissing. Usually context menu automatically disappears and is not present in a hierarchy, but in rare occasion it might still be here. Then, after we present Safari view controller on top of that context menu, the system will dismiss incorrect view controller. All that combined causes further presentation attempts to no longer work.

This is a situation that I sometimes encountered when pressing on a button that opens Safari view controller while other unrelated context menu is still dismissing. It's very random and uncommon so I don't have r but if it happens it is no longer possible to present Safari view controller again.

A quick hack is to skip presentation attempt if we see context menu on top of hierarchy. This doesn't resolve the issue fully but makes it so the Safari won't open only once. Further presentation attempts return to normal behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant