Closed
Bug 1244357
Opened 10 years ago
Closed 10 years ago
Shim the certificate database in xpcshell tests
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
mozilla47
People
(Reporter: mossop, Assigned: mossop)
Details
Attachments
(1 file)
|
58 bytes,
text/x-review-board-request
|
rhelmer
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details |
The xpcshell tests generate and modify a lot of add-ons on the fly. When signing becomes mandatory they will suddenly all fail to work unless we also sign them. But switching from generated extensions to in-tree ones would be a lot of work even ignoring getting them signed.
In xpcshell tests though we have the ability to shim certain xpcom components and the certificate database we use to verify XPI signatures is one of them. This can't work for the other test suites because it has already been loaded by the time the test harness runs.
With this approach we can effectively force the add-ons manager to believe that add-ons are signed even though they have no signature.
| Assignee | ||
Comment 1•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/33101/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/33101/
Attachment #8714474 -
Flags: review?(rhelmer)
| Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8714474 [details]
MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/33101/diff/1-2/
| Assignee | ||
Updated•10 years ago
|
Attachment #8714474 -
Flags: review?(rhelmer)
| Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8714474 [details]
MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/33101/diff/2-3/
Attachment #8714474 -
Flags: review?(rhelmer)
Comment 4•10 years ago
|
||
Comment on attachment 8714474 [details]
MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
https://reviewboard.mozilla.org/r/33101/#review30473
Attachment #8714474 -
Flags: review?(rhelmer) → review+
| Assignee | ||
Updated•10 years ago
|
Attachment #8714474 -
Attachment description: MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r?rhelmer → MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
| Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8714474 [details]
MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/33101/diff/3-4/
| Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8714474 [details]
MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
Can't figure out how to re-request review in review board. Can you skim over the last interdiff, it just makes the cache flush test ignore flushes from the fake certificate db.
Attachment #8714474 -
Flags: review+ → review?(rhelmer)
Comment 9•10 years ago
|
||
Comment on attachment 8714474 [details]
MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
https://reviewboard.mozilla.org/r/33101/#review30873
Attachment #8714474 -
Flags: review?(rhelmer) → review+
Comment 11•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
| Assignee | ||
Comment 12•10 years ago
|
||
Comment on attachment 8714474 [details]
MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
Approval Request Comment
[Feature/regressing bug #]: Signed add-ons
[User impact if declined]: This is needed to force signing on in 46
[Describe test coverage new/current, TreeHerder]: On m-c for a while
[Risks and why]: Very low, mostly test only changes
[String/UUID change made/needed]: None
Attachment #8714474 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
status-firefox46:
--- → affected
Comment 13•10 years ago
|
||
Comment on attachment 8714474 [details]
MozReview Request: Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
We want our tests to work for sure. Approved for uplift to aurora.
Attachment #8714474 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 14•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•