Mozilla Add-Ons Rejecting jQuery (Although Not Changed)

(Please note that this is for Q & A's answer for the problem I encountered)

After trying to submit WebExtension for Mozilla add-ons to a public list, the publication was rejected by the reviewer with the following message:

Your add-on includes a JavaScript library file that does not match the versions we know. We require all add-ons to use versions without modification.

We accept jQuery / jQuery-UI libraries downloaded from 'ajax.googleapis.com', 'jquery.com' or 'jqueryui.com'; and is used without any changes (downloaded and not copied). Minimized versions are better. (changing the file name does not matter)

Sorry, we cannot accept modified, reconfigured, or customized libraries.

Another symptom of the same problem: a few warnings "Insecure innerHTML targeting" on initial validation coming from jQuery.

enter image description here

However, this file did indeed download as a release, a reduced version from jquery.com and was not intentionally modified. So what happened?

+6
source share
1 answer

It turns out that even if you do not manually modify the files, you may encounter a situation where gitit does this for you.

, CRLF jQuery, :

  • jQuery .
  • : .
  • AMO; , .

, jQuery , Git , /.

  • .gitattributes - , jQuery, , jquery.min.js - :

    jquery.min.js -text
    
  • jQuery .gitattributes.

-.

, :

enter image description here

+7

All Articles