Closed ltilve closed 6 years ago
This issue seems also the case for other tests that are failing, as tearing off tabs to a separate window or downloading https://webtorrent.io/torrents/big-buck-bunny.torrent
I've discovered one thing that would cause a lot of issues here is that in the latest muon c68, we are not getting the tab-detached-at
event on the window WebContents. (This is expected at https://github.com/brave/browser-laptop/blob/0.23.x/app/browser/windows.js#L296)
This could be the cause of the issue, or a symptom of a more underlying issue, but without it I can't dig deeper as it will certainly cause many JS errors on the b-l side.
When changing to a previously opened tab after closing the visible one, the browser is crashing.
When closing a tab, WebContents is destroyed by GuestViewBase::Destroy() at first. From what we have been investigating, it could be that this destroying timing is too early..
In the case of closing a tab which is not the last on the tab strip, this is error in the console:
This happens in
browser-laptop/app/renderer/reducers/frameReducer.js#200
.