Closed Bug 691567 Opened 14 years ago Closed 14 years ago

Show compatibility warning if an add-on uses taintEnabled

Categories

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

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jorgev, Assigned: ashort)

Details

(Whiteboard: [fx9])

As explained in bug 679971, navigator.taintEnabled has been removed. We need to check for all calls of the taintEnabled function and show a compatibility warning. This is a compatibility warning, so the add-on should still be upgraded in this case. Message: The taintEnabled function is no longer available in Firefox 9. Since this function was only used for browser detection and this doesn't belong in extension code, you should remove it if possible. For more information, please see <LINK>. Link: https://bugzilla.mozilla.org/show_bug.cgi?id=679971 Affected add-on: https://addons.mozilla.org/en-US/firefox/addon/local-load/
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
I don't see any warnings while validating for navigator.taintEnabled See https://addons-dev.allizom.org/en-US/developers/upload/7264a673146f45978320fdf44e9f79d9
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Krupa / Jorge : this addon, local_load does not use navigator.taintEnabled but it includes mootools.js which does. I believe that the validator has code to ignore known third party libraries. Can you find (or create) and addon that uses navigator.taintEnabled directly?
A bit of debugging reveals that the validator does in fact skip the mootools files that mention taintEnabled.
I used FireClip and it seems to work. See https://addons-dev.allizom.org/en-US/developers/upload/03edcd550aec4abf933dda77e6f22e0b Moving this back to Resolved.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Hrm. While I don't care too much about this warning, it should mostly occur within library code. I think we'll need to figure out a way to make an exception to the library code rule when doing compat checks.
For the future, that is. I'll file a bug.
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.