You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What OS are you using (uname -a, or Windows version)?
Both Linux and Windows.
Linux: Linux shougo-GE 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Windows: Windows 10 Enterprise 21H1
IE version: 11.789.19041.0
Edge: 91.0864.54
What programming language are you using (C/C++/Go/Rust)?
go version go1.16.5 linux/amd64
go version go1.16 windows/amd64
What did you expect to see and what you saw instead?
Expected: Destroy() should close webview window.
I have tested below sample script. Destroy() is called after 5 seconds sleep, but the webview window does not be closed.
The window is only closed when the script is exited.
Same issue here. Destroy executes and has no effect, window won't close until i cross it out myself.
justjosias
changed the title
Why webview Destroy() does not close weview window in both Linux and Windows environments?
Why webview Destroy() does not close webview window in both Linux and Windows environments?
May 24, 2022
What OS are you using (
uname -a
, or Windows version)?Both Linux and Windows.
Linux:
Linux shougo-GE 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Windows:
Windows 10 Enterprise 21H1
IE version: 11.789.19041.0
Edge: 91.0864.54
What programming language are you using (C/C++/Go/Rust)?
What did you expect to see and what you saw instead?
Expected:
Destroy()
should close webview window.I have tested below sample script.
Destroy()
is called after 5 seconds sleep, but the webview window does not be closed.The window is only closed when the script is exited.
I have read the code and it should close the window when
Destroy()
is called.webview/webview.go
Line 92 in f540d88
And in macOS the webview window close seems implemented.
webview/webview.h
Line 710 in f540d88
Note: The destructor is called when
Destroy()
is called.The behavior is changed when the code is merged?
843c3aa#diff-0332cdfa0ecdb4d0b79f675f5079e61cdc3e7f6f3c658a73c64973a1b35c2442
Related issue: #514
I think the above issue works because it is under macOS environment.
The text was updated successfully, but these errors were encountered: