[mozilla-noscript] update to new version (#712331)

tomspur tomspur at fedoraproject.org
Fri Sep 30 13:48:17 UTC 2011


commit d5aba1605ace783a66268a9e5f97e350c0e41a26
Author: Thomas Spura <thomas.spura at gmail.com>
Date:   Fri Sep 30 15:47:56 2011 +0200

    update to new version (#712331)

 .gitignore            |    1 +
 mozilla-noscript.spec |   11 ++++++++---
 sources               |    2 +-
 3 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ad6b555..772277a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ noscript-2.0.xpi
 /noscript-2.0.9.2.xpi
 /noscript-2.0.9.9.xpi
 /noscript-2.1.1.xpi
+/noscript-2.1.4.xpi
diff --git a/mozilla-noscript.spec b/mozilla-noscript.spec
index 2b16f68..75def36 100644
--- a/mozilla-noscript.spec
+++ b/mozilla-noscript.spec
@@ -12,7 +12,7 @@
 %global extension_id \{73a6fe31-595d-460b-a920-fcc0f8843232\}
 
 Name:           mozilla-noscript
-Version:        2.1.1
+Version:        2.1.4
 Release:        1%{?dist}
 Summary:        JavaScript white list extension for Mozilla Firefox
 
@@ -21,7 +21,6 @@ License:        GPLv2+
 URL:            http://noscript.net/
 # Source is a .xpi file, there is no public VCS or a tarball
 Source0:        https://secure.informaction.com/download/releases/noscript-%{version}.xpi
-Patch0:         noscript-preferences.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -43,7 +42,10 @@ provides Anti-XSS protection.
 
 %prep
 %setup -q -c
-%patch0 -b .prefs
+
+# don't use default whitelisting
+sed -i 's/pref("noscript.default", "[a-z :.]*/pref("noscript.default", "about:blank about:credits/g' defaults/preferences/noscript.js
+
 dos2unix -f GPL.txt
 dos2unix NoScript_License.txt
 
@@ -77,6 +79,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Fri Sep 30 2011 Thomas Spura <tomspur at fedoraproject.org> - 2.1.4-1
+- update to new version (#712331)
+
 * Fri Aug  5 2011 Thomas Spura <tomspur at fedoraproject.org> - 2.1.1-2
 - change the macros to match MozillaExtensionsDraft
 
diff --git a/sources b/sources
index 3c1e695..108e34a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8cc5a8877cd7b82c87934694bb92c605  noscript-2.1.1.xpi
+dc9be00f29881f64379a63cb58bfdaa4  noscript-2.1.4.xpi


More information about the scm-commits mailing list