ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

NVDA reads the label for the `iframe`-based editor twice #5185

Open Comandeer opened 2 years ago

Comandeer commented 2 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Turn on NVDA.
  2. Open the CKE4 sample with wysiwygarea plugin.
  3. Focus the editor.

Expected result

The application's and editor's titles are read once:

<application title>
<editor title> frame
<editor title> document editable

Actual result

The application's and editor's titles are read twice:

<application title>
<editor title> frame
<application title>
<editor title> frame
<editor title> document editable

Other details

It seems to be connected with the mechanism for the initial selection fix: https://github.com/ckeditor/ckeditor4/blob/97cff348182489b61be55b90f110d456d9487702/core/editable.js#L613-L615

Comandeer commented 2 years ago

After more detailed research, the issue does not seem to be connected with the initial selection fix. It appears randomly, without any visible cause. However, I've observed some pattern: sometimes focusing the editor works correctly and it's announced only once. Yet, it's enough to tab outside of it and then go back to it via Shift + Tab for issue to occur.