[Pkg-mozext-commits] [requestpolicy] 43/257: [fix] jquery: take original file, don't preprocess
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:19:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit d19af5a1552499d133f7a654cba4f232a4dcd916
Author: Martin Kimmerle <dev at 256k.de>
Date: Mon Aug 10 22:43:21 2015 +0200
[fix] jquery: take original file, don't preprocess
The AMO validator shows many warnings about the jQuery file.
Actually the AMO validator accepts libraries such as jQuery, but
it only gets detected if the SHA-256 hash of the file in the XPI
matches the expected hash.
* Take the correct file into the repository. In the old version
the Carriage Return was not present.
* Do not preprocess the file when creating the XPI.
---
Makefile | 3 ++-
src/content/settings/jquery.min.js | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index f102f73..d837f0f 100644
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,8 @@ src__copy_files := \
$(wildcard $(source_dirname)/locale/*/*.properties) \
$(wildcard $(source_dirname)/skin/*.css) \
$(wildcard $(source_dirname)/skin/*.png) \
- $(wildcard $(source_dirname)/skin/*.svg)
+ $(wildcard $(source_dirname)/skin/*.svg) \
+ $(shell find $(source_dirname) -type f -iname "jquery*.js")
# JavaScript files which will be (pre)processed.
# The `copy_files` will be filtered out.
diff --git a/src/content/settings/jquery.min.js b/src/content/settings/jquery.min.js
index f121291..066d72c 100644
--- a/src/content/settings/jquery.min.js
+++ b/src/content/settings/jquery.min.js
@@ -1,2 +1,2 @@
-/*! jQuery v at 1.8.0 jquery.com | jquery.org/license */
+/*! jQuery v at 1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){retur [...]
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list