diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-08-05 07:38:02 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-08-05 07:38:02 -0300 |
commit | 70677114ce3ca4a367aaa3e16cccecb75f5cb729 (patch) | |
tree | afcf550f421c8be4d6867a5e685db2ccfd92cd1c /libre/icecat | |
parent | 4d5afcf911136c0fd9b98fecd98deb7d60ef9534 (diff) | |
download | abslibre-70677114ce3ca4a367aaa3e16cccecb75f5cb729.tar.gz abslibre-70677114ce3ca4a367aaa3e16cccecb75f5cb729.tar.bz2 abslibre-70677114ce3ca4a367aaa3e16cccecb75f5cb729.zip |
icecat: disable spoofSource referer since it breaks referer function used by some sites - Bug #1073 -> https://labs.parabola.nu/issues/1073
Diffstat (limited to 'libre/icecat')
-rw-r--r-- | libre/icecat/PKGBUILD | 10 | ||||
-rw-r--r-- | libre/icecat/disable-spoofSource-referer.patch | 26 |
2 files changed, 34 insertions, 2 deletions
diff --git a/libre/icecat/PKGBUILD b/libre/icecat/PKGBUILD index cf6d0917b..e44a520db 100644 --- a/libre/icecat/PKGBUILD +++ b/libre/icecat/PKGBUILD @@ -45,7 +45,8 @@ source=(http://ftp.gnu.org/gnu/gnuzilla/$_pkgver/$pkgname-$_pkgver.tar.bz2{,.sig vendor.js $pkgname-fixed-loading-icon.png remove-google-play-services-support.patch - disable-crypto-hardening-settings.patch) + disable-crypto-hardening-settings.patch + disable-spoofSource-referer.patch) sha256sums=('0b0a323c7e167c3d23df9c1d33d2ca2d8c5deaca3f43841f4b2a5fac7f5067f9' 'SKIP' 'ced9ddfe6458524cf4f26f86d9bda8f0bcb747c233dc161df6af9ab56dd166ef' @@ -60,7 +61,8 @@ sha256sums=('0b0a323c7e167c3d23df9c1d33d2ca2d8c5deaca3f43841f4b2a5fac7f5067f9' '977aa49b940f1da049cefa2878a63ac6669a78e63e9d55bb11db7b8f8fb64c33' '68e3a5b47c6d175cc95b98b069a15205f027cab83af9e075818d38610feb6213' '9e651b0f7e7d9d663e8b24077d52bad15f011871747743aff60d6e2d7a45ae5b' - '0166aa368420f0bf0aab064b2188e3d852b241efeeb27dee66df2bc15e84b83a') + '0166aa368420f0bf0aab064b2188e3d852b241efeeb27dee66df2bc15e84b83a' + 'c50043266e69f5844e6dce9ea7193af79587dcaa66806932d7867281a176f03e') validpgpkeys=( 'A57369A8BABC2542B5A0368C3C76EED7D7E04784' # Ruben Rodriguez 'C92BAA713B8D53D3CAE63FC9E6974752F9704456' # André Silva @@ -115,6 +117,10 @@ prepare() { # https://lists.parabola.nu/pipermail/assist/2015-October/000534.html # https://labs.parabola.nu/issues/842 patch -Np1 -i "$srcdir/disable-crypto-hardening-settings.patch" + + # Disable spoofSource referer since it breaks referer function used by some sites + # https://labs.parabola.nu/issues/1073 + patch -Np1 -i "$srcdir/disable-spoofSource-referer.patch" } build() { diff --git a/libre/icecat/disable-spoofSource-referer.patch b/libre/icecat/disable-spoofSource-referer.patch new file mode 100644 index 000000000..d239b02f1 --- /dev/null +++ b/libre/icecat/disable-spoofSource-referer.patch @@ -0,0 +1,26 @@ +diff --git a/browser/app/profile/icecat.js b/browser/app/profile/icecat.js +index 6b81444..42dd5ed 100644 +--- a/browser/app/profile/icecat.js ++++ b/browser/app/profile/icecat.js +@@ -2011,7 +2011,7 @@ pref("datareporting.policy.dataSubmissionEnabled", false); + pref("datareporting.healthreport.service.enabled", false); + pref("browser.slowStartup.notificationDisabled", true); + pref("network.http.sendRefererHeader", 2); +-pref("network.http.referer.spoofSource", true); ++//pref("network.http.referer.spoofSource", true); + //http://grack.com/blog/2010/01/06/3rd-party-cookies-dom-storage-and-privacy/ + //pref("dom.storage.enabled", false); + pref("dom.event.clipboardevents.enabled",false); +diff --git a/mobile/android/app/mobile.js b/mobile/android/app/mobile.js +index cfdeb22..f5845d4 100644 +--- a/mobile/android/app/mobile.js ++++ b/mobile/android/app/mobile.js +@@ -973,7 +973,7 @@ pref("datareporting.policy.dataSubmissionEnabled", false); + pref("datareporting.healthreport.service.enabled", false); + pref("browser.slowStartup.notificationDisabled", true); + pref("network.http.sendRefererHeader", 2); +-pref("network.http.referer.spoofSource", true); ++//pref("network.http.referer.spoofSource", true); + //http://grack.com/blog/2010/01/06/3rd-party-cookies-dom-storage-and-privacy/ + //pref("dom.storage.enabled", false); + pref("dom.event.clipboardevents.enabled",false); |