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
Seems timing related. After adding a 2ms delay before calling removeChild, the issue only happens 50% of the time. With a 100ms delay, the issue never seems to happen
+1. I ran into this and originally tracked it under #13144, which has some additional information. It also has a demo application that reproduces the issue.
If I wrap the removeChild call with a setTimeout of 1000 ms before removing the original webview from the DOM, then everything works as expected. This isn't realistic though since I'm using react, and this is happening in the context of componentWillUnmount, which won't wait for a delay before continuing.
We have to drop this feature as a result of Chromium's architecture change of webview, it was a design decision that we could not work around on Electron's side. See #14120 for more.
If anyone is interested in fixing this issue on 1.x and 2.x, we are happy to accept patches.
Expected behavior
For code that attempts to move a webview's contents to a new webview before the first webview is about to be unmounted from the dom:
After the timeout, the second webview should have the content of the first webview
Actual behavior
The second webview does not receive the content
How to reproduce
Repo
The text was updated successfully, but these errors were encountered: