Skip to content

Commit

Permalink
Fix fast Ctrl+W with dead tabs causes UI hang
Browse files Browse the repository at this point in the history
This doesn't actually stop dead tabs from happening, but when it does at
least it won't break the entire UI now.

Fix brave#9083

Auditors: bridiver
  • Loading branch information
bbondy committed Sep 12, 2017
1 parent 0fd491d commit 43ff261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/browser/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const normalizeUrl = function (url) {

const getTabValue = function (tabId) {
let tab = getWebContents(tabId)
if (tab) {
if (tab && !tab.isDestroyed()) {
let tabValue = makeImmutable(tab.tabValue())
tabValue = tabValue.set('canGoBack', tab.canGoBack())
tabValue = tabValue.set('canGoForward', tab.canGoForward())
Expand Down

0 comments on commit 43ff261

Please sign in to comment.