neomjs / neo

The application worker driven frontend framework
https://neomjs.com
MIT License
2.76k stars 149 forks source link

LivePreview: closing a detached window sometimes gets an error #5482

Closed tobiu closed 1 month ago

tobiu commented 1 month ago

Screenshot 2024-06-24 at 22 25 48

might be a bigger issue: revertFocus() & focus() could not be aware about different windows or a focus call wants to enter a no longer existing window.

tobiu commented 1 month ago

while there was an issue with the focus remote call (passing id instead of window id, i added explicit port checks into worker.Base. if a windowId gets passed and no port it found, no message will get send. accordingly: promiseMessage() will directly trigger reject() if no message was sent.