Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lemmy almost completely broken on iOS and MacOS devices #730

Closed
victorrest opened this issue Jul 29, 2022 · 14 comments
Closed

Lemmy almost completely broken on iOS and MacOS devices #730

victorrest opened this issue Jul 29, 2022 · 14 comments
Labels
bug Something isn't working

Comments

@victorrest
Copy link

victorrest commented Jul 29, 2022

Lemmy on iOS and MacOS devices is broken a lot of way. I think it's couse some JS error, but I'am not a developer.
E.g.:

  • Only could open a post after you click two times (!) on the link.
  • Login is not work.
  • Registration not work.
  • Up/downvote not work.
  • Top menu is not work.
  • Logo/website name is unclickable, so you can't go back to the frontpage
  • etc.

I think nothing work on iOS and MacOS what is javascript-like on the website.

I checked from Safari browser and it show the follow errors:

  • TypeError: undefined is not an object (evaulating 'this.ws.send') // error location is /static/js/client.js file.
  • TypeError: null is non an object (evaulating '.$Li') // error location is /static/js/client.js file too.

However, this error is not affected every Lemmy site: so as I seen e.g. Lemmy.ml and Feddit.de is work fine on Apple devices, but mander.xyz, beehaw.org, lemmy.rollenspiel.monster, etc. is no.

I install Lemmy to my VPS too with Docker, and I have this JS problem on Apple devices too. Have you any idea what's the problem or how can I solve it. What couse is Lemmy.ml works fine while some others is no? Thanks for your help, I really like Lemmy and would like to solve this problem on my VPS too.

P.s.: I read in other github issue is somebody in Dev is not have Apple devices, in this cause I recommend this website: https://live.browserstack.com/dashboard
At here after a fast and free registration you can check any website from any devices, Apple devices too. I checked this problem from here too, I do not have MacOS too.

I made some screenshots from the error, maybe help:

@victorrest victorrest added the bug Something isn't working label Jul 29, 2022
@dessalines
Copy link
Member

These problems were fixed in the 0.16.6 release, make sure the server admins upgrade to that version of lemmy.

@victorrest
Copy link
Author

victorrest commented Jul 29, 2022

Thanks for your fast reply. I will upgrade my Lemmy and try it. (I install 0.16.4 to my vps) But as I seen, e.g. https://mander.xyz/ and https://lemmy.eus/ is run the 0.16.6 version, and these sites still crash iOS and MacOS too.

@dessalines
Copy link
Member

Hrm... I can't see why some instances would block iOS javascript but others wouldn't if using the same code. Only thing I can think of is that the broken ones are using custom nginx's.

@victorrest
Copy link
Author

Hmm, maybe. I will reinstall my VPS in the days, and install Lemmy new version with Docker from zero. After that I will feedback with the result.

@Nutomic
Copy link
Member

Nutomic commented Jul 29, 2022

Can you reproduce the problem on lemmy.ml?

@victorrest
Copy link
Author

No, Lemmy.ml works fine on iOS and every MacOS version what I tested.

@Nutomic
Copy link
Member

Nutomic commented Jul 29, 2022

Then it sounds like a problem with the particular instances you mentioned. Contact the admins and ask them to fix it.

@GitOffMyBack
Copy link

GitOffMyBack commented Jul 29, 2022

Then it sounds like a problem with the particular instances you mentioned. Contact the admins and ask them to fix it.

I've upgraded to 0.16.6 and I'm getting an "Unknown" error when attempting to log in on my iPhone using Firefox.

EDIT: However, I am able to log in on my iPhone using Safari.

@dessalines
Copy link
Member

dessalines commented Aug 2, 2022

I'm almost at the point where we should remove the CSP headers. They cause so many problems on iOS devices. Each time we tweak them, a different device / browser is affected.

@Nutomic
Copy link
Member

Nutomic commented Aug 3, 2022

I disagree about removing CSP, because it can mitigate many security problems. The problem seems to be only with websocket, so it should be enough to change to connect-src *.

That said, our CSP is not really useful because it allows inline javascript, which we should really get rid of.

@dessalines
Copy link
Member

@victorrest We've deployed a test fix, could you see if the problem happens here? https://voyager.lemmy.ml/post/160

@sam365724
Copy link
Contributor

@dessalines Is this fix in 0.16.6? I'm having problems with ios safari + chrome on ipad.

@dessalines
Copy link
Member

@sam365724 I don't have an ios device so I can't test. https://lemmy.ml is running 0.16.6, could you test there?

@sam365724
Copy link
Contributor

Sure, https://lemmy.ml/ works fine on Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants