Opera is wrongly opening pages in new tab with mobile user agent
-
leocg Moderator Volunteer last edited by
@Barkuti You said before that Opera seems to be sending the correct user agent, so there is nothing wrong with Opera itself.
The user agent is just one of the many ways of a site to check if you are on a phone or on a desktop, so the sites may uisng a different one.What happens when you type the address directly? Do the sites load in the correct mode?
-
Barkuti last edited by
@leocg said in Opera is wrongly opening pages in new tab with mobile user agent:
@Barkuti You said before that Opera seems to be sending the correct user agent, so there is nothing wrong with Opera itself.
NO!!!
I just tapped on one of the above links, and the reported user agent in the new tab was mobile - Mozilla/5.0 (Linux; Android whateverversion; whateverdevice) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Mobile Safari/537.36 OPR/57.1.2830.52480 -.
0K. It reported mobile because this window is a spawn from the link in my email, and so the user agent mistake already happened there (inherited).
I told you this already. When Opera spawns a new tab from a clickable/tappable link, something wrong can happen.
Are you actually trying my above links by yourselves in Android Opera with default desktop user agent, or are you here just trying to piss me off?The user agent is just one of the many ways of a site to check if you are on a phone or on a desktop, so the sites may uisng a different one.
I know. I have my screen pixel density nicely reduced for sites to โthinkโ its size is quite a bit bigger.
What happens when you type the address directly? Do the sites load in the correct mode?
When I type the address directly? Are you joking with me? Of course it opens whatever page version depending on the selected user agent in the switch. Since I use desktop as default, if I open a new tab by myself the user agent is set as desktop in it. Do I still need to tell you what version it loads?
-
Barkuti last edited by Barkuti
Another thing I have to say, is that I just noticed the user agent was incorrectly set as mobile in the tab I use to check my Gmail email (https://mail.google.com/?ui=html).
I just took my time to re-check the user agent in all my tabs, I always use many at once. However, can you tell me how this can happen if I set my default user agent as desktop the very first time I ran this browser?
Now that I'm here let me also say I hope you avoid enforcing auto-updates, at all costs. I @#$% applications which self-update by themselves.
After the user agent was set as desktop in my Gmail tab, I tapped over the last answer notification from @sgunhouse to this thread, and I can see the tab spawned with desktop user agent. So that is right, and I can see the Desktop site switch enabled right now.
However, the AliExpress links fail. Can you hear me? Fail.
Their tabs spawn with an incorrectly set mobile user agent, from a correctly set desktop user agent tab. Examples โyouโ can try:
https://www.aliexpress.com/item/-/4000214865872.html
https://www.aliexpress.com/item/-/33024389843.html
Important: if I open these links with a long tap and then selecting โopen in new tabโ in the contextual menu, the new tab correctly spawns with inherited desktop user agent. If I just tap over them, the new tab opens with mobile user agent and loads mobile @#$%. -
Barkuti last edited by
@#$% it. The AliExpress links work โrightโ from here, but not quite exactly. Once I tap over them, the tab spawns trying to load desktop, then I can see the address in the bar changes to mobile and loads mobile, and after a flash it goes back to desktop link and loads the desktop page.
However, from within AliExpress the links fail every time. When I tap over them the spawning tab tries desktop, then changes to mobile but doesn't goes back to desktop, I need to go to the menu and turn on the Desktop site switch to fix it.
Hope this is of help.
The emoji insert tool here sucks big time, by the way. -
Barkuti last edited by
I uploaded a self-explanatory small video to Youtube. Sorry if it is in portrait, video capture in landscape doesn't works right in my device.
In it I show you the desktop user agent in my Gmail tab, and then proceed to tap over the YouTube link near the upper left corner. The tab which spawns incorrectly goes to YouTube mobile, where I further use the What's my User Agent site and open the three dots menu to prove the thing in case it wasn't CLEAR enough.
Video link: https://youtu.be/gL5clE2-REI -
Barkuti last edited by leocg
Hello? Is anyone home?
Reporting for Opera 57.2.2830.52651. Now there is now @#$%ing way for YouTube to be open in desktop mode AT ALL. Are you hearing?
Not only this, if I try to play a video from youtube mobile it opens the video using an external video player in my device (WTF?).
Fix it instead of adding features, please. -
A Former User last edited by
@Barkuti We are working on it and hopefully you will get it in our upcoming beta release.
-
Barkuti last edited by
Reporting for Opera beta 59.0.2904.53502. The problem is not yet fully fixed:
https://www.youtube.com/watch?v=OxqteQnh--c
The YouTube thing was fixed, this is 0K. In AliExpress it also works right or so it seems. The only quirk I noticed is the user agent switch in the three dots menu can be a little bit late to update.
But as you can see in the video, Opera is still incorrectly defaulting to mobile user agent or failing to inherit the user agent of the calling on window.
You may already know (or not), but let me say Chrome reads and uses the user agent which finds in the /data/local/chrome-command-line file (permissions: rw- r-- r--). I am only saying this because you (Opera developers) seem to be having difficulties with something which should be as easy as eating ice cream, which at least tells me the underlying engine was never designed (?) to use multiple user agents.Cheers for now!
-
ddot last edited by
So it's been 6 months since opera answered this issue, now I have the same problem and can't find a solution anywhere. For me it only happens on "op.gg", it happened before like for Barkuti when clicking on email links but i didn't give much attention since it stopped by itself. But for this specific website the problem kepps happening. Like srsly it seems to be a very very old problem this browser has, it's a real shame that you haven't fixed that yet.
-
-
-
-
-
-