Skip to content

Commit

Permalink
Upgrade Gecko version in the user agent for desktop mode
Browse files Browse the repository at this point in the history
We were using Gecko 105 which is super old now. Some sites were even
complaining about using a too old version of the browser.
  • Loading branch information
svillar committed Feb 12, 2025
1 parent 8a40a50 commit 7716135
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class SessionImpl implements WSession {
// The difference between "Mobile" and "VR" matches GeckoViewSettings.jsm
private static final String WOLVIC_USER_AGENT_MOBILE = GeckoSession.getDefaultUserAgent() + " Wolvic/" + BuildConfig.VERSION_NAME;
private static final String WOLVIC_USER_AGENT_VR = WOLVIC_USER_AGENT_MOBILE.replace("Mobile", "Mobile VR");
private static final String WOLVIC_USER_AGENT_DESKTOP = "Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0";
private static final String WOLVIC_USER_AGENT_DESKTOP = "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0";

public SessionImpl(@Nullable WSessionSettings settings) {
if (settings == null) {
Expand Down

0 comments on commit 7716135

Please sign in to comment.