Revert "JetBrains: Manually emit window closing/open events to fix third-party modules that rely on those to render overlays (#36699)
Created by: philipp-spiess
This reverts commit 6fc0c2de01c1746fd3402ab277ffe0cdac38c439.
Unfortunately this change brought back the weird behavior where the web view is somehow brought into an unknown state (we assume it is related to offscreen rendering) where, on MacOS, it bugs out and becomes unusable. It seems like the WINDOW_CLOSING
event is tied to garbage collection there somehow.
cc @mallowigi: It seems like we can not do what we tried to do here
Test plan
- Tested manually
- @vdavid please also test on your machine
App preview:
Check out the client app preview documentation to learn more.