New issue
Advanced search Search tips

Issue 706541 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

Reopen closed tab doesn't work if the tab hasn't committed a load yet

Reported by d.huig...@gmail.com, Mar 29 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36

Steps to reproduce the problem:
1. Open in a new tab: http://deelay.me/2000/http://examplesite.com/image.gif
2. Close that tab within 2 seconds
3. Ctrl+shift+t

What is the expected behavior?
The tab reopens

What went wrong?
The tab that you closed *previous* to the last one reopens, in other words, Chrome didn't store the tab that didn't load yet. Firefox behaves the same way.

Similarly, if you navigate to a URL in a tab, and close it before it loads, and press ctrl+shift+t, the tab reopens, but with the previous URL. Firefox behaves differently here, however: it opens a tab with the previous URL loaded but then loads the new URL.

Lastly, this seems related to the behavior that if you navigate to a URL, and press F5 to refresh before it loads, you get the previous URL. Both Chrome and Firefox do this and have done so for a long time, so maybe this is intended behavior.

If the only reason is to avoid a history entry for pages that redirect, maybe a solution could be to replace the history entry after redirect, just like history.replaceState() does. That would have the added benefit that the back button is more predictable: it doesn't depend on whether the new page has loaded yet. However, it may be too much effort and confusion to change the behavior of the back button and F5 to fix this bug.

Did this work before? N/A 

Chrome version: 57.0.2987.110  Channel: stable
OS Version:  open closed tab doesn't work if the tab wasn't loaded yet
Flash Version: Shockwave Flash 25.0 r0
 
Labels: Needs-Triage-M57
Components: Privacy
Labels: -Pri-2 -Needs-Triage-M57 Pri-3
Status: Available (was: Unconfirmed)
Navigations that are not committed (i.e. still pending or in the middle of the redirect chain) do not make it into the navigation history (under the Back and Forward buttons), and therefore they also don't make it to the Recent Tabs menu. This is intentional.

I'm not sure if users do have an expectation that a tab which never loaded would be restorable. It probably makes sense to look into what other browsers do, but I don't think the current behavior is wrong.

Adding the Privacy label, since this is related to the behavior of history and recent tabs, but I don't think it's a privacy issue per se; and decreasing priority.
Same problem, is very irritating! Usualy we closed tabs accidentaly and we want reopen inmediatly.
 Issue 725612  has been merged into this issue.
Summary: Reopen closed tab doesn't work if the tab hasn't committed a load yet (was: Reopen closed tab doesn't work if the tab hadn't loaded yet)
While comment 2 is correct as to why this occurs, I disagree that the current behavior is OK.  I think when a tab is open with a pending load, the visible UI surface (the tab itself) exists, and it's that, not the underlying history state, that determines users' mental model as to whether tabs may be restored.

So I think this should be fixed.
Project Member

Comment 6 by sheriffbot@chromium.org, May 24 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Privacy UI>Browser>History
Status: Available (was: Untriaged)
Still Available.

Sign in to add a comment