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

Edge and/or IE sometimes throw a permission denied error #3419

Open msamsel opened 5 years ago

msamsel commented 5 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

There are some workarounds in code, which prevent of throwing this error. Maybe there will be time to investigate what exactly happens here:

https://github.com/ckeditor/ckeditor4/blob/acf57ad52650fafc07df2e98886517e82fd585da/core/dom/domobject.js#L141-L147

https://github.com/ckeditor/ckeditor4/blob/acf57ad52650fafc07df2e98886517e82fd585da/core/editable.js#L544-L547

From a brief analysis, it looks like issue tends to appear when we accessing a property/value/etc. of native HTML element which is detached.

Expected result

no error or some better error handling/prevention

Actual result

simple try…catch which prevents error occurrence.

Other details

Issue extracted during #3128

sculpt0r commented 3 years ago

Some references:

The wysiwygarea uses iframe which probably causes a lot of reloads.