-
Notifications
You must be signed in to change notification settings - Fork 975
Clicking on this link causes a crash on OS X, Windows 10 #1726
Comments
Confirmed on Windows 10. |
appears to be related to the notification bar. If you close it before clicking the link everything works fine |
Not reproducible on 0.10.2 on Windows 10. Has this been fixed? |
This still reproduces. It has to do with navigating while the permissions bar is open. You probably have a saved permission so you don't reproduce. |
Yes you are right. I cleared all permissions and clicked the link, and it caused a crash. |
another example link: https://www.homedepot.ca/en/home/categories/appliances.html |
i think this just happens if the webcontents are navigated while there is still a reference to the this crash also happened with the |
there are actually two issues related to this issue:
|
having notifications at the app level was intentional. there's a couple reasons:
open to changing this but i think this is not what is causing the crash |
they can still appear above the tab, but right now there is no good way to know which notifications can be dismissed because they are no longer relevant (navigated away or closed the tab). If a permission request comes from a tab it should only appear for that tab. If it comes from a background page then we can display it for the current tab as well, but I can't see any reason why it should appear on every window. It's not the direct cause of the crash, but the inability to automatically dismiss requests that are no longer relevant makes it difficult to fix the crash |
going to try a quick fix for the crash using WeakMap and maybe we can come back to the notification location issue |
no luck there unfortunately because the root of the issue is actually the reference in electron. The permission handler has several problems for us, but the main problem is that it expects one webcontents per process and also expects a new webcontents for each navigation. The problem could be fixed in Electron, but it would require a lot of refactoring and it will be a lot easier to just auto deny on tab navigation |
I'm also not sure what would happen right now if you had two webcontents in the same renderer process if one or both of them had a permission request |
I take that back, I might be able to fix Electron and keep things backwards compatible with upstream by replacing the map to the process id with a map to the render frame host id |
the workaround i used before for |
turned out to be easier than I thought. Somehow I missed that the webcontents are available in the callback handler. I still think it's weird that the notifications show up on all windows and tabs, but I'll create a separate issue for that |
https://www.eventbrite.com/d/ca--los-angeles/fashion-shows/
Click the list of the first box.
The text was updated successfully, but these errors were encountered: