Closed Bug 1767876 Opened 2 years ago Closed 2 years ago

Get rid of `nsITransactionListener` interface

Categories

(Core :: DOM: Editor, task, P3)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

Currently, it's implemented only by ComposerCommandsUpdater.
https://searchfox.org/comm-central/search?q=nsITransactionListener&path=&case=true&regexp=false

So we can get rid of this and cut a lot of virtual calls.

This patch makes TransactionManager store HTMLEditor, and HTMLEditor
send notifications from TransactionManager to ComposerCommandsUpdater.

Depends on D145663

Now, nobody (including comm-central) uses nsITransactionListener interface.

This patch also optimizes the notifying methods of HTMLEditor from
TransactionManager to make them safer and simpler. The HTMLEditor's methods
can drop some arguments, but I'd like to keep them to make new listeners in the
future handle them easier and safer, but the ComposerCommandsUpdater does not
require them. This is the reason why the difference of the methods' arguments.

Depends on D145664

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/214bc2967d67
part 1: Get rid of unhandled methods of `nsITransactionListener` r=m_kato
https://hg.mozilla.org/integration/autoland/rev/19b4b6bd0d7f
part 2: Make `ComposerCommandsUpdater` stop inheriting `nsITransactionListener` r=m_kato
https://hg.mozilla.org/integration/autoland/rev/ae99a0bbee21
part 3: Get rid of `nsITransactionListener` interface r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: