Closed
Bug 462483
Opened 16 years ago
Closed 5 years ago
Eliminate use of enablePrivilege in mochitest
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bzbarsky, Unassigned)
References
(Blocks 1 open bug)
Details
As discussed in today's meeting, we want to nuke enablePrivilege from orbit. This means that we need a different solution for mochitests. Some of these should probably just be chrome tests. For others we were considering exposing some sort of global object that can be used to evaluate privileged code (especially including EventUtils stuff) or something.
Updated•16 years ago
|
Component: Testing → Mochitest
Product: Core → Testing
QA Contact: testing → mochitest
Version: Trunk → unspecified
Comment 1•15 years ago
|
||
I think if we could provide a privileged object with test-only APIs that we could hack whatever we needed into it (like most of the helpers in SimpleTest.js), we would not need any privileged code in tests.
Comment 2•15 years ago
|
||
bug 523896 would be a great way to fix this, IMO.
Updated•15 years ago
|
Depends on: 549539
Comment 3•14 years ago
|
||
For the record, since this bug hasn't been updated in a year, bug 582472 added a "SpecialPowers" object that has privileges, and we're going to add a bunch of APIs to it and fix all the tests. Bugs blocking this one will track that work.
Updated•7 years ago
|
Assignee: ted → nobody
Comment 4•5 years ago
|
||
We've already done.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•