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

Issue 608840 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocked on:
issue 690160



Sign in to add a comment

Windows opened by a profile from another profile's desktop don't open on the active desktop

Project Member Reported by gab@chromium.org, May 3 2016

Issue description

Version: 49.0.2623.111 (Official Build) (64-bit)
OS: Chrome

What steps will reproduce the problem?
(1) Have 2 profiles on Chrome OS
(2) Login to profile #1
(3) Login to second profile #2 (i.e. CrOS multi-profile)
(4) Move a window from profile #2 to #1's desktop (right-click window + "Move Window to Profile #1")
(5) Focus profile #2's window and hit ctrl-N

What is the expected output?
New window for profile #2 pops on desktop #1.

What do you see instead?
New window for profile #1 pops on desktop #1.

(issue extracted from  issue 608712 )
 
Project Member

Comment 2 by bugdroid1@chromium.org, May 9 2016

Comment 3 by x...@chromium.org, May 9 2016

Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)
Verified on ChromeOS 8481.0.0, 53.0.2773.0

Comment 5 by warx@chromium.org, Dec 28 2016

xdai@, now the behavior is "New window for profile #2 pops on desktop #2" after following the repro steps, is the behavior now consistent with your expectation?

Comment 6 by x...@chromium.org, Dec 28 2016

warx@, no, I don't think it's the correct behavior. With your CL https://codereview.chromium.org/2599833003/ in place, does it fix this issue?

Comment 7 by x...@chromium.org, Dec 28 2016

Cc: warx@chromium.org
Labels: -M-51 M-57
Owner: warx@chromium.org
Status: Assigned (was: Verified)
It's broken again. Reopen it and assign to warx@ since he is working on another related issue: Issue 675265

Comment 8 by warx@chromium.org, Dec 29 2016

Status: Started (was: Assigned)
The reporter's bug now becomes:

What steps will reproduce the problem?
(1) Have 2 profiles on Chrome OS
(2) Login to profile #1
(3) Login to second profile #2 (i.e. CrOS multi-profile)
(4) Move a window from profile #2 to #1's desktop (right-click window + "Move Window to Profile #1")
(5) Focus profile #2's window and hit ctrl-N

What is the expected output?
New window for profile #2 pops on desktop #1.

What do you see instead?
New window for profile #2 pops on desktop #2.

Comment 9 by warx@chromium.org, Jan 23 2017

Cc: sky@chromium.org e...@chromium.org
Labels: -M-57 M-56 has-Bisect
Bisect shows the broken CL is https://codereview.chromium.org/2434463004/

For issue 675265, the regression is brought by removing chrome::FindBrowserWithWindow(ash::wm::GetActiveWindow()), instead using BrowserList::GetInstance()->GetLastActive(). That is not right, ash::wm::GetActiveWindow is to get active window on primary root window. BrowserList::GetInstance()->GetLastActive() does not guarantee for this.

For comment 8 regression, I still don't know why it regresses, which doesn't lead to the right fix now. +erg@, any idea for ChromeNewWindowClient on chromeos-multi-user use case?

The current cl is in https://codereview.chromium.org/2644733004/, still in progress.

Comment 10 by e...@chromium.org, Jan 23 2017

Cc: jamescook@chromium.org msw@chromium.org
No, but I can infodump on what I was doing in that patch. We're currently trying to split ash out of the chrome process; code in //c/b/ui/ash/ shouldn't have new dependencies on //ash outside of //ash/public, and we're trying to drive the current ones to zero so we can make //ash/ a separate binary.

Along these lines, if chrome::FindBrowserWithWindow(ash::wm::GetActiveWindow()) isn't equivalent to BrowserList::GetInstance()->GetLastActive(), then there needs to be something that is without reaching into ash:: directly, only communicating over a mojo channel.
ash::wm::GetActiveWindow() is simply using AtivationClient. You should be able to get the active aura window from there.

Comment 12 by warx@chromium.org, Feb 8 2017

Blockedon: 690160

Comment 13 by warx@chromium.org, Feb 23 2017

Status: Fixed (was: Started)
It is fixed in  issue 690160 .
Status: Verified (was: Fixed)
9532.0.0, 60.0.3092.0

Sign in to add a comment