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 threading issue with external links in HTML5 contexts #5078

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Dec 1, 2024

Identify the Bug or Feature request

Fixes #5077

Description of the Change

The click handler for HTML5 links now calls MapTool.showDocument() on the swing thread to avoid conflicts with the JFX thread where the handler runs.

We also now check that the browse action is supported by the Desktop before entering the associated code branch.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

  • Fixed a bug where clicking external links in HTML5 contexts would cause MapTool to hang.

This change is Reviewable

- Mention the threading requirements in the docs
- Check that the browse action is supported before we try to use it
- Avoid needlessly reparsing the URI
@kwvanderlinde kwvanderlinde self-assigned this Dec 1, 2024
@github-actions github-actions bot added the bug label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Awaiting-Review
Development

Successfully merging this pull request may close these issues.

[Bug]: Links to external URL in HTML5 hangs
1 participant