New issue
Advanced search Search tips

Issue 883709 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

After Chrome updates, Ctrl+N opens the last-closed window's tabs

Reported by tabf...@zoho.com, Sep 13

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36

Steps to reproduce the problem:
Same problem as  issue 762951 .  Opening a new issue per  issue 762951  comment 8.

I have now observed the same heisenbug in the first day running each of Chrome 61, Chrome 68, and Chrome 69.  This is after a Chrome uninstall/reinstall before Chrome 68.

 - Open a window and some tabs
 - Close that window
 - In an extension popup, hit Ctl+N

What is the expected behavior?
A new window opens with the New Tab Page I have set (Empty New Tab Page)

What went wrong?
The window opens with the tabs that were open in the last-closed window.

Unfortunately, I still haven't found a reliable repro.  However, it is reliably correlated with the update process.  After the Chrome 68 update, the problem went away (expected behaviour returned) a day or two after the update.

Did this work before? Yes 60

Chrome version: 69.0.3497.92  Channel: stable
OS Version: 6.3
Flash Version:
 
Clarification: correlated with the update process in that I have only experienced this problem shortly following an update, and I have now experienced it following three separate updates.

---

Well, now the problem has stopped happening again.  Bother.  For the record, here's the full chrome:version.

Google Chrome	69.0.3497.92 (Official Build) (64-bit) (cohort: 69_win_92)
Revision	eb2c6d16bcb960cc5c322243c1771713460c4bcf-refs/branch-heads/3497@{#921}
OS	Windows
JavaScript	V8 6.9.427.22
Flash	31.0.0.108 C:\Users\...\AppData\Local\Google\Chrome\User Data\PepperFlash\31.0.0.108\pepflashplayer.dll
User Agent	Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36
Command Line	"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --top-chrome-md=material --flag-switches-end
Executable Path	C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Profile Path	C:\Users\...\AppData\Local\Google\Chrome\User Data\Default
Variations	c134752e-1ece3553
3e006338-3f4a17df
1a0d11d4-2f9febdf
ebeb14fc-3f4a17df
752a9400-3d47f4f4
b7e2524c-ca7d8d80
8fe39baa-3f4a17df
3095aa95-3f4a17df
c27fec31-2d5b6ed9
7c1bc906-f55a7974
47e5d3db-3d47f4f4
125b7f68-a3dbe669
9ca1387e-ca7d8d80
1149accc-3f4a17df
4dc30737-b8a5ea08
a582a1b8-ad75ce17
3042ad4b-ca7d8d80
ebbb4e0a-ca7d8d80
44827ee5-3f4a17df
5e3a236d-4113a79e
8f1e27f-ca7d8d80
edbcf7c5-1cc1312c
de47491b-94a80f74
43f62d3b-28165b59
9890128a-4265ffe4
9e5c75f1-924ab050
6872f671-991e1e1
332bb593-3d47f4f4
f79cb77b-3f4a17df
4ea303a6-ecbb250e
6e6e0c7e-ca7d8d80
d92562a9-4d2fac87
7aa46da5-c946b150
4da5ae82-91c810ef
2c1d398c-3f4a17df
6973a1cf-3f4a17df
cc54eb06-ca7d8d80
cac0a91c-77662737
58a025e3-36e97b2c
df072bba-ca7d8d80
ff29b1bd-37ef7e17
4bc337ce-69465896
9a2f4e5b-ca7d8d80
1354da85-f1a864dc
17507c76-ca7d8d80
494d8760-52325d43
f47ae82a-746c2ad4
3ac60855-486e2a9c
f296190c-19dcaa1a
4442aae2-6e3b1976
ed1d377-e1cc0f14
12e17bc5-e1cc0f14
75f0f0a0-6bdfffe7
e2b18481-4ad60575
e7e71889-e1cc0f14
b1ceb06f-d1372334
3a4029d-ca7d8d80
6ab94979-3f4a17df
94e68624-803f8fc4
8834fcca-ca7d8d80
ea0f933d-ca7d8d80
Linker	lld-link

OS is Win8.1 Enterprise (winver v6.3 build 9600) x64.
Components: -UI UI>Browser>Sessions Internals>Installer
Cc: tmartino@chromium.org
Components: -Internals>Installer
This seems related to browser startup and/or session restore. If updates are in any way involved, it would only be due to the relaunch done after an update. Such relaunches intentionally perform session restore regardless of the session.restore_on_startup preference.

This sort of relaunch can be simulated with chrome://restart. Perhaps this tidbit will help in diagnosing the underlying problem. I wonder how extension popups relate. That's an interesting twist.

Removing Internals>Installer.
Do you have session restore turned on? If not, did you click an upgrade button in chrome?
Labels: Needs-Bisect Needs-Triage-M69
Cc: swarnasree.mukkala@chromium.org
Labels: Triaged-ET Needs-Feedback
Tried testing the issue on reported chrome #69.0.3497.92 and latest chrome #71.0.3552.2 on windows 10 by following below steps.

Steps:
=====
1.Launched chrome.
2.Installed TabFern "https://chrome.google.com/webstore/detail/tabfern-tab-manager-and-b/hbajjpcdbninabigakflkhiogmmjaakm" ( By the reference of  issue 762951  comment#8).
3.Opened multiple tabs (~3) in the chrome.
4.Closed the window.
5.Opened new window by hitting Ctrl+N(using the keyboard) in popup extension.
6.Observed a new fresh window.

Attached screencast for reference.
@reporter: Could you please review the attached screencast and let us know if anything is being missed here. If possible request you provide screencast of the issue so that it would be really helpful for better triaging of the issue.

Thanks.!
883709.mp4
4.0 MB View Download
All, thank you for your suggestions and patience.  I can reliably trigger the behaviour I am observing with a browser relaunch in Chrome 69.  I am triggering the relaunch by changing the top-chrome setting in chrome:flags at the moment.  I will try chrome:restart, and will post a screencast as soon as I learn how to make one :) .
Project Member

Comment 8 by sheriffbot@chromium.org, Sep 23

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Not a screencast, but here's the repro that is working for me.  Full Chrome version info attached in case you need it.

Repro:

- In chrome:extensions, turn off all extensions and apps.
- In chrome:settings, make sure that "On startup" is set to "Open the New
  Tab page."

- Download the attached 883709.tar.xz
- tar xvJf 883709.tar.xz
  You will get a `public/` directory.
  (Note: source is at https://github.com/cxw42/TabFern/tree/883709 .
  You can git clone / npm install / npx brunch b to build the public/ tree.)

- In chrome:extensions, load the public/ directory as an unpacked extension.
  A popup will appear in the upper-left corner.
- Open a second tab next to chrome://extensions and navigate to any web site.
  (I have tried this with https://demozoo.org and with this issue page.)
- Make sure the only Chrome windows you have open are the one with the two
  tabs, and the popup.
- In the second tab, go to chrome://restart .  Chrome will restart.

- When Chrome reopens, cancel the "disable developer mode extensions" box.
- You should now be back where you were: the two-tab window and the popup are
  open.  This is the expected behaviour of a restart.

- Close the two-tab window (I get the same results from Alt+F4 and from
  the "X" on the window frame).
- Click on the popup if it isn't already focused.
- Hit Ctrl+N.
- A window will open.  The opening will be logged in the popup.  The two
  previously-open tabs will reappear.  The popup will show, in bold,
  "expected 1 tabs; got 2 tabs."  This is the behaviour I have been seeing.
  What I expected was for the new window to have only one tab, showing the
  New Tab page.
- You can do this any number of times with any number of tabs.  After
  you close the only non-popup window, when you hit Ctrl+N in the popup,
  it will restore that window's tabs.  Boldface lines in the popup mark
  unexpected behaviour.

- Close all Chrome windows and verify no Chrome processes are running.
- Launch Chrome.
- Open two tabs as above, so the only Chrome windows open are a two-tab window
  and the popup.
- Close the two-tab window as above.
- Hit Ctrl+N in the popup.
- You will get a window with only one tab, a New Tab page.  This is the
  expected behaviour.

- Go to chrome://restart
- When Chrome comes back up, the undesired behaviour is back.  That is,
  if you close the only non-popup window and then hit Ctrl+N from the popup,
  that window's tabs will be restored.

883709.tar.xz
146 KB Download
version.txt
1.8 KB View Download
Cc: phanindra.mandapaka@chromium.org
Labels: Needs-Feedback
tabfern@ Thanks for the feedback...

Tried to load the extension that provided in the comment #9, " 883709.tar.xz " and " https://github.com/cxw42/TabFern/tree/883709 " As we are getting error while load the extension. Attached screenshot for reference.
Steps:
-----
1. Launched reported chrome 
2. Downloaded given extension and tried to load the extension from chrome://extensions/ ,As we are getting error as attached screenshot
3. Tried with the extension mentioned in the comment #6 by following the steps given in the comment #9, As we are unable to reproduce the issue from our end on reported chrome 69.0.3497.100 on comment #9 using Windows 10 and 7.

@Reporter : It would be really helpful if a sample Extension is provided, so that we can investigate the issue further and if possible provide screen-cast for better triaging it.

Thanks.! 
Extension.PNG
84.9 KB View Download
Phanindra, thanks for trying!  

- Do you still see the load error if you load ~\Downloads\TabFern-883709\public instead of ~\Downloads\TabFern-883709?  See attached screenshot of a configuration that successfully loaded for me.  On Windows, I have to expand the "public" folder, not just select it, for Chrome to use that directory.

- I tried the repro from scratch this morning on a Win8.1 machine with the same results (yesterday's tests were on Win7).

- It makes sense that you would like to see a screencast.  I will put one together as soon as I have time.  Yesterday I was able to test and to develop the #9 extension, but unfortunately did not have time to make a clean recording.
Loading-unpacked.png
35.5 KB View Download
Project Member

Comment 12 by sheriffbot@chromium.org, Sep 24

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
tabfern@ Thanks for the feedback...

As per comment #11, Tried to enable extension but we are unable to find public folder. Could you please check the attached screen cast and please let us know if anything missed from our end and if possible provide any other sample extension file for further investigation on this issue. Attaching screencast for reference.

Thanks..! 
883709.mp4
4.9 MB View Download
Phanindra, my apologies for the confusion.  The GitHub repo is the source, but not the built version.  Attached is the built version from the .tar.xz file, repackaged as a zip with files at the top level, and the screencast you requested.

Please use only the attached ZIP for testing.

Towards the end of the screencast, after focusing the popup window, I hit Ctrl+N as described in comment 9.  I don't have a good way to show that in the screencast, but that is what was happening.

Thanks!
883709-public.zip
372 KB Download
883709-c14.mp4
1.7 MB View Download
Project Member

Comment 15 by sheriffbot@chromium.org, Sep 25

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Bisect Target-71 M-71 FoundIn-71 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
 tabfern@ Thanks for the feedback..

As per comment #9 and comment #14, as we are able to reproduce the issue on reported chrome version 69.0.3497.92  also on latest chrome 71.0.3562.0 using Mac 10.13.6, Ubuntu 14.04 and Windows 7.  

Same behavior is seen on M60(60.0.3112.113) hence considering it as non-regression and marking it as Untriaged.

Thanks! 

Sign in to add a comment