Closed
Bug 1490265
Opened 5 years ago
Closed 5 years ago
Port bug 1468222: Consolidate nsISSLStatus into nsITransportSecurityInfo (cannot find type `nsISSLStatus` in this scope)
Categories
(Thunderbird :: General, task)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 64.0
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
References
Details
Attachments
(2 files, 2 obsolete files)
1.70 KB,
patch
|
Details | Diff | Splinter Review | |
12.58 KB,
patch
|
mkmelin
:
review+
dipen
:
feedback+
|
Details | Diff | Splinter Review |
M-C last good: fea371cafd2c73be689184ca6670e33c3f M-C first bad: 423bdf7a802b0d302244492b423609187d Range: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=fea371cafd2c73be689184ca6670e33c3f&tochange=423bdf7a802b0d302244492b423609187d 0:58.41 dom/media/platforms/ffmpeg/ffvpx 0:59.74 dom/media/systemservices 1:00.05 cannot find type `nsISSLStatus` in this scope 1:00.05 c:/mozilla-source/comm-central/obj-x86_64-pc-mingw32/dist/xpcrs/rt/imIAccount.rs:773:101 1:00.05 pub GetSslStatus: unsafe extern "system" fn (this: *const prplIAccount, aSslStatus: *mut *const nsISSLStatus) -> nsresult, 1:00.05 cannot find type `nsISSLStatus` in this scope 1:00.05 c:/mozilla-source/comm-central/obj-x86_64-pc-mingw32/dist/xpcrs/rt/imIAccount.rs:1053:63 1:00.05 pub unsafe fn GetSslStatus(&self, aSslStatus: *mut *const nsISSLStatus) -> nsresult { 1:00.05 ^^^^^^^^^^^^not found in this scope 1:02.94 dom/media/wave
Assignee | ||
Comment 1•5 years ago
|
||
That comes from chat's imIAccount.idl which is somehow processed into Rust and there's something wrong. We have: interface nsISSLStatus; and readonly attribute nsISSLStatus sslStatus; I see it now: 5cfda4227c6a Dipen Patel - Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=Gijs,snorp,jcj,mcmanus,sfraser,keeler,baku,ato
Summary: Thunderbird builds busted: 2018-09-11 by rust compile error: cannot find type `nsISSLStatus` in this scope → Port bug 1468222: Consolidate nsISSLStatus into nsITransportSecurityInfo (cannot find type `nsISSLStatus` in this scope)
Assignee | ||
Comment 2•5 years ago
|
||
Looks like we need to look at the call sites providing SSL status: https://searchfox.org/comm-central/search?q=sslStatus&case=false®exp=false&path=
Assignee | ||
Comment 3•5 years ago
|
||
This lets us compile again.
Assignee | ||
Comment 4•5 years ago
|
||
Magnus, would you like to be the doctor here? The paramedics morning shift is over and the patient is no longer bleeding.
Flags: needinfo?(mkmelin+mozilla)
Keywords: leave-open
Assignee | ||
Comment 5•5 years ago
|
||
Make that genitive: The paramedic's ...
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/11615766cf8a Port bug 1468222: remove use of nsISSLStatus. rs=bustage-fix
Assignee | ||
Comment 7•5 years ago
|
||
Hi Dipen, anything in particular we need to look for when porting this? Just removing the interface (see comment #6) hasn't caused any test failures, but of course not everything is covered by tests.
Flags: needinfo?(bugzilla)
Comment 8•5 years ago
|
||
Can take a look in the evening, if nobody else wants to do it.
Assignee: nobody → mkmelin+mozilla
Flags: needinfo?(mkmelin+mozilla)
Assignee | ||
Comment 9•5 years ago
|
||
OK, DXR is back :-) https://dxr.mozilla.org/comm-central/search?q=sslStatus+path%3Acomm%2F&redirect=false https://dxr.mozilla.org/comm-central/search?q=nsISSLStatus+path%3Acomm%2F&redirect=false Mostly comments and the stuff I've already removed in https://hg.mozilla.org/comm-central/rev/11615766cf8a, but comm/mail/components/accountcreation/content/guessConfig.js 859 let cert = status.QueryInterface(Ci.nsISSLStatus).serverCert; surely won't work now. Replacement is here: https://hg.mozilla.org/mozilla-central/rev/5cfda4227c6a#l10.12
Version: 63 → Trunk
Assignee | ||
Comment 10•5 years ago
|
||
I've made a start gleaning bits from https://hg.mozilla.org/mozilla-central/rev/5cfda4227c6a
Assignee | ||
Comment 11•5 years ago
|
||
That should cover everything except chat/modules/jsProtoHelper.jsm. Your turn, Magnus?
Attachment #9008149 -
Attachment is obsolete: true
Assignee | ||
Comment 12•5 years ago
|
||
Ah well, this should do it.
Assignee: mkmelin+mozilla → jorgk
Attachment #9008153 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Flags: needinfo?(bugzilla)
Attachment #9008156 -
Flags: review?(mkmelin+mozilla)
Attachment #9008156 -
Flags: feedback?(bugzilla)
Assignee | ||
Comment 13•5 years ago
|
||
Comment on attachment 9008156 [details] [diff] [review] 1490265-nsISSLStatus.patch (v3) Review of attachment 9008156 [details] [diff] [review]: ----------------------------------------------------------------- ::: chat/modules/jsProtoHelper.jsm @@ +59,5 @@ > > if (aIsSslError) > return Ci.prplIAccount.ERROR_ENCRYPTION_ERROR; > > + let secInfo = this._secInfo = aSocket.secInfo; Actually, I didn't see an example of this in the M-C patch.
Comment 14•5 years ago
|
||
Comment on attachment 9008156 [details] [diff] [review] 1490265-nsISSLStatus.patch (v3) Review of attachment 9008156 [details] [diff] [review]: ----------------------------------------------------------------- Looks ok to me. It would be a bit complicated to test though. r=mkmelin ::: chat/components/public/imIAccount.idl @@ +149,5 @@ > /* When a certificate error occurs, the host/port that caused a > * SSL/certificate error when connecting to it. This is only valid when > * connectionErrorReason is one of ERROR_CERT_*. */ > readonly attribute AUTF8String connectionTarget; > + /* When a certificate error occurs, the nsITransportSecurityInfo error of the socket. This comment style is wrong in this file /** is documentation style comments. /* is just start of a multiline comment
Attachment #9008156 -
Flags: review?(mkmelin+mozilla) → review+
Comment 15•5 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/37bdf33fc10c Port bug 1468222: Replace nsISSLStatus with nsITransportSecurityInfo. r=mkmelin
Assignee | ||
Updated•5 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 64.0
Comment 16•5 years ago
|
||
Comment on attachment 9008156 [details] [diff] [review] 1490265-nsISSLStatus.patch (v3) Review of attachment 9008156 [details] [diff] [review]: ----------------------------------------------------------------- A little late but looks fine.
Attachment #9008156 -
Flags: feedback?(bugzilla) → feedback+
Assignee | ||
Comment 17•5 years ago
|
||
Better late than never, as they say ;-) - Thanks!
Updated•4 years ago
|
Type: defect → task
You need to log in
before you can comment on or make changes to this bug.
Description
•