Closed
Bug 1531806
Opened 5 years ago
Closed 5 years ago
PgpMimeProxy: Pass URI to extensions
Categories
(MailNews Core :: MIME, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 67.0
People
(Reporter: patrick, Assigned: patrick)
References
Details
Attachments
(1 file, 1 obsolete file)
3.18 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
We need a new solution to pass myUri to addons.
Comment 2•5 years ago
|
||
https://hg.mozilla.org/comm-central/rev/1025e23f16f7#l6.12
Can you pass the URI as the request?
Assignee | ||
Comment 3•5 years ago
|
||
Yes, I'm think along that line. If we add "uri" to the interface in nsIPgpMimeProxy.idl, then we only need to change this:
nsCOMPtr<nsIURI> uri;
if (channel)
channel->GetURI(getter_AddRefs(uri));
to:
nsCOMPtr<nsIURI> mUri;
if (channel)
channel->GetURI(getter_AddRefs(mUri));
and we can remove myUri
from SetMimeCallback
.
Assignee | ||
Comment 4•5 years ago
|
||
The patch adds messageURI to nsIPgpMimeProxy. This way, the URI can be read via the nsIRequest object.
Attachment #9047967 -
Flags: review?(jorgk)
Comment 5•5 years ago
|
||
Comment on attachment 9047967 [details] [diff] [review] Patch v1 Review of attachment 9047967 [details] [diff] [review]: ----------------------------------------------------------------- Looks good with the comment addressed. I haven't tested it, I guess it will do what you need. ::: mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.cpp @@ +298,5 @@ > // nsPgpMimeProxy implementation > nsPgpMimeProxy::nsPgpMimeProxy() > : mInitialized(false), > mDecryptor(nullptr), > mLoadGroup(nullptr), These two above are unnecessary and should be removed. @@ +301,5 @@ > mDecryptor(nullptr), > mLoadGroup(nullptr), > mLoadFlags(LOAD_NORMAL), > + mCancelStatus(NS_OK), > + mMessageURI(nullptr) The constructor or nsCOMPtr already nulls the pointer, so you can remove this.
Attachment #9047967 -
Flags: review?(jorgk) → review+
Assignee | ||
Comment 6•5 years ago
|
||
Thanks here is the updated patch. I tried it successfully with an adopted version of Enigmail.
Can you commit it?
Attachment #9047967 -
Attachment is obsolete: true
Flags: needinfo?(jorgk)
Comment 8•5 years ago
|
||
Comment on attachment 9048021 [details] [diff] [review] patch v1.1 Thanks.
Attachment #9048021 -
Flags: review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/f58cbe43514a
Add nsIPgpMimeProxy.messageURI. r=jorgk
Updated•5 years ago
|
Target Milestone: --- → Thunderbird 67.0
You need to log in
before you can comment on or make changes to this bug.
Description
•