Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

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 #9083

Auditors: bridiver
  • Loading branch information
bbondy committed Sep 12, 2017
1 parent e94738d commit 78a0757
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 @@ -49,7 +49,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 78a0757

Please sign in to comment.