Extension popup window issue after updating to 5.0
-
I'm using this extension: https://chrome.google.com/webstore/detail/checker-plus-for-google-c/hkhggnncdpfibdhinjiegagmopldibha. It opens a popup window using this API: https://developer.chrome.com/docs/extensions/reference/windows/#method-create (with
type=popup
). After updating to 5.0.2497.24 on Linux Mint I have the following issue: Vivaldi doesn't treat a window opened by the extension as "popup" anymore. This brings two issues:- I can't use custom styling for this kind of window, as they have no
popup
CSS class anymore (as it was on version 4). I was using custom CSS to hide the address bar, the bookmarks bar, etc. Now, the only difference between a popup window and the main browser window I see is thenormal
/maximized
class. - The links from this popup window are now opened in the same window and not in the main browser window, as it was before.
I suppose the popup window API behavior was changed/broken on version 5.
- I can't use custom styling for this kind of window, as they have no
-
@romeronex Usual way to report bugs:
Please- read Help us to reproduce the issue carefully
- discuss in forum if issue is a bug
- report bug to Vivaldi tracker.
-
@doctorg so, let's discuss if it is a bug
-
Alright, I've created a bug report: VB-85124.
-
Same... Extension issue. Suddenly, I can't open some windows pop-up whilst it always worked before...
Thanks for adding this as a bug... (Works fine with chrome).. -
@romeronex Bug is Confirmed.
-
Unfortunately, the bug is still not fixed
-
@RomeroNex Work is in progress for such bugs with chrome extensions – no timeline.
-
@DoctorG said in Extension popup window issue after updating to 5.0:
@RomeroNex Work is in progress for such bugs with chrome extensions – no timeline.
The problem is this is not an extension issue. This is a BC made in some of the Vivaldi versions (probably in 5.0.2497.24) for popup windows. In my understanding, this may affect not only extensions but any web applications that open popup windows programmatically.
Personally, I can live with no ability to customize the look of popup windows (this brings some issues with the content scrolling, but it's a minor thing). But the biggest problem for me is that links get opened in the same popup window (so it's not a "modal" window anymore). This is a really inconvenient and annoying thing. And it's definitely the Vivaldi issue that could be solved quickly (at least faster than 7+ months). This is disappointing.
-
@RomeroNex I know there are issues with connection from Vivaldi → internal chrome extension api.
I can not help with more.
-
Any update on this ?
-
@SrujanGurram No progress, i try to ping a dev, but do not expect a quick answer.
-
I also have problem with extension popup. Not exactly like the one described here but might be related. And maybe my input will be helpful here. I even signed up to write this
Anyway, I started to write an extension some time ago (probably Vivaldi 4.x time), but didn't have time or will to finish it so it mostly consists of popup page defined in
manifest.json
asaction.default_popup
which has only link to extension options page. Clicking this link should open options page and close the popup (code-wise it's done this waychrome.runtime.openOptionsPage(() => window.close());
), but currently it closes whole Vivaldi window instead of only popup and I am sure it worked as it should in some earlier Vivaldi version (probably 4.x I mentioned above, years earlier anyway).I tried some workarounds like
document.defaultView.close()
,window.frames.close()
and they worked properly closing the popup sometimes, but sometimes they closed whole application window. The workaround have to be possible because extension uBlock Origin also has such popup which, when clicked on button, successfully closes only its popup but it does it in some weird way:window.open('', '_self').close();
(probably it does something else also because this code didn't work for me either but it does work in case of uBlock).I checked that popup on two other Chrome-like browsers: Chromium and Google Chrome and it worked ok in both cases with use of simple
window.close()
which seems to be the way it should be done (but I am not an chrome extension expert, so I am not sure if this should close only popup or the whole window).