Eliminate use of enablePrivilege in mochitest

NEW
Unassigned

Status

Testing
Mochitest
10 years ago
3 months ago

People

(Reporter: bz, Unassigned)

Tracking

(Depends on: 1 bug, Blocks: 2 bugs)

Firefox Tracking Flags

(Not tracked)

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.
Component: Testing → Mochitest
Product: Core → Testing
QA Contact: testing → mochitest
Version: Trunk → unspecified
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.

Updated

9 years ago
Depends on: 533306

Updated

9 years ago
Blocks: 546848
bug 523896 would be a great way to fix this, IMO.
Assignee: benjamin → ted.mielczarek
Depends on: 523896
No longer depends on: 533306
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
Depends on: 621362

Updated

7 years ago
Depends on: 649124

Updated

7 years ago
Depends on: 649563

Updated

7 years ago
Depends on: 653145

Updated

7 years ago
Depends on: 508710

Updated

7 years ago
Depends on: 451630

Updated

7 years ago
Depends on: 657973
Depends on: 659263
Depends on: 659315
Depends on: 659338
Depends on: 659341

Updated

7 years ago
Blocks: 429070

Updated

6 years ago
Depends on: 750638

Updated

6 years ago
No longer depends on: 750638

Updated

6 years ago
Depends on: 750638

Updated

6 years ago
Depends on: 791975
Depends on: 844505
No longer depends on: 645695
Depends on: 871323
Depends on: 1149966
No longer depends on: 659341
No longer depends on: 649563
No longer depends on: 451630
Depends on: 1365199
Assignee: ted → nobody
You need to log in before you can comment on or make changes to this bug.