`Document.execCommand()` may cause firing DOM events and/or running some observers. Therefore, web apps can call it recursively. However, Chromium has already stopped supporting it:
https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/document_exec_command.cc;l=75;drc=301e5d079a1b4c29c5b17574d0470e6db7370acc

And it'll be documented in execCommand spec:
https://github.com/w3c/editing/issues/200#issuecomment-578097441

So, before that, we should stop supporting nested calls in Nightly channel and early Beta, and watch bug reports of broken web apps.

Pref name: dom.document.exec_command.nested_calls_allowed
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1611374

--
Masayuki Nakano <masay...@d-toybox.com>
Working on DOM, Events, editor and IME handling for Gecko
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to