OpenDreamProject / OpenDream

A project for running games made in the DM programming language
MIT License
207 stars 112 forks source link

[RT] CEF opens external links instead of the user's actual browser #451

Open ike709 opened 3 years ago

ike709 commented 3 years ago

image

wixoaGit commented 3 years ago

Would this be considered an OpenDream issue, or a RobustToolbox one?

ike709 commented 3 years ago

Excellent question.

PJB3005 commented 3 years ago

You can intercept the BeforeBrowse event to open external http:// navigation in the browser again (use IUrlOpener).

ZeWaka commented 3 years ago

Would be great to keep functionality for CEF to open external links via a method so we can maintain BYOND parity.

ike709 commented 2 years ago

IUriOpener works to open it in their regular browser, but CEF has already created a window to load it in by the time the BeforeBrowse method runs.