Closed
Bug 1478546
Opened 7 years ago
Closed 7 years ago
Move HTMLEditor::GetEmbeddedObjects (nsIEditorMailSupport.getEmbeddedObjects) to comm-central
Categories
(MailNews Core :: Composition, task)
MailNews Core
Composition
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 64.0
People
(Reporter: m_kato, Assigned: m_kato)
References
(Blocks 3 open bugs)
Details
Attachments
(1 file, 1 obsolete file)
11.14 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Firefox (and bluegriffon) doesn't use GetEmbeddedObjects method and it is used on Mail composer. So we should move this from Gecko's core to mailnews/compose.
Assignee | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Thanks! The failures on your try run are expected, see https://mzl.la/2gS72WO :-( - Currently working on fixing the two most prominent ones, the "content policy" and the "a11y".
Assignee | ||
Comment 3•7 years ago
|
||
Assignee: nobody → m_kato
Assignee | ||
Comment 4•7 years ago
|
||
Comment on attachment 9003702 [details] [diff] [review]
Move HTMLEditor::GetEmbeddedObjects (nsIEditorMailSupport.getEmbeddedObjects) to comm-central
I would like to move nsIEditorMailSupport.getEmbeddedObjects to comm-central since this isn't used from JavaScript on Firefox, Thunderbird and BlueGriffon.
Attachment #9003702 -
Flags: review?(jorgk)
Comment 5•7 years ago
|
||
Thanks for looking into this. Maybe it's time for a little clean-up.
GetEmbeddedObjects() returns nsGkAtoms::img, nsGkAtoms::embed, nsGkAtoms::a and nsGkAtoms::body.
Mailnews processes 'img', 'a', 'body' and 'link'!
https://searchfox.org/comm-central/rev/39cff66145fdfbfa785202c5b8d1c72a06034034/mailnews/compose/src/nsMsgSend.cpp#1287
nsMsgCompose.cpp processes 'img', 'a' and 'link'.
So I think it's about time not to return 'embed' any more since it makes no sense. What do you think? That we check for 'link' which is never returned, is covered in bug 1434575.
Comment 6•7 years ago
|
||
Comment on attachment 9003702 [details] [diff] [review]
Move HTMLEditor::GetEmbeddedObjects (nsIEditorMailSupport.getEmbeddedObjects) to comm-central
Thanks, this looks fine. Can you please still address comment #5.
Attachment #9003702 -
Flags: review?(jorgk) → review+
Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #5)
> Thanks for looking into this. Maybe it's time for a little clean-up.
>
> GetEmbeddedObjects() returns nsGkAtoms::img, nsGkAtoms::embed, nsGkAtoms::a
> and nsGkAtoms::body.
>
> Mailnews processes 'img', 'a', 'body' and 'link'!
> https://searchfox.org/comm-central/rev/
> 39cff66145fdfbfa785202c5b8d1c72a06034034/mailnews/compose/src/nsMsgSend.
> cpp#1287
> nsMsgCompose.cpp processes 'img', 'a' and 'link'.
>
> So I think it's about time not to return 'embed' any more since it makes no
> sense. What do you think? That we check for 'link' which is never returned,
> is covered in bug 1434575.
Hmm, this code is written on Netscape era, embed is for plugin only, and Flash don't run on compose window, so we can remove embed element support for this. I will update the patch.
Assignee | ||
Comment 8•7 years ago
|
||
remove embed element support
Attachment #9007671 -
Flags: review?(jorgk)
Comment 9•7 years ago
|
||
Comment on attachment 9007671 [details] [diff] [review]
Move HTMLEditor::GetEmbeddedObjects (nsIEditorMailSupport.getEmbeddedObjects) to comm-central v2
Thank you, I'll get it landed, if you don't mind.
Attachment #9007671 -
Flags: review?(jorgk) → review+
Updated•7 years ago
|
Attachment #9003702 -
Attachment is obsolete: true
Updated•7 years ago
|
Keywords: checkin-needed
Comment 10•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/fe6d8f59182d
Move HTMLEditor::GetEmbeddedObjects (nsIEditorMailSupport.getEmbeddedObjects) to comm-central. r=jorgk DONTBUILD
Updated•7 years ago
|
Target Milestone: --- → Thunderbird 64.0
Updated•6 years ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•