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)

defect
Not set
normal

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).
Since nsILocalFile is going away, are we removing the test for `nsILocalFile.launch()`?
We should actually extend it to include nsIFile.launch() as well. nsILocalFile will continue to exist for the foreseen future.
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.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.