How to set window.alwaysOnTop to true?

161 views
Skip to first unread message

Albert Edwillian Pratomo

unread,
Aug 21, 2023, 4:48:52 PM8/21/23
to Chromium Extensions
Hi,

I'm building a Chrome extension for pomodoro timer. I'd like to make the timer always on top.

How can we set the window.alwaysOnTop to true?

I read in this thread, that this is "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."

However, with the new Document Picture-in-Picture API, a window would be able to stay on top. So why not also allow this when doing chrome.windows.create?

Many thanks before 🙏

Jackie Han

unread,
Aug 22, 2023, 12:29:48 AM8/22/23
to Albert Edwillian Pratomo, Chromium Extensions
So why not also allow this when doing chrome.windows.create?
 
It is often difficult to explain 'why not', especially for features that are possible but not yet supported, which is usually a feature request.
I searched a bit, and found there are already feature requests you asked: https://crbug.com/933215 and https://crbug.com/822425


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/e6025697-20f1-4bdb-a97e-adb9740fb96en%40chromium.org.

Jackie Han

unread,
Aug 31, 2023, 1:57:37 PM8/31/23
to Albert Edwillian Pratomo, Chromium Extensions
FYI: I opened a discussion about support for always-on-top window in browser extensions at WECG.
Reply all
Reply to author
Forward
0 new messages