Open Bug 1264878 Opened 8 years ago Updated 2 years ago

[meta] Move nsIEditorMailSupport methods to c-c

Categories

(Core :: DOM: Editor, defect)

defect

Tracking

()

Tracking Status
firefox48 --- affected

People

(Reporter: m_kato, Unassigned)

References

(Depends on 2 open bugs)

Details

(Keywords: meta)

nsIEditorMailSupport uses on Thunderbird and Seamonkey only.   So we should move these methods to c-c if possible.
(and a few addons.  I don't check whether addons is for Firefox)
Depends on: 1264895
Depends on: 1264922
Are nsIEditorMailSupport methods used with <textarea> or <input>?

If not, we can move the interface implementation to HTMLEditor. Then, we can reduce footprint 4KB or 8KB per TextEditor instance.

(XUL <editor> element makes XUL document editable, so, it is also creates HTMLEditor.)
> 4KB or 8KB per TextEditor instance

Oops, not "K", 4B or 8B.
(In reply to Masayuki Nakano [:masayuki] (JST, +0900) from comment #2)
> Are nsIEditorMailSupport methods used with <textarea> or <input>?
You're asking me? I think we're only using them on <editor>:
https://dxr.mozilla.org/comm-central/rev/e5e1510b8d914bfa8439b21ba3f73e4f2e83e957/mail/components/compose/content/messengercompose.xul#2053
(In reply to Jorg K (GMT+2) from comment #4)
> (In reply to Masayuki Nakano [:masayuki] (JST, +0900) from comment #2)
> > Are nsIEditorMailSupport methods used with <textarea> or <input>?
> You're asking me?

If you'd exactly know, yes, otherwise, not. Just a tweet.

> I think we're only using them on <editor>:
> https://dxr.mozilla.org/comm-central/rev/
> e5e1510b8d914bfa8439b21ba3f73e4f2e83e957/mail/components/compose/content/
> messengercompose.xul#2053

Thanks, can I make TextEditor not inherit nsIEditorMailSupport for making sure that Thunderbird does not use the interface with <input> nor <textarea>? (I mean, if it breaks Tb, just I'll back it out.)
Flags: needinfo?(jorgk)
There are only two <textarea>s in C-C and very few <input>s, mostly in testing. To my knowledge, we don't use nsIEditorMailSupport methods on those. That's all I can say.
Flags: needinfo?(jorgk)
Thanks. I'll try to move nsIEditorMailSupport from TextEditor to HTMLEditor.
(In reply to Masayuki Nakano [:masayuki] (JST, +0900) from comment #7)
> Thanks. I'll try to move nsIEditorMailSupport from TextEditor to HTMLEditor.

I'll work on this in bug 1476897.
Depends on: 1478546
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.