ubports / morph-browser

Moved to https://gitlab.com/ubports/core/morph-browser
https://gitlab.com/ubports/core/morph-browser
GNU General Public License v3.0
45 stars 35 forks source link

Some websites are not displayed. #137

Closed Daniel20000522 closed 5 years ago

Daniel20000522 commented 5 years ago

Device: Nexus 5/hammerhead Channel: RC Build: 2018-W01 (2019-W01)

Steps to reproduce:

balcy commented 5 years ago

hmm this one is interesting... The first url does work on my phone (also RC channel)

the second one seems to result in a circular / infinite redirect:

   https://m.olx.pl/      (start URL)
-> https://www.olx.pl/    (redirection)
-> https://www.olx.pl/i2/ (redirection)
-> https://m.olx.pl/      (redirection)
-> ...

in the end there is the error net::ERR_TOO_MANY_REDIRECTS

the question is, why this redirection occurs for morph, it might have to do something with the user agent. (not sure though) It happens for me for both standard and desktop mode for morph. In an oxide based browser the problem does not occur. (tested with Jade Diamond)

Note: that no error page, but rather the page in the screenshot is displayed, should be fixed with the merge of "xenial_-_loadfailed". Then you will see a "Network Error" page instead.

Daniel20000522 commented 5 years ago

I do not know if it will help, but in the Github application after clicking the link, 2 pages load normally. So the problem is probably in Morph-Browser

mihaelmilea commented 5 years ago

olx.ro does the same for me - it doesn't work and displays the same blank page as above - but I made a webapp for olx.ro and that works!

balcy commented 5 years ago

ok interesting, do you know which user agent is set for the webapp ? Can you send the webapp or the contents of its desktop file ?

mihaelmilea commented 5 years ago

Sorry for the late reply. I don't remember setting up a user agent. I was surprized it just worked. Bellow is the desltop file:

[Desktop Entry] Name=OLX Comment=Webapp for olx.ro Type=Application Icon=/opt/click.ubuntu.com/.click/users/phablet/olx.mihael/olx.png Exec=aa-exec-click -p olx.mihael_olx_0.1 -- webapp-container --webappUrlPatterns=https?://olx.ro/* http://olx.ro Terminal=false X-Ubuntu-Touch=true X-Ubuntu-Splash-Color=#000000 Path=/opt/click.ubuntu.com/.click/users/phablet/olx.mihael X-Ubuntu-Old-Icon=olx.png X-Ubuntu-Application-ID=olx.mihael_olx_0.1 X-Ubuntu-UAL-Source-Desktop=/opt/click.ubuntu.com/.click/users/phablet/olx.mihael/olx.desktop

frankthegerman commented 5 years ago

I'm not sure whether this is going to help anyone but i am having the same problem on OPO. Nothing besides startpage is showing...

Daniel20000522 commented 5 years ago

The problem in version 0.24+ubports+0~20190504104252 seems to be solved. I'm closing the problem.

mihaelmilea commented 5 years ago

The olx.ro still doesn't work: ERR_TOO_MANY_REDIRECTS

Daniel20000522 commented 5 years ago

Have you updated the browser to the latest version? Enter in the terminal: apt list morph-browser

mihaelmilea commented 5 years ago

morph-browser/xenial 0.24+ubports+0~20190107202312.40~1.gbp402a5b armhf

Daniel20000522 commented 5 years ago

Enter in terminal: sudo apt update && sudo apt list --upgradable && sudo apt upgrade morph-browser -y

mihaelmilea commented 5 years ago

I did the upgrade but still doesn't load olx.ro

UniversalSuperBox commented 5 years ago

@Daniel20000522, updates to Ubuntu Touch, including morph-browser, are delivered in the system image. Please don't recommend people run apt commands as this can desync an image with the software it is supposed to have on it. Rather, people can go to "Update settings" and change their release channel to go forward or backward in releases.

TOO_MANY_REDIRECTS is caused by a website trying to send you to too many different places before actually loading a page. This may be aggravated by our user agent, but it is an error on the website's part. Sometimes it can be solved by clearing your browser cache, but I went to the website after doing so and still got the error. Please contact the website's owner to let them know you're having trouble, you might be able to get them to fix the bug.

mihaelmilea commented 5 years ago

@UniversalSuperBox Thank you for your input! I appreciate all the work you guys are doing and, on top of that, you take your time to answer to people - this is all very, very kind and professional! Thanks again!