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
Unexpected state after calling webview.focus() if webview is already focused #13697
Operating System (Platform and Version): macOS 10.13.5
Last known working Electron version: none that I could find
Expected Behavior
Calling webview.focus() should always have the same behavior, whatever the current state of the app.
Actual behavior
Calling webview.focus(), if the webview is blurred, does what we would expect (focus the webview and the document inside it).
Calling webview.focus(), if the webview is already focused, puts the webview in a strange state.
In the main window, document.activeElement is still the webview element, but inside the webview, document.hasFocus() now returns false (and we can see an outline around the webview)
Thank you for taking the time to report this issue and helping to make Electron better.
The version of Electron you reported this on has been superseded by newer releases.
If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know.
I'm setting the blocked/need-info label for the above reasons. This issue will be closed 7 days from now if there is no response.
Activity
sofianguy commentedon Aug 9, 2019
Thank you for taking the time to report this issue and helping to make Electron better.
The version of Electron you reported this on has been superseded by newer releases.
If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know.
I'm setting the
blocked/need-infolabel for the above reasons. This issue will be closed 7 days from now if there is no response.Thanks in advance! Your help is appreciated.
magne4000 commentedon Aug 9, 2019
Doesn't seem to happen anymore