chrome.windows.update doesn't focus other windows.
Reported by
holmb...@gmail.com,
Jan 12
|
||
Issue description
Chrome Version : 71.0.3578.98
OS Version: Ubuntu 18.10
What steps will reproduce the problem?
1. Open two Chrome windows
2. Inspect an extensions background page to enter console.
3. From the console tab call `chrome.windows.update(winId, {focused: true})`
What is the expected result?
Should be able to switch focus to any active/open window.
What happens instead of that?
Can only set focus to the window that was first opened and not to any other window. No error is thrown.
Please provide any additional information below. Attach a screenshot if
possible.
UserAgentString: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
,
Jan 12
Could be caused by your desktop manager as it works for me in Linux/Ubuntu with vanilla LXDE. Can you share the extension? Preferably a simplified one that demonstrates the problem.
,
Jan 12
Sorry I noticed that this only affects windows that are in state "minimized", and not the first window opened as I thought was the case earlier.
I'm thinking updating the window state of a minimized window should work, used to work?... But updating the state of a window that is currently in state "minimized" doesn't seem to work for extensions.
{
id: 999
state: "minimized"
type: "normal"
}
chrome.windows.update(999, {state: "maximized"})
chrome.windows.update(999, {state: "maximized", focused: true})
Though updating the state of a "maximized" window to state "minimized" works just fine.
I'm testing this on Ubuntu 14.04 and 18.10 both with GNOME.
,
Jan 13
Still works for me, but maybe TE@ will be able to repro. They'll need a sample extension though.
,
Jan 14
Thanks for filing the issue! @Reporter: Could you please provide sample Extension file/URL that reproduces the issue which help in further triaging the issue in better way. Thanks! |
||
►
Sign in to add a comment |
||
Comment 1 by phanindra.mandapaka@chromium.org
, Jan 12