fork-maintainers / iceraven-browser

Iceraven Browser
4.78k stars 222 forks source link

text boxes broken (reddit for example) #789

Open nirurin opened 4 months ago

nirurin commented 4 months ago

I type a sentence on a reddit comment and it's fine. I often want to format it by hitting enter a couple of times to break up a wall of text though.

Hitting enter works, but then when I start typing the new sentence and maybe tap to edit a word, all the return breaks in the entire comment seem to vanish and it all ends up back in one line.

This is doubly bad if I have quoted someone, as all the line breaks in the quote also vanish and end up in one long line with my comment.

On this github text box I notice its not doing this. However pressing and holding text in there doesn't select the word, it only let's me "select all". It should be letting me highlight individual words and have the selection-bars.

I tested both these things in base firefox android app and they work as expected, so it seems the code in iceraven was changed for some reason?

Edit: Additional weird details. When you press enter the cursor goes to a new line for a moment, but then pops back to the previous line busy itself. When it does this, a single space is added to the beginning and end of that previous paragraph (so it becomes indented while also adding space to the end of the paragrpah).

However the bug isn't consistent. I just went back to another sub and tried leaving a comment and it worked normally. Will keep my screen recorder app available though so I can get a video next time it happens.

nirurin commented 4 months ago

https://youtu.be/sXvBI83LuIw

Video of the behaviour. Doesn't happen with stock firefox.

CharmCityCrab commented 3 months ago

As a workaround for already posted comments on Reddit that need to be edited, users can toggle "Desktop Site" to on (Under Iceraven's three dot "hamburger" button) while viewing the comments but before hitting edit.

Then touch "edit", make corrections, and hit send or whatever.

I can only confirm the workaround is effective in those specific circumstances.

I did watch the video and I haven't personally seen something quite matching that while visiting Reddit, so I don't know a workaround to the other aspects of this issue that you're experiencing.

I just know the workaround to the one issue I have had- the edit, resubmit, and everything turns into one single run-on paragraph with no breaks issue.

Not undermining the other issues people are having, just trying to provide a workaround that I've used for the one Reddit issue I've had in case that helps anyone else.

nirurin commented 3 months ago

Next time it happens I'll try the workaround, though it's not an ideal solution. Hopefully iceraven devs will respond to this. If it happens again I'll probably just move to firefox beta, it's more stable.