Closed
Bug 1489939
Opened 8 years ago
Closed 8 years ago
Replace nsIEditorMailSupport with mozilla::HTMLEditor
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 64.0
People
(Reporter: m_kato, Assigned: m_kato)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
|
11.92 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Except to editor/ui/composer/content/ComposerCommands.js, comm-central shouldn't use nsIEditorMailSupport since C++ code can uses mozilla::HTMLEditor directly.
| Assignee | ||
Comment 1•8 years ago
|
||
(Patch will be coming after landing bug 1478546)
Comment 2•8 years ago
|
||
Thanks!
| Assignee | ||
Comment 3•8 years ago
|
||
| Assignee | ||
Comment 4•8 years ago
|
||
| Assignee | ||
Comment 5•8 years ago
|
||
Comment on attachment 9008305 [details] [diff] [review]
Replace nsIEditorMailSupport with mozilla::HTMLEditor
The composing area of Thunderbired (and Seamonkey) isn't <textarea> or <input type=text>, and it is HTMLEditor instance. (Actually nsIEditorMailSupport is implemented in HTMLEditor only). So mailnews should use mozilla::HTMLEditor instead of nsIEditorMailSupport.
Attachment #9008305 -
Flags: review?(jorgk)
Comment 6•8 years ago
|
||
Comment on attachment 9008305 [details] [diff] [review]
Replace nsIEditorMailSupport with mozilla::HTMLEditor
Review of attachment 9008305 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for moving this forward, much appreciated. r+ with questions :-)
::: mailnews/compose/src/nsMsgCompose.cpp
@@ +722,5 @@
> //we cannot add it on top earlier, because TagEmbeddedObjects will mark all images in the signature as "moz-do-not-send"
> if( sigOnTop )
> MoveToBeginningOfDocument();
>
> if (aHTMLEditor && htmlEditor)
Can |&& htmlEditor| be removed here?
Also two lines below we have:
else if (htmlEditor). Could that be replaced by just an else?
::: mailnews/compose/src/nsMsgCompose.h
@@ +57,5 @@
> const char * originalHost,
> const char * originalPath,
> mozilla::dom::Element * element);
> nsresult ResetUrisForEmbeddedObjects();
> + nsresult TagEmbeddedObjects(nsIEditor *aMailEditor);
Nit: Please change the name of the formal parameter.
Attachment #9008305 -
Flags: review?(jorgk) → review+
| Assignee | ||
Comment 7•8 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #6)
> Can |&& htmlEditor| be removed here?
>
> Also two lines below we have:
> else if (htmlEditor). Could that be replaced by just an else?
Yes, I remove and replace it.
> ::: mailnews/compose/src/nsMsgCompose.h
> @@ +57,5 @@
> > const char * originalHost,
> > const char * originalPath,
> > mozilla::dom::Element * element);
> > nsresult ResetUrisForEmbeddedObjects();
> > + nsresult TagEmbeddedObjects(nsIEditor *aMailEditor);
>
> Nit: Please change the name of the formal parameter.
Yes, thanks.
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/comm-central/rev/5237216b5de5
Replace nsIEditorMailSupport with mozilla::HTMLEditor. r=jorgk
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 9•8 years ago
|
||
I prefer to do the landings myself. You pushed onto a busted tree.
Target Milestone: --- → Thunderbird 64.0
Updated•7 years ago
|
Blocks: redesign-editor-module
You need to log in
before you can comment on or make changes to this bug.
Description
•