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

Issue 747575 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Managing sync settings for managed account after signin doesn't open settings page

Project Member Reported by w...@chromium.org, Jul 21 2017

Issue description

Chrome Version: 59.0.3071.115 (Official Build) (64-bit)
OS: Windows

What steps will reproduce the problem?
(0) Use the browser, so that the default profile is not empty.
(1) Sign-in to Chrome with my @google.com account.
(2) When prompted, choose to sign-in to a new profile, rather than linking to the current one.
(3) When prompted to enable Sync, tick the box to "Manage Chrome Sync settings...", then clock OK to continue.
(4) Open chrome://sync-internals in a new tab.

What is the expected result?

Expect that at #3, the Settings page for Sync is shown, allowing me to configure Sync.

Then expect that chrome://sync-internals shows that Sync is enabled.

What happens instead?

At #3, a new tab is opened, but it remains blank rather than navigating to Sync settings.

When chrome://sync-internals is opened, it shows that Sync setup has not completed, presumably because the user was never directed to the Sync settings page, and so never actually finished enabling Sync.

If you visit chrome://settings, the entry for Sync says it was disabled via Google Dashboard.

 
Cc: msarda@chromium.org
Mihai, this looks similar to 657924 and this functionality has been changing a lot recently. Any ideas about what's going on?

Comment 2 by msarda@chromium.org, Jul 26 2017

Labels: Needs-Feedback
This works fine on ToT (I just tested now). May I ask you to test again on beta or dev?

Comment 3 by w...@chromium.org, Jul 26 2017

Unable to repro on Canary, so yes, seems fixed at ToT.  Just broken for all
stable users.

Comment 4 by ew...@chromium.org, Jul 26 2017

Cc: ew...@chromium.org pnoland@chromium.org
Does this still repro on the latest M61 Beta? Could someone with a Windows machine test?

If not, then I think we can close this out (nothing else we can do at this point).

If so, then we should find out which CL fixed this issue, and make sure it gets merged back to 61 before the next beta cut.

Comment 5 by msarda@chromium.org, Jul 27 2017

Owner: msarda@chromium.org
Status: Assigned (was: Untriaged)
Taking on the bug as I am the only eng with a windows machine in the sign-in team. I will only be able to test beta next week though as I am OOO from Friday to Tuesday.

Comment 6 by s...@chromium.org, Aug 9 2017

Labels: Sync-Triaged

Comment 7 by ew...@chromium.org, Aug 9 2017

Mihai - please test this ASAP. If we want to try to get this into 61 (if it's not already there), it should happen soon.

Comment 8 by msarda@chromium.org, Aug 16 2017

Labels: -M-59 ReleaseBlock-Stable M-62
I can reproduce this issue on Chrome Canary - the sync settings page is not presented after I click on "Settings" from the sync confirmation screen. We'll need to investigate it.

I am raising its priority and marking it as Release Block Stable for M62.

Comment 9 by ew...@chromium.org, Aug 16 2017

Can you also repro on M61? If so, we should update the milestone to M61. We need to fix this ASAP.

Could you also check what value gets emitted in Sync.InitialState when you follow these repro steps and get into a state where sync is off and says it's been "stopped via Google Dashboard" in settings? Looking at this timeline (https://uma.googleplex.com/p/chrome/timeline_v2/?sid=cd040303916c392867f0409bca8a8e38), it doesn't seem like the number of users in this state spiked in M59 or M60, which is good. But it's possible that we're not properly recording that histogram for users that fall into this state via this bug.

Comment 10 by ew...@chromium.org, Aug 17 2017

So, I wasn't able to reproduce this on my personal Win10 machine on current M60 stable, M61 Beta, or M62 Canary. It's also worth noting that on M61/M62, there's no checkbox, it's a "Settings" link (as Mihai described in c#8).

Mihai - can you confirm whether this affects all versions of Windows or only pre-Win10? Wonder why I wasn't able to repro it (but it's encouraging that it's not happening every time and the UMA data makes it seem like we aren't seeing a spike of users in this state).
Status: Started (was: Assigned)
I hit this issue on Chrome Canary on my Windows 10 corp desktop machine. I have a crash  on-going, but I should get to this bug once I fix the crash.
I managed to find the issue of the bug (based on the repro case, I am very sure this exists on 61 as well):
1. The user needs to sign in with a managed account in a profile that was never signed in previously
2. On the "Link your Chromium data" dialog, select to create a new profile.
3. The newly created profile displays the sync confirmation dialog on top of the welcome page.
4. When the user selects "Settings" link (or ticks the checkbox) we hit the bug. 

Explanation: There is a race condition here:
1. The sign-in code asks opens sync settings by navigating to chrome://settings/syncSetup
2. The welcome tab, navigates to NTP as sign-in is successful.

The navigation done from the welcome page, overrides the one from sign-in code and this is why the user ends up on the NTP.

The solution consists in changing the welcome tab to navigate to the NTP inside itself (avoid navigating to the NTP on the current tab).

Here are the videos with this change in https://chromium-review.googlesource.com/618868: https://drive.google.com/corp/drive/u/1/folders/0Bw1MJ8m7U5kbR3R4ZVpRNGRrNzg

Comment 13 by ew...@chromium.org, Aug 17 2017

Summary: Managing sync settings for managed account after signin doesn't open settings page (was: Opting to managing Chrome Sync settings during new-profile sign-in flow does not show settings, nor enable Sync)
Chatted with Mihai offline.

- Don't need to merge this to 61, since it only affects users that sign in with a managed account in an existing profile and hit the button to create a new profile
- Shouldn't be opening the welcome page in the newly created profile anyways (Mihai will look into that as a follow-up)
Project Member

Comment 14 by bugdroid1@chromium.org, Aug 17 2017

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

commit a23a3780851d942b72b679165d9545230260b167
Author: Mihai Sardarescu <msarda@chromium.org>
Date: Thu Aug 17 17:59:45 2017

On sign-in, welcome page should open the NTP in the same tab.

This CL fixes the following race condition that happen on a successful sign-in
when the chrome://welcome page is displayed:
1. The sign-in code opens sync settings by navigating to chrome://settings/syncSetup
2. The welcome tab, navigates to NTP as sign-in is successful.

This CL changes the welcome tab to navigate to the NTP in the same tab
(avoids navigating to the NTP on the current active tab).

Here are the videos with this change:
https://drive.google.com/corp/drive/u/1/folders/0Bw1MJ8m7U5kbR3R4ZVpRNGRrNzg

Bug:  747575 
Change-Id: I9eef3e514b63179804b7352187c3b7633acefb68
Reviewed-on: https://chromium-review.googlesource.com/618868
Reviewed-by: Bernhard Bauer <bauerb@chromium.org>
Commit-Queue: Mihai Sardarescu <msarda@chromium.org>
Cr-Commit-Position: refs/heads/master@{#495217}
[modify] https://crrev.com/a23a3780851d942b72b679165d9545230260b167/chrome/browser/ui/webui/welcome_handler.cc

Labels: TE-Verified-M62 TE-Verified-62.0.3192.0
Tested the issue using #62.0.3192.0 on Win 10 and the fix is working as expected. Observed, able to navigate to settings page and on clicking Okay got it, welcome tab is navigating to NTP.

Please find the screen cast for the same. Hence adding verified labels.

Thanks!!
Aug 21 2017 2_10 PM.webm
5.8 MB View Download

Comment 16 by ew...@chromium.org, Aug 21 2017

Labels: -Needs-Feedback -TE-Verified-M62 -TE-Verified-62.0.3192.0
Status: Fixed (was: Started)
The repro steps shown in the test video aren't quite correct. Here are the repro steps you should be using:

- Completely fresh Chrome install (remove user data dir)
- Launch Chrome, do a few navigations
- Tap on the user menu, tap on "Sign in to Chrome"
- Sign in to Chrome with a *managed* account (e.g. @google.com)
- In the "enterprise confirmation dialogue" that appears, click "Create new profile"
- In the new profile that gets created, tap on the "Settings" link in the confirmation dialogue that appears
- Confirm that sync settings opens in a new tab, and that the first tab (with chrome://welcome) navigates to the NTP
Project Member

Comment 17 by bugdroid1@chromium.org, Aug 24 2017

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

commit 149dd272ba1a3beb0b631e87eb74422a97ca40cb
Author: Mihai Sardarescu <msarda@chromium.org>
Date: Thu Aug 24 13:42:23 2017

Do not show welcome page when sign-in is in progress.

This CL avoids displaying the chrome://welcome page when a sign-in is
in progress. This may happen when the user choosed to use a new profile
when going throught the Chrome sign-in flow.

Bug:  747575 
Change-Id: I576ef6189c0d054ef3c9aa16286b96744ae8c534
Reviewed-on: https://chromium-review.googlesource.com/620752
Commit-Queue: Mihai Sardarescu <msarda@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#497027}
[modify] https://crrev.com/149dd272ba1a3beb0b631e87eb74422a97ca40cb/chrome/browser/ui/startup/startup_tab_provider.cc
[modify] https://crrev.com/149dd272ba1a3beb0b631e87eb74422a97ca40cb/chrome/browser/ui/startup/startup_tab_provider.h
[modify] https://crrev.com/149dd272ba1a3beb0b631e87eb74422a97ca40cb/chrome/browser/ui/startup/startup_tab_provider_unittest.cc

Sign in to add a comment