move nsMessengerContentHandler.cpp functionality into MessengerContentHandler.jsm
Categories
(Thunderbird :: General, task, P3)
Tracking
(thunderbird_esr78 wontfix, thunderbird_esr91 wontfix, thunderbird84 wontfix)
People
(Reporter: mkmelin, Assigned: rnons)
Details
Attachments
(1 file, 5 obsolete files)
We have two messengercontenthandlers now. The remaining stuff in the .cpp one should be moved to MessengerContentHandler.jsm
https://searchfox.org/comm-central/source/mailnews/base/src/nsMessengerContentHandler.cpp
https://searchfox.org/comm-central/source/mail/components/MessengerContentHandler.jsm
This will make it easier to do ports of BrowserContentHandler.jsm functionality: https://searchfox.org/comm-central/source/mozilla/browser/components/BrowserContentHandler.jsm
E.g. showWhatsNewPage() should be handled there, like in it's browser equivalence.
Reporter | ||
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Reporter | ||
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
Reporter | ||
Comment 4•4 years ago
|
||
Comment 5•4 years ago
•
|
||
(In reply to Magnus Melin [:mkmelin] from comment #4)
Why does it now have to be in two places?
I have inlined it at two places where we are using the MessengerContentHandler from C++. Now, it's more of a javascript function.
Comment 6•4 years ago
|
||
Reporter | ||
Comment 7•4 years ago
|
||
Comment 8•4 years ago
|
||
Previously, we are using it as a util function only by calling nsMessengerContentHandler.handleContent
. And we are using it in the openURI
function which is used by the MessengerContentHandler only. So it will be a kind of recursion: https://searchfox.org/comm-central/source/mail/components/MessengerContentHandler.jsm#73,114-117,146,148,176,181,577,581,588
We can do one thing, create a util function and use at both the places.
Reporter | ||
Comment 9•4 years ago
|
||
Comment 10•4 years ago
|
||
Reporter | ||
Comment 11•4 years ago
|
||
Reporter | ||
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Updated•4 years ago
|
Comment 13•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/8587f3e2dbbf
move nsMessengerContentHandler.cpp functionality into MessengerContentHandler.jsm. r=mkmelin
Comment 14•4 years ago
|
||
This broke these tests that try to open an email attachment, so I've backed it out:
mail/test/browser/attachment/browser_attachment.js
mail/test/browser/composition/browser_forwardedEmlActions.js
mail/test/browser/message-header/browser_phishingBar.js
We've lost registration of the nsIURIContentListener, so opening an attachment goes straight to the external helper app service.
Backout:
https://hg.mozilla.org/comm-central/rev/8444d32fb2784a3b015029090fa7c4b74396d661
Comment 15•4 years ago
|
||
Geoff, any thoughts on how to approach this?
Updated•4 years ago
|
Comment 16•4 years ago
|
||
Looks like you should be able to do it with a components.conf. Some examples.
Reporter | ||
Comment 17•3 years ago
|
||
Ping, maybe you can finish this off at some point
Assignee | ||
Comment 18•3 years ago
|
||
Based on Khushil's patch.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 19•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/f033e1b873da
Merge nsMessengerContentHandler.cpp into MessengerContentHandler.jsm. r=mkmelin
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Description
•