Groups
Sign in
Groups
mozilla.dev.platform
Conversations
About
Send feedback
Help
info
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
Intent to Unship: Recursive call of Document.execCommand() (Only Nightly and early Beta for now)
47 views
Skip to first unread message
Masayuki Nakano
unread,
Feb 15, 2020, 3:04:04 AM
2/15/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-platform
`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 <
masa...@d-toybox.com
>
Working on DOM, Events, editor and IME handling for Gecko
0 new messages