binaryninja-api
binaryninja-api copied to clipboard
inconsistent handling of URLs in interaction APIs
Trying to use URLs in text of get_tex_link_input shows text that looks clickable is not. We should fix the URL handler so it passes to the native browser as done in other interfaces or at least normalize the behavior across all interaction APIs.
Example:
>>> from binaryninja import get_text_line_input, show_message_box
>>> get_text_line_input("Test <a href=\"https://google.com/\">link</a>.", "Title")
# Dialog looks clickable but isn't.
Conversely, show_message_box just removes linking entirely.
>>> show_message_box('test', 'test <a href="https://google.com/">link</a>')
# neither link style nor clickable
Update (as of 4.0.4863-dev (908ede53)): show_message_box now shows the link, and it is clickable.
There is no change in get_text_line_input: the links still show styled as a link, even shows the URL mouse pointer when hovered, but does not click.