Closed
Bug 867432
Opened 13 years ago
Closed 13 years ago
Remove nsIX509Cert.verifyForUsage
Categories
(Core :: Security: PSM, defect)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: briansmith, Assigned: briansmith)
References
(Blocks 1 open bug)
Details
(4 keywords, Whiteboard: [Snappy])
Attachments
(1 file)
|
7.52 KB,
patch
|
cviecco
:
review+
mayhemer
:
superreview+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #775698 +++
Certificate validation does disk I/O and/or network I/O so it should never be done on the main thread. Unfortunately, nsIX509Cert.verifyForUsage is impossible to implement with its current synchronous signature without doing network I/O or disk I/O on the main thread.
Also, the existence of this function complicates the insanity::pkix integration into Firefox.
The only user in the tree is Test Pilot. I looked at the code in Test Pilot and it seems unnecessary. I filed bug 867430 about that.
| Assignee | ||
Updated•13 years ago
|
Summary: [Tracking] Remove all nsIX509Cert.verifyForUsage → Remove nsIX509Cert.verifyForUsage
| Assignee | ||
Comment 1•13 years ago
|
||
We may not need to fix bug 867430 for this:
On #developers
<gavin> bsmith: we're going to just remove testpilot
| Assignee | ||
Updated•13 years ago
|
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → bsmith
| Assignee | ||
Comment 2•13 years ago
|
||
Here's the try run: https://tbpl.mozilla.org/?tree=Try&rev=015b6dd0e28b
Attachment #744359 -
Flags: superreview?(honzab.moz)
Attachment #744359 -
Flags: review?(cviecco)
Drive-by:
Note that you might want to update the documentation to stop using this method:
https://developer.mozilla.org/en-US/docs/How_to_check_the_security_state_of_an_XMLHTTPRequest_over_SSL
It may also be useful to document (asynchronous) methods for addons to migrate to.
Comment 4•13 years ago
|
||
Comment on attachment 744359 [details] [diff] [review]
Remove nsIX509Cert.verifyForUsage
Review of attachment 744359 [details] [diff] [review]:
-----------------------------------------------------------------
r+ with comment addressed.
::: security/manager/ssl/public/nsIX509Cert.idl
@@ +155,5 @@
>
> /**
> * Constants that describe the certified usages of a certificate.
> + *
> + * Deprecated and unused
File bug to remove these in the future or remove them now.
Attachment #744359 -
Flags: review?(cviecco) → review+
| Assignee | ||
Comment 5•13 years ago
|
||
(In reply to :Mook from comment #3)
> Drive-by:
>
> Note that you might want to update the documentation to stop using this
> method:
>
> https://developer.mozilla.org/en-US/docs/
> How_to_check_the_security_state_of_an_XMLHTTPRequest_over_SSL
I updated the wiki. Please review:
https://developer.mozilla.org/en-US/docs/How_to_check_the_security_state_of_an_XMLHTTPRequest_over_SSL
> It may also be useful to document (asynchronous) methods for addons to
> migrate to.
There isn't a general-purpose async counterpart, currently.
Comment 6•13 years ago
|
||
What is the plan for:
http://mxr.mozilla.org/comm-central/search?find=%2Fmailnews%2F&string=VerifyForUsage
We should provide comm-central e.g. a static function duplicating the original method. Or do you have a different idea?
This patch will effectively break comm-central builds.
| Assignee | ||
Comment 7•13 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #6)
> What is the plan for:
>
> http://mxr.mozilla.org/comm-central/
> search?find=%2Fmailnews%2F&string=VerifyForUsage
>
> We should provide comm-central e.g. a static function duplicating the
> original method. Or do you have a different idea?
See bug 867437. The calls to verifyForUsage in comm-central can/should just be removed.
> This patch will effectively break comm-central builds.
Yes, lots of the patches related to this will break comm-central until comm-central can be updated to undo the breakage.
In general, all the S/MIME-related functionality should be moved from mozilla-central to comm-central so that we don't have to maintain it as part of PSM.
Comment 8•13 years ago
|
||
Comment on attachment 744359 [details] [diff] [review]
Remove nsIX509Cert.verifyForUsage
Review of attachment 744359 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry for the delay.
sr=honzab
Attachment #744359 -
Flags: superreview?(honzab.moz) → superreview+
Updated•13 years ago
|
| Assignee | ||
Comment 9•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7d8b09a16c50
Thanks for the reviews.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla24
Comment 10•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•