Skip to content

If w.Show() fails, the WebView window remains open even if w.Destroy() is called #48

@bminer

Description

@bminer

To reproduce:

  • Call w.Show or w.ShowBrowser
  • Ensure that the target URL does not actually allow WebUI to connect properly (i.e. no /webui.js endpoint)
  • Show will return an error (correct behavior), but the window cannot be closed
  • Call w.Close() or w.Destroy() and notice that the window will remain open. In fact, even ui.Exit() or ui.Clean() have no effect on the "orphaned" window.

This could be an issue with the WebUI library... or perhaps WebView... I'm not sure.

go version go1.24.0 windows/amd64
github.com/webui-dev/go-webui/v2 v2.4.3-0.20250107141857-41f2f2df30c6
github.com/webui-dev/webui v0.0.0-20250406153953-7adbdc482258

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions