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

Commit

Permalink
don't do extra navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Feb 22, 2018
1 parent 583afa7 commit 72d2e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atom/browser/extensions/tab_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,11 @@ void TabHelper::SetActive(bool active) {
}

void TabHelper::WasShown() {
if (discarded_) {
auto helper = content::RestoreHelper::FromWebContents(web_contents());
if (helper) {
// load the tab if it is shown without being activate (tab preview)
discarded_ = false;
SetAutoDiscardable(true);
auto helper = content::RestoreHelper::FromWebContents(web_contents());
if (helper) {
helper->RemoveRestoreHelper();
}
Expand Down

0 comments on commit 72d2e1a

Please sign in to comment.