Vivaldi extension - browser detect ?
-
With the recent change to version 2.10 there's no longer a way to tell Chrome and Vivaldi apart as the User Agent is now the same.
What is the proper way now for extension developers to detect that they are running on Vivaldi in order to fix issues ?For example, an extension from the Chrome store might override the new tab page, but since Chrome uses "chrome_url_overrides" it will use that, however Vivaldi doesn't support that so it needs to revert back to "chrome.tabs.onCreated" but in order to do that we need to know we're running on the Vivaldi browser ...
What is the correct procedure to detect the browser ?
Websites no,... but Developers should have a way of detecting the browser ...
Thanks!
-
As an extension developer, being able to figure out if the extension is vivaldi or not would be very useful as well. My use case is the lack of proper chrome.webrequest support so I have to make fallbacks for that on Vivaldi. As there is no way to figure out if the webrequest failed.
-
@bhttbogal4r41zv5lj said in Vivaldi extension - browser detect ?:
lack of proper chrome.webrequest support
Please read Help us to reproduce the issue carefully and then report bug to Vivaldi tracker.
Without bug reports no fixes.If you think a feature is useful, please read Request New Feature, open forum Feature Requests and post request.
-
Submitted it as an issue at least a year ago. But did again just now. bug report id is:
VAB-4564 -
@bhttbogal4r41zv5lj I hope you send them a small test case for a fast and easy check.
-
@doctorg I did in the past. Right now I can't provide any additional information as the bug report isn't public.
-
@bhttbogal4r41zv5lj said in Vivaldi extension - browser detect ?:
@doctorg Right now I can't provide any additional information as the bug report isn't public.
You can update/add information if you reply by mail to the report mail you got for your bug report.
-
@bhttbogal4r41zv5lj Why is this filed as Android bug? There are no extensions on Android.
-
A minimum demo is available here:
https://static.jeurissen.co/vivaldi-webrequest-demo-v2.zip@luetage It wasn't my intention to report as an android issue.
-
@bhttbogal4r41zv5lj said in Vivaldi extension - browser detect ?:
It wasn't my intention to report as an android issue.
I closed the wrong bug report now.
Please report it again, correctly for Vivaldi Desktop.
-
Reported again. This time as desktop issue. Including the link to the demo.
Bug report id: VB-82634 -
@bhttbogal4r41zv5lj Thanks a lot.
-
@DoctorG Thank you! Let me know if I can provide any more useful information. This bug is basically breaking most functionality of Black Menu for Google in Vivaldi. An extension with over half a million of users.
-
@bhttbogal4r41zv5lj I can not reproduce the issue with the extension with Vivaldi 4.1 Stable, 4.2 Snapshot and 4.2 Nightly (Win 10 21H2).
For me the popup shows this (same as on Chromium 93):
-
@bhttbogal4r41zv5lj said in Vivaldi extension - browser detect ?:
Seems example.com now also handles example.com/wiejfaoiwejfow.
I've updated the demo to v3, found here:
https://static.jeurissen.co/vivaldi-webrequest-demo-v2.zipAs you can see, in chrome it goes to example.com. While in Vivaldi it stays on error.com.
let me know if I can provide you with anything else!
-
@bhttbogal4r41zv5lj said in Vivaldi extension - browser detect ?:
I've updated the demo to v3, found here:
https://static.jeurissen.co/vivaldi-webrequest-demo-v2.zipI gonna check this now.
-
@doctorg said in Vivaldi extension - browser detect ?:
Should be version 3 like this:
https://static.jeurissen.co/vivaldi-webrequest-demo-v3.zip -
@bhttbogal4r41zv5lj
I try.
Thanks for the test case!I confirm the issue in bug tracker and added the correct extension test case.
The webrequest fails for Vivaldi 4.1 Stable, 4.2 Snapshot and 4.2.2408.* Nightly.
Works in Chromium 92 and 95 Dev. -
@DoctorG Thanks for confirming. Let me know if I can be of any assistance going from here!
-
@bhttbogal4r41zv5lj said in Vivaldi extension - browser detect ?:
@DoctorG Thanks for confirming. Let me know if I can be of any assistance going from here!
You will get a reply by mail if there are more questions from devs.
I hope they will fix it.Broken Extensions API in Vivaldi is not nice.