New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The webview is destroyed automatically #16372

Open
VisualSJ opened this Issue Jan 12, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@VisualSJ
Copy link

VisualSJ commented Jan 12, 2019

  • Output of node_modules/.bin/electron --version: 3.0.9
  • Operating System (Platform and Version): MacOS 10.13.6
  • Output of node_modules/.bin/electron --version on last known working Electron version (if applicable):

Expected Behavior

  1. Create a webview Insert into the document.body. And run a lot of js scripts in it.
  2. Remove the webview from the body.
  3. Put it back in the document.body.

I want the results of the previous run to continue in the webview.

Actual behavior
The webview is destroyed. All the data in there is lost. And there is no opportunity for us to store data.

@VisualSJ

This comment has been minimized.

Copy link

VisualSJ commented Jan 12, 2019

@VisualSJ

This comment has been minimized.

Copy link

VisualSJ commented Jan 12, 2019

image

@sofianguy

This comment has been minimized.

Copy link
Member

sofianguy commented Jan 15, 2019

Thank you for taking the time to report this issue and helping to make Electron better.

Would it be possible for you to fork electron-quick-start for a small app that reproduces the issue by itself?

Standalone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment