New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 616410 link

Starred by 8 users

Issue metadata

Status: Verified
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Regression : Unwanted 'Chrome Legacy Window' is observed at 'Taskbar' on opening an NTP.

Reported by yfulgaon...@etouch.net, Jun 1 2016

Issue description

Chrome version : 53.0.2754.0 (Official Build) ab317e073bd7b2cb74c405f23008d0a6d4db6270-refs/heads/master@{#397000} 32/64 bit
OS :  Windows (7,8,10)

What steps will reproduce the problem?
1. Freshly launch chrome, go to chrome://settings and remove the current person. 
2. Open NTP and observe the chrome icon at the 'Taskbar'.

Actual : Unwanted 'Chrome Legacy Window' is observed at 'Taskbar' on opening an NTP. 
Expected : No such 'Chrome Legacy Window' should be seen on opening an NTP. 

This is a regression issue, broken in 'M-53', below is the Manual Bisect and change log info.
Good Build : 53.0.2753.0
Bad Build : 53.0.2754.0

Change log info:
https://chromium.googlesource.com/chromium/src/+log/53.0.2753.0..53.0.2754.0?pretty=fuller&n=10000

Suspecting : r396823 ? from change log

Note : 
1. Above issue is not reproducible on chromium builds hence providing a change log info.
2. Above issue is not seen on Mac(10.10.5, 10.11.4) and Linux(14.04 LTS) OS.
 
Actual_window.mp4
1.4 MB Download
Labels: ReleaseBlock-Stable
Adding RB label as this is recent regression.
Owner: yfulgaon...@etouch.net
Assigning back to the reporter since this looks unrelated to the mentioned r396823.
Cc: ananta@chromium.org
Owner: dmazz...@chromium.org
+dmazzoni

This looks like a sideeffect of the fix for bug  http://crbug.com/613336 

The following revision refers to this bug:
https://chromium.googlesource.com/chromium/src.git/+/a7e78f6f5d453c52313b74de10c5f680aa3d5ee3

commit a7e78f6f5d453c52313b74de10c5f680aa3d5ee3
Author: dmazzoni 
Date: Tue May 24 18:43:04 2016

Ensure LegacyRenderWidgetHostHWND is always created.

Previously, LegacyRenderWidgetHostHWND was only created inside
RenderWidgetHostViewAura::InternalSetBounds, and only if the parent
HWND was known. However, under some circumstances, InternalSetBounds
only gets called once and it gets called *before* the aura Window is
attached, so the legacy win never gets created.

Fix it by also trying to create the legacy win in
RWHVA::AddedToRootWindow().

BUG= 613336 

Review-Url: https://codereview.chromium.org/1996163002
Cr-Commit-Position: refs/heads/master@{#395649}

Cc: scottmg@chromium.org
I'm seeing this locally too on "Version 53.0.2754.0 canary", related to creating a new tab, but I'm not sure of an exact repro.
Labels: -ReleaseBlock-Stable ReleaseBlock-Beta
Thanks. I'll look into this. Repro steps would be welcome, I haven't seen this myself but I'll try.

Since this morning I hit this bug almost 3 times not sure which steps are landing me in this state :

First time  : Very first time I had no clue, since I was trying to open a folder on my desktop and wasn't able to hence restarted my machine and later everything worked.

Second time : little improved and was able to identify that this is Chrome Canary which is causing this and killed the browser from taskmanager.

Third time : Updating this bug, will try to exit Canary.


Note : Just curious to know why this wasn't a dev blocker(sure there are no solid repro steps), but the experience after we hit this bug is not pleasant given today we are releasing first M53 dev.
Labels: -ReleaseBlock-Beta ReleaseBlock-Dev
As per my offline chat with ananta@ and suggested us to block dev due to this issue, Also informed that the fix is not straight easy. 
hence marking the bug as release-block-dev for M53.


The bug typically reproduces when you open a pdf file in chrome or print in chrome and then switch to a new tab or another tab in that window.

Does not make chrome unusable in my opinion. Just an annoying button shows up on the taskbar which does not go away until the tab with the pdf or the print preview is closed.

I've had it happen that the window somehow disappears and it seems like no events get sent through to the real window.
Labels: -ReleaseBlock-Dev ReleaseBlock-Beta
Because Chrome is usable, I am not going to block the dev channel.
Project Member

Comment 14 by bugdroid1@chromium.org, Jun 3 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b35c046639c244df4a954a791e24cfe7d5270daa

commit b35c046639c244df4a954a791e24cfe7d5270daa
Author: ananta <ananta@chromium.org>
Date: Fri Jun 03 20:20:24 2016

Fix a bug with the Chrome legacy window at times becoming a top level window with a non functional button in the taskbar.

This bug typically occurs if the legacy window stays around after it is
removed from the original root window.

It looks like a recent change (https://codereview.chromium.org/1996163002)
which ensures that the legacy window is always created exacerbates this
problem by creating the legacy windows early and some of them stay around
after a tab switch. Typical cases include opening a pdf file in chrome
which causes at least two RWVHA instances to be active at any given point
and the legacy window which belongs to the original instance becomes a
button on the taskbar when the tab is switched.

Fix is to never reparent to the desktop window and instead always reparent
to the hidden window.

BUG= 616410 

Review-Url: https://codereview.chromium.org/2031213002
Cr-Commit-Position: refs/heads/master@{#397790}

[modify] https://crrev.com/b35c046639c244df4a954a791e24cfe7d5270daa/content/browser/renderer_host/legacy_render_widget_host_win.cc
[modify] https://crrev.com/b35c046639c244df4a954a791e24cfe7d5270daa/content/browser/renderer_host/render_widget_host_view_aura.cc

Just to update,
Rechecked above issue on build no. 53.0.2761.2, it appears to be fixed and working as intended. Thank you!
Labels: -ReleaseBlock-Beta -M-53 Merge-Request-52 ReleaseBlock-Stable M-52
Thanks for verifying the fix!

We need to merge this fix to M52 too, since  bug 613336  (which made this bug appear more often) was merged to M52.

Comment 17 by tin...@google.com, Jun 7 2016

Labels: -Merge-Request-52 Merge-Approved-52 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M52 (branch: 2743)
Dominic. could you please merge the CL to M52 branch,the bug is fixed as per #15.

Comment 19 by tin...@google.com, Jun 7 2016

Labels: -Merge-Request-52 Merge-Approved-52 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M52 (branch: 2743)
Project Member

Comment 20 by bugdroid1@chromium.org, Jun 7 2016

Labels: -merge-approved-52 merge-merged-2743
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2529de3d35849bb1e6a4d9b8ec80ca41c9004f3d

commit 2529de3d35849bb1e6a4d9b8ec80ca41c9004f3d
Author: Dominic Mazzoni <dmazzoni@chromium.org>
Date: Tue Jun 07 23:35:30 2016

Merge to M52: Fix a bug with the Chrome legacy window at times becoming a top level window with a non functional button in the taskbar.

This bug typically occurs if the legacy window stays around after it is
removed from the original root window.

It looks like a recent change (https://codereview.chromium.org/1996163002)
which ensures that the legacy window is always created exacerbates this
problem by creating the legacy windows early and some of them stay around
after a tab switch. Typical cases include opening a pdf file in chrome
which causes at least two RWVHA instances to be active at any given point
and the legacy window which belongs to the original instance becomes a
button on the taskbar when the tab is switched.

Fix is to never reparent to the desktop window and instead always reparent
to the hidden window.

BUG= 616410 

Review-Url: https://codereview.chromium.org/2031213002
Cr-Commit-Position: refs/heads/master@{#397790}
(cherry picked from commit b35c046639c244df4a954a791e24cfe7d5270daa)

Review URL: https://codereview.chromium.org/2040333002 .

Cr-Commit-Position: refs/branch-heads/2743@{#270}
Cr-Branched-From: 2b3ae3b8090361f8af5a611712fc1a5ab2de53cb-refs/heads/master@{#394939}

[modify] https://crrev.com/2529de3d35849bb1e6a4d9b8ec80ca41c9004f3d/content/browser/renderer_host/legacy_render_widget_host_win.cc
[modify] https://crrev.com/2529de3d35849bb1e6a4d9b8ec80ca41c9004f3d/content/browser/renderer_host/render_widget_host_view_aura.cc

Labels: TE-Verified-52.0.2743.33 TE-Verified-M52
Tested the same on win8.1 chrome version 52.0.2743.33 as per the repro in comment #10 - 
Opened a pdf document switched to new tab and giving a Ctrl+P and switching to new tab - observed no legacy window

As per the steps in the issue also could not see any legacy window opening on switching to NTP

Adding TE-Verified labels
Status: Verified (was: Assigned)
 Issue 618980  has been merged into this issue.
Issue is resolved
Project Member

Comment 25 by bugdroid1@chromium.org, Jun 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2529de3d35849bb1e6a4d9b8ec80ca41c9004f3d

commit 2529de3d35849bb1e6a4d9b8ec80ca41c9004f3d
Author: Dominic Mazzoni <dmazzoni@chromium.org>
Date: Tue Jun 07 23:35:30 2016

Merge to M52: Fix a bug with the Chrome legacy window at times becoming a top level window with a non functional button in the taskbar.

This bug typically occurs if the legacy window stays around after it is
removed from the original root window.

It looks like a recent change (https://codereview.chromium.org/1996163002)
which ensures that the legacy window is always created exacerbates this
problem by creating the legacy windows early and some of them stay around
after a tab switch. Typical cases include opening a pdf file in chrome
which causes at least two RWVHA instances to be active at any given point
and the legacy window which belongs to the original instance becomes a
button on the taskbar when the tab is switched.

Fix is to never reparent to the desktop window and instead always reparent
to the hidden window.

BUG= 616410 

Review-Url: https://codereview.chromium.org/2031213002
Cr-Commit-Position: refs/heads/master@{#397790}
(cherry picked from commit b35c046639c244df4a954a791e24cfe7d5270daa)

Review URL: https://codereview.chromium.org/2040333002 .

Cr-Commit-Position: refs/branch-heads/2743@{#270}
Cr-Branched-From: 2b3ae3b8090361f8af5a611712fc1a5ab2de53cb-refs/heads/master@{#394939}

[modify] https://crrev.com/2529de3d35849bb1e6a4d9b8ec80ca41c9004f3d/content/browser/renderer_host/legacy_render_widget_host_win.cc
[modify] https://crrev.com/2529de3d35849bb1e6a4d9b8ec80ca41c9004f3d/content/browser/renderer_host/render_widget_host_view_aura.cc

Sign in to add a comment