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
bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to Electroninsiders-releasedPatch has been released in VS Code InsidersperfupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstreamverifiedVerification succeededwebviewWebview issues
I am testing from the ben/editor branch that contains the changes for Grid. If you split an editor to the side and then close that editor, we now actually dispose the editor and no longer keeping it around as we used to before. This means that we now rely on the editor freeing up its resources properly.
For any webview editor (e.g. markdown preview or extensions editor) I see lots of controls still hanging around after:
Benjamin Pasero (@bpasero) I've fixed some of the leaks on our side but the leaks still exist. Can you take a this possible electron issue to see if you have any thoughts on the problem: electron/electron#13243
Tested using iframe based webviews using the following steps:
Set "webview.experimental.useIframes": true to force iframes to be used
Open a markdown file. Open the preview once and then close it
Snapshot
Now, multiple times: open the preview and then close it
With the preview closed, take another snapshot (give GC a few seconds to run).
You can now compare between the snapshots. Search for webview and confirm that no webview elements are still around. Make sure you are looking at the objects allocated between snapshot X and Y since there will still be some static webview objects around (such as the services):
bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to Electroninsiders-releasedPatch has been released in VS Code InsidersperfupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstreamverifiedVerification succeededwebviewWebview issues
Activity
Working on fixing some webview leaks
mjbvz commentedon Jun 14, 2018
Benjamin Pasero (@bpasero) I've fixed some of the leaks on our side but the leaks still exist. Can you take a this possible electron issue to see if you have any thoughts on the problem: electron/electron#13243
bpasero commentedon Jun 14, 2018
Matt Bierner (@mjbvz) did you test with our previous Electron 1.7.12 to see if this is a regression from the 2.0 update?
mjbvz commentedon Jun 14, 2018
Not a regression from 1.7. I've minimized the impact of this problem. Certainly possible I'm doing something wrong in the code here
ivankravets commentedon Sep 7, 2018
4 remaining items
mjbvz commentedon Oct 16, 2019
I investigated this again and made a few more fixes but am still blocked by the upstream electron issue.
The best long term fix here is probably to move off of webviews and to normal iframes instead
ivankravets commentedon Oct 16, 2019
How to use native iframes? Do you have example?
Fixing some possible leaks in electron webviews
mjbvz commentedon May 6, 2021
Tested using iframe based webviews using the following steps:
"webview.experimental.useIframes": trueto force iframes to be usedYou can now compare between the snapshots. Search for
webviewand confirm that no webview elements are still around. Make sure you are looking at theobjects allocated between snapshot X and Ysince there will still be some static webview objects around (such as the services):