Strategy for bringing window to front/focused without using focused: true

93 views
Skip to first unread message

Nathan Pierce

unread,
Oct 9, 2022, 8:59:45 AM10/9/22
to Chromium Extensions
Is there a way to bring a window to top/focus without sending a chrome.windows.update focused: true? I'm trying to ensure that two windows side by side always come to the top when one or the other is focused, but my current solution is to focus both, which causes command + ` (key shortcut on mac to perform last focused window switching) between windows to break.

I was thinking about using alwaysOnTop, but it doesn't look like it's available in chrome.windows.update. Does anyone have any recommendations for how to achieve this?

wOxxOm

unread,
Oct 9, 2022, 10:23:10 AM10/9/22
to Chromium Extensions, nors...@gmail.com
Not available intentionally to prevent phishing attacks where a non-focused window is showing a legit site with a login form while the actually focused window is stealing the keystrokes underneath.
Reply all
Reply to author
Forward
0 new messages