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
{{ message }}
Repository navigation
Try better webview focus tracking solution in Electron 6+ #65413
Tracks revisiting how we track focus of webviews. The focus apis are broken in Electron 3 and as a workaround, we use polling to determine when the webview contents have become focused. This is not a good solution and we should revisit it with Electron 4 to see if the focus apis have been fixed
changed the title [-]Try better webview focus tracking solution in Electron 4[/-][+]Try better webview focus tracking solution in Electron 4+[/+]on Jun 21, 2019
Seems the issue is still in 4.0 in my testing. Here's the electron issue currently tracking this: electron/electron#15718. I'll also test in the exploration builds just to confirm it hasn't been fixed yet, so pushing this to July
iframe based webviews do not seem to suffer from this issue
changed the title [-]Try better webview focus tracking solution in Electron 4+[/-][+]Try better webview focus tracking solution in Electron 6+[/+]on Jul 11, 2019
Activity
bpasero commentedon Jan 8, 2019
Our
electron-4.0.xbranch is up to date and running with Electron 4.0.1[-]Try better webview focus tracking solution in Electron 4[/-][+]Try better webview focus tracking solution in Electron 4+[/+]mjbvz commentedon Jun 21, 2019
Seems the issue is still in 4.0 in my testing. Here's the electron issue currently tracking this: electron/electron#15718. I'll also test in the exploration builds just to confirm it hasn't been fixed yet, so pushing this to July
iframe based webviews do not seem to suffer from this issue
bpasero commentedon Jun 24, 2019
Ok, updating labels.
[-]Try better webview focus tracking solution in Electron 4+[/-][+]Try better webview focus tracking solution in Electron 6+[/+]mjbvz commentedon Jul 22, 2019
I think the best solution here is actually to not use webviews at all if possible. Here's a branch that uses iframes instead: https://github.com/microsoft/vscode/tree/dev/mjbvz/electron-6-iframe-based-webviews
This requires electron 6 so I'm pushing this issue out to August
bpasero commentedon Sep 14, 2019
E6 has landed on
masterbut pending regressions we might need to pull it out again before stable is released.mjbvz commentedon Oct 14, 2020
Closing this since the current solution also works for iframe based webviews