Opening new minimized window in MacOS on full-screen mode causes the minimized window to be opened in the foreground and stealing the focus.
Demo
full-screen-bug.mov
- Install current extension into the Chrome browser on MacOS.
- Open window with running extension in full screen mode(Command + Control + F).
- Click on the extension icon.
- Observe.
The minimized window is opened in the foreground, stealing the focus and makes the UI unusable(as there is no exit full-screen button anymore).
The minimized window should be opened in the background and not steal the focus.
- Chrome version: 113.0.5672.92 (Official Build) (x86_64)
- MacOS version: Ventura 13.3.1
// background.js
chrome.action.onClicked.addListener(() => {
chrome.windows.create(
{
url: "https://www.google.com/",
focused: false,
state: "minimized"
}
)
});