Sidepanel in pop up windows

143 views
Skip to first unread message

Ayoub El

unread,
Nov 14, 2023, 11:26:05 AM11/14/23
to Chromium Extensions
Hi there,

While using the extensions sidepanel api, I noticed that in pop up windows the sidepanel is not displayed, I'm unable to find any way to make it work in these windows.

Any ideas? There is no mention in the docs regarding what the expected behavior is?

Oliver Dunk

unread,
Nov 14, 2023, 11:30:35 AM11/14/23
to Ayoub El, Chromium Extensions
Hi Ayoub,

This isn't something I've specifically looked at, but I think it makes sense that it doesn't work. The other Chrome sidebar features aren't available there either.

Do you have a use case for this? If so, you could definitely file a feature request at https://crbug.com/.
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


--
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/7a939785-7534-433e-86e6-4426d6f09ae7n%40chromium.org.

Ayoub El

unread,
Nov 14, 2023, 11:40:15 AM11/14/23
to Chromium Extensions, Oliver Dunk, Chromium Extensions
I think it makes a lot of sense to allow it in pop up windows.
The entire goal of the sidepanel is to allow using extensions side by side to whatever active tab the user is on.
Some websites open some of their pages in new windows, while specifying different options in the `windowFeatures` property of `window.open`, without specifying `popup=true`
The issue is that specifying any features in the windowFeatures parameter, also has the effect of requesting a popup which impacts the extensions the user gets access to on that page if they rely on the sidepanel.

wOxxOm

unread,
Nov 14, 2023, 5:04:07 PM11/14/23
to Chromium Extensions, Ayoub El, Oliver Dunk, Chromium Extensions
Popup windows are intended to be small and simple, which is why the side bar is not displayed, which I guess was the reason and I agree with this vision as it matches the way I've been using the standalone popups in extensions like Violentmonkey.

Ayoub El

unread,
Nov 14, 2023, 6:01:26 PM11/14/23
to Chromium Extensions, wOxxOm, Oliver Dunk, Chromium Extensions
@wOxxOm I think there is a misunderstanding here, I'm not referring the extension popup triggered when clicking on the extension icon similar to what you use for Violentmonkey.

What I'm referring to is browser popup windows: 
https://developer.mozilla.org/en-US/docs/Web/API/Window/open#windowfeatures
From the link: `If this feature is enabled, it requests that a minimal popup window be used. The UI features included in the popup window will be automatically decided by the browser, generally including an address bar only.`

wOxxOm

unread,
Nov 14, 2023, 6:35:27 PM11/14/23
to Chromium Extensions, Ayoub El, wOxxOm, Oliver Dunk, Chromium Extensions
No, I didn't mean the action popup. I even used the word "standalone". As for Violentmonkey, it's just as a relatively popular example extension that makes use of such simple popups for its editor.
Reply all
Reply to author
Forward
0 new messages