Closed Bug 1084083 Opened 10 years ago Closed 2 years ago

Warn on instances of `getService(Ci.nsIPrefBranch).getBranch`

Categories

(addons.mozilla.org Graveyard :: Compatibility Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: kmag, Unassigned)

References

Details

The compartment-per-add-on changes are breaking some add-ons which assume that the preference service has already been QueryInterfaced to `nsIPrefService` in browser.xul compartments. This warning needs to be emitted when `getBranch` is called on an object which has been QueryInterfaced to `nsIPrefBranch` but not to `nsIPrefService`. A string test will not work here.
Blocks: 1083561
Product: addons.mozilla.org → addons.mozilla.org Graveyard

This bug lies at rest in the graveyard.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.