Closed
Bug 1187029
Opened 10 years ago
Closed 10 years ago
convert test_bug480509.html to an xpcshell test
Categories
(Core :: Security: PSM, defect)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: keeler, Assigned: keeler)
References
Details
Attachments
(1 file)
See bug 1174286. test_bug480509.html doesn't need to be a mochitest.
![]() |
Assignee | |
Comment 1•10 years ago
|
||
bug 1187029 - convert test_bug480509.html to an xpcshell test r?jcj
Attachment #8638184 -
Flags: review?(jjones)
![]() |
Assignee | |
Updated•10 years ago
|
QA Contact: dkeeler
Updated•10 years ago
|
Attachment #8638184 -
Flags: review?(jjones) → review+
Comment 2•10 years ago
|
||
Comment on attachment 8638184 [details]
MozReview Request: bug 1187029 - convert test_bug480509.html to an xpcshell test r?jcj
https://reviewboard.mozilla.org/r/14045/#review12827
r=jcj with comments addressed.
::: security/manager/ssl/tests/unit/test_cert_embedded_null.js:21
(Diff revision 1)
> + checkCertErrorGeneric(certdb, cert, SSL_ERROR_BAD_CERT_DOMAIN,
I feel like we should also test that it's not www.bad-guy.com. Ditto in the SAN test.
::: security/manager/ssl/tests/unit/test_cert_embedded_null/embeddedNullSAN.pem.certspec:2
(Diff revision 1)
> +subject:embedded NUL in SAN
Typically certs with a SAN still have a common name that is one of the listed dNSnames. If the validation code is sufficiently separated that you don't think you need to test nulls in both at once, then I'm good with this as-is.
If there's a chance that there's connections in the logic, I would recommend you make a 3rd test case that has a 2-entry SAN and a CN, such that the CN and SAN[0] are reasonable, and SAN[1] has an embedded null -- that is exactly what I'd do, if I were trying to confuse a browser.
![]() |
Assignee | |
Updated•10 years ago
|
Assignee: nobody → dkeeler
QA Contact: dkeeler
![]() |
Assignee | |
Comment 3•10 years ago
|
||
Thanks for the review!
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cf062fab5dbb
Comment 5•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•