Add default browser & external-open support

Introduce default-browser integration and external open handling across platforms. Added platform/default_browser.h with a Windows implementation (registry registration + settings UI invocation) and mac/linux stubs. Exposed new commands from the renderer (check-default-browser / set-default-browser) and implemented request/response plumbing in NebulaController (SendDefaultBrowserResult) and BrowserClient. Added UI controls and JS helpers in settings and setup pages to check and prompt the user to make Nebula the default browser.

Also added single-instance launch target handling: command-line URL normalization, passing/consolidating the launch target, forwarding it to an existing window on Windows via WM_COPYDATA, and exposing OnExternalOpenRequested on the window/controller. Implemented delayed navigation (CefTask) to safely load pending initial URLs after CEF initialization. Updated CMakeLists and platform startup signatures to include and accept the new files/parameters.
This commit is contained in:
Andrew Zambazos
2026-05-20 21:05:59 +12:00
parent 659d1530b0
commit ce92b3841f
18 changed files with 748 additions and 17 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "platform/default_browser.h"
namespace nebula::platform {
bool IsDefaultBrowser() {
return false;
}
bool EnsureDefaultBrowserRegistration() {
return false;
}
bool RequestDefaultBrowser() {
return false;
}
} // namespace nebula::platform