Show compatibility warning if an add-on uses nsIPrefBranch2

VERIFIED FIXED in 2012-05-17

Status

addons.mozilla.org Graveyard
Compatibility Tools
VERIFIED FIXED
6 years ago
2 years ago

People

(Reporter: jorgev, Assigned: basta)

Tracking

unspecified
2012-05-17

Details

(Whiteboard: [fx13])

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
As explained in bug 718255, nsIPrefBranch2 has been merged into nsIPrefBranch. nsIPrefBranch2 will continue to work as a proxy, so no breakage should occur. We need to flag all instances of this interface calls and show a warning.

This is a compatibility warning, so the add-on should still be upgraded in this case.

Message:

The nsIPrefBranch2 interface has been merged into the nsIPrefBranch interface in Firefox 13. Once you drop support for older versions of Firefox, you should stop using nsIPrefBranch2. You can use the == operator as an alternative. See <LINK> for more information.

Link: https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIPrefBranch2

Affected add-on:

https://addons.mozilla.org/en-US/firefox/addon/download-statusbar/ (and most others).
(Assignee)

Comment 1

6 years ago
Done:

https://github.com/mozilla/amo-validator/pull/150
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED

Comment 2

6 years ago
verified fixed at https://addons-dev.allizom.org/en-US/developers/upload/d8524b159a744d20bcc5d6ab5b1f8623
Status: RESOLVED → VERIFIED

Comment 3

6 years ago
Created attachment 626902 [details]
post-fix screenshot

Updated

5 years ago
Blocks: 827444
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.