Skip to content

Try better webview focus tracking solution in Electron 6+ #65413

Closed

Description

@mjbvz

From #64729

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

Activity

  1. bpasero commented on Jan 8, 2019

    @bpasero
    Contributor

    Our electron-4.0.x branch is up to date and running with Electron 4.0.1

  2. 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
  3. mjbvz commented on Jun 21, 2019

    @mjbvz
    ContributorAuthor

    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

  4. bpasero commented on Jun 24, 2019

    @bpasero
    Contributor

    Ok, updating labels.

  5. 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
  6. mjbvz commented on Jul 22, 2019

    @mjbvz
    ContributorAuthor

    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

  7. bpasero commented on Sep 14, 2019

    @bpasero
    Contributor

    E6 has landed on master but pending regressions we might need to pull it out again before stable is released.

  8. mjbvz commented on Oct 14, 2020

    @mjbvz
    ContributorAuthor

    Closing this since the current solution also works for iframe based webviews

  9. locked and limited conversation to collaborators on Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

webview

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions