Closed Bug 1768315 Opened 2 years ago Closed 2 years ago

Make editor stop exposing its `TransactionManager` to chrome script

Categories

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

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

It's currently used for clearing undo transactions. So, it's enough to make nsIEditor have alternative API.
https://searchfox.org/comm-central/search?q=.transactionManager&path=&case=true&regexp=false

Then, we could stop using nsITransactionManager and/or nsITransaction interface in editor to save the footprint.

Severity: -- → N/A
Priority: -- → P3

nsITransactionManager provides too low level things and editor may want to
stop using it in the future if Undo Manager spec is implemented in another
browser. Therefore, I'd like to stop exposing nsITransactionManager instance
for editor.

Note that mozilla::TransactionManager is still created and used by the
UI of mailer of SeaMonkey (i.e., under mailnews), once we move
nsITransactionManager instance moved into SeaMonkey, we can make
mozilla::TransactionManager stop inheriting nsITransactionManager.

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/fd01384fd33a
Get rid of `nsIEditor.transactionManager` due to unused r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: