Closed Bug 1743318 Opened 2 years ago Closed 2 years ago

spellcheck doesn't seem to spellcheck the full text for long text with lots of errors

Categories

(Core :: Spelling checker, defect)

Firefox 94
defect

Tracking

()

RESOLVED DUPLICATE of bug 360434

People

(Reporter: bugzil.la, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

User Agent: Mozilla/6.0 (X13; Nebutu; Linux x86_64; rv:1984.0) Gecko/19840402 COVID/1984

Steps to reproduce:

  1. Enter 60000 words to textarea or "contenteditable" field (with typographic errors)
  2. Scroll down textarea or contenteditable field.
  3. Part of text is not checked. Spellcheck is very slow.

Actual results:

For long texts (>10 000 characters) the spellcheck in textarea (or "contenteditable" field) works slowly. It is caused by whole text checking. Part of text is not checked if it is long. IT IS UNACCEPTABLE.

Expected results:

Only visible text should be checked. Visible text contains few words to check (and underline errors). This algorithm will be faster because only small part of visible content will be checked. Spellchecking of not visible (due to viewport or clipping) content is unnecessary activity because the user will never see underline of invisible text.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Editor' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Editor
Product: Firefox → Core

Thanks for reporting. Can you attach a test-case to make sure we're testing the same thing? Ideally also a profile on your machine but that might not be needed if we can repro the perf issue.

  1. Please go to http://gaddafipsum.com/
  2. Please set 900 lines and "Afrikaans" as language on EN-US version of Firefox
  3. Please paste HERE in the "Add comment" and please scroll.
  4. See attachment. Part of text is not spellchecked. CHECK ONLY VISIBLE TEXT!

See attachment. Do you need more information?

Flags: needinfo?(emilio)
Attached image mozira.png
Attachment #9252797 - Attachment is obsolete: true
Attached file Test-case.

Thanks, so I can reproduce but it seems unlikely it is a performance issue itself. It looks more like we have a cap on the max number of spellcheck errors or something? I'm not sure, not particularly familiar with the spell checker code.

Flags: needinfo?(emilio)
Component: DOM: Editor → Spelling checker
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: spellcheck works slowly - improve implementation → spellcheck doesn't seem to spellcheck the full text for long text with lots of errors

By design. You can adjust it here: https://support.mozilla.org/en-US/questions/901029

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID

I guess this is more of a dupe of bug 360434.

Resolution: INVALID → DUPLICATE
See Also: → 324521

I think the spell checker has been fairly improved in the past few years (plus computers are much faster nowadays than when bug 324521 landed)... Maybe we should consider lifting that restriction altogether?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: