Closed Bug 1986838 Opened 1 year ago Closed 1 year ago

Disable `contentreadonly` and `insertbronreturn` edit commands in all channels

Categories

(Core :: DOM: Editor, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox144 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

They were disabled in early beta and earlier builds 4 years ago, and no bug reports from beta/nightly testers. So, I think we can disable them in all channels.

Although I don't get the latest data of the usage, but when I was working on that 4 years ago, there were a lot of queries of state of the commands. I guess that they are used for finger printing because disabling the commands has not cause getting regression reports.

Additionally, executing the commands cause changing the HTMLEditor's basic behavior but the other browsers do not support them. So, I guess only the bool result of execCommand is used for finger printing. I cannot imagine how to use the commands for editable web apps which can be used in any browsers.

They are disabled in early beta and earlier builds 4 years ago.
However, we don't get any regression reports. Although the use counters
say they are still used both execCommand and query their state. I
guess they are used for finger printing because executing the commands
change the behavior of HTMLEditor and the result is not compatible
with the other browsers. So, it's hard to guess that how to use them
in editable web apps to control our HTMLEditor.

Pushed by masayuki@d-toybox.com: https://github.com/mozilla-firefox/firefox/commit/6a17f01e42f5 https://hg.mozilla.org/integration/autoland/rev/3cda49391a4c Disable the legacy edit command, `contentReadOnly` and `insertBrOnReturn` in all channels r=smaug,dom-core
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
QA Whiteboard: [qa-triage-done-c145/b144]

This removal should at least be noted in the release notes for Firefox 144. And the related BCD for execCommand() should be updated (even when execCommand() itself is already marked as deprecated). As the pages of the related methods queryCommandEnabled(), queryCommandState() and queryCommandSupported() refer to execCommand() for the individual commands, they probably don't need any updates.

Sebastian

Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: