Skip to content
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

[Bug]: In case of Multiple browserViews only one of them is interactable #29015

Closed
3 tasks done
pOoOf opened this issue May 5, 2021 · 4 comments
Closed
3 tasks done

Comments

@pOoOf
Copy link

pOoOf commented May 5, 2021

Preflight Checklist

Electron Version

^11.0.1

What operating system are you using?

macOS

Operating System Version

MacOs Big Sur, 11.0.1

What arch are you using?

x64

Last Known Working Electron version

None, tried in 12.0.0 also

Expected Behavior

I have added two BrowserView to BrowserWindow using addBrowserView method on BrowserWindow's instance

Ideally, both the browser views should be interactable but I can focus and enter text in only one of the browserviews
Other browserview won't event respond to click events.

Actual Behavior

Screenshot 2021-05-05 at 7 58 01 PM

Browserview in the left is working fine, but on the right, it is frozen, nothing happens on clicking

Repo URL to reproduce this issue

https://github.com/pOoOf/electron-test

Instructions to start server

This works with node 12

nvm use 12
yarn
yarn start
@Kilian
Copy link
Member

Kilian commented May 5, 2021

The left browserview is at x: 0, y:0 and works and the right browserview is offset and doesnt work, which makes me thing this is a duplicate/fixed by #28984 That'll be in the latest electron versions soon.

@pOoOf
Copy link
Author

pOoOf commented May 6, 2021

Hey @Kilian i tried the new version of electron containing the fix(v13.0.0-beta.22)

But now, the app is crashing immediately after it opens
this is the repo if you want to repro this issue

https://github.com/pOoOf/electron-test

Let me know if I am doing anything wrong.

@Kilian
Copy link
Member

Kilian commented May 7, 2021

@pOoOf Can you make an isolated example in https://www.electronjs.org/fiddle ?

@pOoOf
Copy link
Author

pOoOf commented May 8, 2021

@Kilian thanks for pointing me to fiddle, it was really easy to experiment with different electron versions to check in which version code is working and found that in v12.0.0, the code is working fine but in v13.0.0-beta.20, the app crashes as soon as it starts
Although my problem is solved, I have added the code to a gist just so you can debug
here is the gist url.

https://gist.github.com/2c2a31d03637cad81b6a309b27e856c0

let me know if there is any problem in accessing the gist.
Thanks

@pOoOf pOoOf closed this as completed May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants