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

Commit

Permalink
Fix change of having last tab detached destroyed
Browse files Browse the repository at this point in the history
Auditors: @bridiver

Fix #10436

This is covered by a test already but the bug is a very intermittent race
condition.
  • Loading branch information
bbondy committed Aug 31, 2017
1 parent 627fcec commit 32ef086
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 @@ -491,7 +491,7 @@ const api = {
// webcontents is still the embedder.
const tabValue = getTabValue(tabId)
const windowId = tabValue.get('windowId')
tab.once('will-attach', () => {
tab.once('did-attach', () => {
appActions.tabStripEmpty(windowId)
})
})
Expand Down

0 comments on commit 32ef086

Please sign in to comment.