Closed
Bug 766781
Opened 13 years ago
Closed 13 years ago
Show compatibility warning if an add-on uses nsILocalFile
Categories
(addons.mozilla.org Graveyard :: Compatibility Tools, defect)
addons.mozilla.org Graveyard
Compatibility Tools
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jorgev, Assigned: basta)
Details
(Whiteboard: [fx14])
As explained in bug 682360, nsILocalFile no longer serves any purpose and might be deprecated in the future. We need to flag all instances of this interface and show a warning.
This is a compatibility warning, so the add-on should still be upgraded in this case.
Message:
Starting with Firefox 14, nsILocalFile inherits all functions and attributes from nsIFile, meaning that you no longer need to use nsILocalFile. If your add-on doesn't support versions older than 14, you should use nsIFile instead of nsILocalFile. See <LINK> for more information.
Link: https://bugzilla.mozilla.org/show_bug.cgi?id=682360
Affected add-on:
https://addons.mozilla.org/en-US/firefox/addon/chatzilla/ (and many others).
| Assignee | ||
Comment 1•13 years ago
|
||
Since nsILocalFile is going away, are we removing the test for `nsILocalFile.launch()`?
| Reporter | ||
Comment 2•13 years ago
|
||
We should actually extend it to include nsIFile.launch() as well. nsILocalFile will continue to exist for the foreseen future.
Comment 3•13 years ago
|
||
We should probably move it to nsIFile.launch and add inheritance information for all interfaces that we have checks for. I can probably write a script to do that.
| Assignee | ||
Comment 4•13 years ago
|
||
Pull request:
https://github.com/mozilla/amo-validator/pull/161
| Assignee | ||
Comment 5•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 6•13 years ago
|
||
verified fixed at https://addons-dev.allizom.org/en-US/developers/upload/78c2c3e597f241a288c14a6c609e4fa9
Status: RESOLVED → VERIFIED
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•