Summary: We still support some Gecko specific edit commands for
`Document.execCommand`, `Document.queryCommandEnabled`,
`Document.queryCommandSupported`, `Document.queryCommandState` and
`Document.queryCommandValue`. The list is here:
* `increatefontsize`
* `decreasefontsize`
* `gethtml`
* `contentReadOnly`
* `readonly`
* `insertBrOnReturn`
Except `contentReadOnly` and `insertBrOnReturn`, those commands are used
almost 0 web apps according to the telemetry results
<https://bugzilla.mozilla.org/show_bug.cgi?id=1706266#c1> so that it
must be safe to unship them immediately. So I'd like to unship them
right now.
On the other hand, `contentReadOnly` and `insertBrOnReturn` are used
less than 1%, but the actual number of documents which run and/or refer
them is about 10k. However, those command result is not trivial so that
it does not make sense to use these commands in web apps which support
all browsers. Therefore, I guess that they are run in automated tests
somebody else or technical demo. But for making it safer, I'd like to
unship these two commands only in Nightly channel for now.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1706266
Standard: N/A
Platform coverage: all
Preference: dom.document.edit_command.*.enabled
<https://searchfox.org/mozilla-central/rev/364aa1d41eb9b5ea583fa6cedc56fb5343e3514f/modules/libpref/init/StaticPrefList.yaml#1985-2019>
DevTools bug: N/A
Other browsers: Nobody has implemented these commands except us
web-platform-tests: Contained in the patch
<https://searchfox.org/mozilla-central/source/testing/web-platform/tests/editing/other/legacy-edit-command.html>
Security and Privacy: Nothing which we need to worry about
--
Masayuki Nakano<[email protected]>
Working on DOM, Events, editor and IME handling for Gecko
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/cc064de4-5927-116f-bbea-34512adf5d4e%40d-toybox.com.