mail icon indicating copy to clipboard operation
mail copied to clipboard

Various issues with latest versions of Firefox

Open doc75 opened this issue 6 years ago • 50 comments

Expected behavior

Writing mail, I should be able to delete text by using delete or backspace key. I also should be able to copy/paste text.

Actual behavior

When I answer a mail, I can delete 1 or 2 chars with backspace and then it stops working and I cannot anymore delete chars (even with delete key). The only solution is to select text with mouse and type another text to overwrite it (though the final result that the recipient will receive may not look the same as what you see).

Copying text to the clipboard doesn't work neither.

Issues are not reproducible in Chromium 84.

Mail app

Mail app version: 1.4.1

Mailserver or service: Personal server (Dovecot + Postfix)

Server configuration

Operating system: Official Docker fpm image

Web server: Nginx

Database: PostgreSQL

PHP version: Official docker image

Nextcloud Version: 19.0.4

Client configuration

Browser: Firefox 83

Operating system: Windows

doc75 avatar Nov 19 '20 11:11 doc75

I can find in the web console this type of error when the issue occurs:

Uncaught CKEditorError: a is undefined                                                                    mail.js:1:64080
    <anonymous> VueJS
    value range.js:348
    value deletecommand.js:107
    value model.js:805
    value model.js:231
    value deletecommand.js:76
    decorate observablemixin.js:255
    fire emittermixin.js:209
    e observablemixin.js:259
    value commandcollection.js:68
    value editor.js:288
    value delete.js:55
    fire emittermixin.js:209
    c deleteobserver.js:87
    u deleteobserver.js:50
    fire emittermixin.js:209
    value domeventobserver.js:96
    value keyobserver.js:28
    value domeventobserver.js:79
    fire emittermixin.js:209
    r emittermixin.js:235
    construct self-hosted:2653
    s mail.js:1
    r mail.js:1
    construct self-hosted:2653
    f mail.js:5
    d ckeditorerror.js:66
    value ckeditorerror.js:118
    value model.js:236
    value deletecommand.js:76
    decorate observablemixin.js:255
    fire emittermixin.js:209
    e observablemixin.js:259
    value commandcollection.js:68
    value editor.js:288
    value delete.js:55
    fire emittermixin.js:209
    c deleteobserver.js:87
    u deleteobserver.js:50
    fire emittermixin.js:209
    value domeventobserver.js:96
    value keyobserver.js:28
    value domeventobserver.js:79
    fire emittermixin.js:209
    r emittermixin.js:235
Uncaught CKEditorError: model-nodelist-offset-out-of-bounds: Given offset cannot be found in the node list. Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/…t/error-codes.html#error-model-nodelist-offset-out-of-bounds
 {"offset":10,"nodeList":[{"data":"Ho  can i"}]}                                            mail.js:1:63758
    r mail.js:1
    f mail.js:5
    d ckeditorerror.js:66
    value nodelist.js:161
    value element.js:188
    d position.js:1091
    get position.js:221
    v document.js:481
    value document.js:390
    n documentselection.js:646
    fire emittermixin.js:209
    value selection.js:479
    value selection.js:370
    value documentselection.js:734
    value documentselection.js:421
    value writer.js:1177
    convertSelectionChange upcasthelpers.js:413
    value model.js:173
    convertSelectionChange upcasthelpers.js:412
    fire emittermixin.js:209
    value selectionobserver.js:183
    value selectionobserver.js:104
    fire emittermixin.js:209
    r emittermixin.js:235
    construct self-hosted:2653
    r mail.js:1
    construct self-hosted:2653
    f mail.js:5
    d ckeditorerror.js:66
    value nodelist.js:161
    value element.js:188
    d position.js:1091
    get position.js:221
    v document.js:481
    value document.js:390
    n documentselection.js:646
    fire emittermixin.js:209
    value selection.js:479
    value selection.js:370
    value documentselection.js:734
    value documentselection.js:421
    value writer.js:1177
    convertSelectionChange upcasthelpers.js:413
    value model.js:173
    convertSelectionChange upcasthelpers.js:412
    fire emittermixin.js:209
    value selectionobserver.js:183
    value selectionobserver.js:104
    fire emittermixin.js:209
    r emittermixin.js:235

doc75 avatar Nov 19 '20 11:11 doc75

Hmmmm I've seen that Given offset cannot be found in the node list a while ago.

Do you have formatting enabled for that reply or is it off?

ChristophWurst avatar Nov 20 '20 09:11 ChristophWurst

@ChristophWurst by default formatting is not activated on my side. I just checked and I am able to reproduce the issue with and without formatting activated.

doc75 avatar Nov 20 '20 10:11 doc75

Can reproduce on Linux Mint 19.3, Firefox 83.0, same server and mail app as report (Nextcloud 19.04, Mail 1.4.1)

@ChristophWurst unusable interface, please assign a high priority to this bug! A coworker complained about this today, people can't work because of this. (I know, buy a Nextcloud subscription..... just telling you that probably thousands of other people have this problem right now, but they don't know that it can be reported here).

@doc75 Does updating to 19.0.5 help?

Let me know if you need info from me.

alexanderdd avatar Nov 21 '20 18:11 alexanderdd

@alexanderdd @ChristophWurst , same issue on NC 19.0.5 and also on Linux (with Firefox 83). Not reproducible on Chromium 86 on Linux

doc75 avatar Nov 21 '20 21:11 doc75

Just noticed: everthing works fine (also enter, delete keys) until you use the backspace key. Then the backspace, enter, delete key does not work anymore.

This is only in Firefox, Chromium works fine.

alexanderdd avatar Nov 22 '20 18:11 alexanderdd

I have the same problem, as how @alexanderdd say, only fail with Firefox. Brave (based on Chromium) works well too.

I'm using Firefox v83.0 too, but Nextcloud 20.0.2 and MAil 1.7.0.

Any thing that you need ¿?

bernatnan avatar Nov 22 '20 19:11 bernatnan

@ChristophWurst unusable interface, please assign a high priority to this bug! A coworker complained about this today, people can't work because of this. (I know, buy a Nextcloud subscription..... just telling you that probably thousands of other people have this problem right now, but they don't know that it can be reported here).

More than 200k installations of Mail and three users reported this.

I'm fine with the label. But with the assignment we don't fix it. We need someone who can reproduce this in a development environment.

So, who wants to dive into this?

ChristophWurst avatar Nov 23 '20 10:11 ChristophWurst

The first thing to check would be bug reports of the CKEditor version in use in an affected version and if anything like that has been reported upstream.

ChristophWurst avatar Nov 23 '20 10:11 ChristophWurst

Just chiming in to let you know that I have the same issue on NC 19.0.5, Mail 1.4.1. on Apache. I use Firefox 83 on Linux. I don't have a development environment available but if I can be helpful in testing or providing more information, I'd be happy to help.

joober avatar Nov 23 '20 16:11 joober

Can confirm also. NC 19.04 Firefox 83

laurentiu2 avatar Nov 24 '20 09:11 laurentiu2

You can use the :+1: on the original report. Thanks.

ChristophWurst avatar Nov 24 '20 09:11 ChristophWurst

This also happens on latest master: Uncaught CKEditorError: Range.setStart: Argument 1 is not an object..

Did anyone check CKEditor for existing bug reports?

ChristophWurst avatar Nov 24 '20 09:11 ChristophWurst

I checked a little bit, and found this: https://stackoverflow.com/questions/50951667/ckeditor5-receiving-model-nodelist-offset-out-of-bounds-what-are-possible-r In one of the anwsers it link to this article: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/tutorials/implementing-an-inline-widget.html#fixing-position-mapping

There is also a tutorial mentionning similar error: https://github.com/ckeditor/ckeditor5/blob/4cb8158a87f6c44026b4199eabfaf10302142ace/docs/framework/guides/tutorials/implementing-an-inline-widget.md#fixing-position-mapping

I hope this is relevant in our case. Sorry if not.

doc75 avatar Nov 24 '20 11:11 doc75

Thanks a lot. I'll check them :)

ChristophWurst avatar Nov 24 '20 11:11 ChristophWurst

Hello @ChristophWurst

Can I help?

StCyr avatar Nov 24 '20 14:11 StCyr

For me this problem occurs too, both when composing a new message or replying to an existing one. I type some characters and then back space wont do anything. I'm using Firefox 83.0. I tested with Chrome as well, the problem did not occur there.

edit: I'm running nextcloud 20.0.2 and Mail app version 1.7.0

What can I provide to help finding the issue?

johanneshorak avatar Nov 25 '20 20:11 johanneshorak

What I find a bit strange is that this is showing up now for so many different versions of Mail at the same time. The 1.4.x for 19 was released in early July. And since then we updated CKEditor a at least two times as far as I remember. Therefore it's possible to be something that changed in the browser(s).

Does anyone have access to older Firefoxes (e.g. ESR) to check if the problem is reproducible there as well?

FWIW I can't reproduce the bug at https://ckeditor.com/ckeditor-5/demo/

ChristophWurst avatar Nov 26 '20 07:11 ChristophWurst

What I find a bit strange is that this is showing up now for so many different versions of Mail at the same time. The 1.4.x for 19 was released in early July. And since then we updated CKEditor a at least two times as far as I remember. Therefore it's possible to be something that changed in the browser(s).

Does anyone have access to older Firefoxes (e.g. ESR) to check if the problem is reproducible there as well?

I have a laptop with Firefox ESR version., but until I finish working and arrive at home I won't have it. I willl test then.

FWIW I can't reproduce the bug at https://ckeditor.com/ckeditor-5/demo/

bernatnan avatar Nov 26 '20 08:11 bernatnan

Does anyone have access to older Firefoxes (e.g. ESR) to check if the problem is reproducible there as well?

I just tried this on Firefox 68.12.0esr on Windows 10. The problem doesn't appear to exist there. I wrote a rather long email, used Enter and Backspace a lot on purpose. Didn't run into an issue.

Let me know if you need me to test anything specific.

joober avatar Nov 26 '20 08:11 joober