summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@gnu.org>2015-07-23 11:57:18 -0500
committerRuben Rodriguez <ruben@gnu.org>2015-10-12 23:20:25 -0500
commit50557a44e8257abc03913ed5b0828e9fa509dc85 (patch)
treead3e0de888a7925c17bd522a339d8837a470f145
parent6a6d63d8f2e6e04644fcf93d9937508af6eefff2 (diff)
Finished v38 initial rebase
-rw-r--r--data/branding/icecat/LICENSE3
-rw-r--r--data/branding/icecat/Makefile.in9
-rw-r--r--data/branding/icecat/bgplain.bmpbin682144 -> 0 bytes
-rw-r--r--data/branding/icecat/branding.nsi15
-rw-r--r--data/branding/icecat/clock.bmpbin124214 -> 8982 bytes
-rw-r--r--data/branding/icecat/content/about-background.pngbin122354 -> 0 bytes
-rw-r--r--data/branding/icecat/content/jar.mn1
-rw-r--r--data/branding/icecat/content/silhouette-40.svg58
-rw-r--r--data/branding/icecat/document-os2.icobin7824 -> 0 bytes
-rw-r--r--data/branding/icecat/icecat-os2.icobin7824 -> 0 bytes
-rw-r--r--data/branding/icecat/locales/Makefile.in5
-rw-r--r--data/branding/icecat/locales/en-US/brand.dtd5
-rw-r--r--data/branding/icecat/locales/en-US/brand.properties5
-rw-r--r--data/branding/icecat/locales/jar.mn7
-rw-r--r--data/branding/icecat/locales/moz.build2
-rw-r--r--data/branding/icecat/moz.build5
-rw-r--r--data/branding/icecat/particles.bmpbin124216 -> 8982 bytes
-rw-r--r--data/branding/icecat/pencil-rtl.bmpbin124214 -> 8982 bytes
-rw-r--r--data/branding/icecat/pencil.bmpbin124214 -> 8982 bytes
-rw-r--r--data/branding/icecat/pref/icecat-branding.js5
-rw-r--r--data/branding/icecatmobile/locales/Makefile.in5
l---------data/branding/icecatmobile/res/drawable-hdpi/large_icon.png1
-rw-r--r--data/branding/icecatmobile/res/drawable-hdpi/launcher_widget.pngbin0 -> 16525 bytes
-rw-r--r--data/branding/icecatmobile/res/drawable-hdpi/widget_icon.pngbin0 -> 6440 bytes
l---------data/branding/icecatmobile/res/drawable-mdpi/large_icon.png1
-rw-r--r--data/branding/icecatmobile/res/drawable-mdpi/launcher_widget.pngbin0 -> 8223 bytes
-rw-r--r--data/branding/icecatmobile/res/drawable-mdpi/widget_icon.pngbin0 -> 3249 bytes
l---------data/branding/icecatmobile/res/drawable-xhdpi/large_icon.png1
-rw-r--r--data/branding/icecatmobile/res/drawable-xhdpi/launcher_widget.pngbin0 -> 22120 bytes
-rw-r--r--data/branding/icecatmobile/res/drawable-xhdpi/widget_icon.pngbin0 -> 9300 bytes
-rw-r--r--data/branding/icecatmobile/res/drawable-xxhdpi/large_icon.pngbin0 -> 13024 bytes
-rw-r--r--data/branding/icecatmobile/res/drawable-xxhdpi/launcher_widget.pngbin0 -> 33659 bytes
-rw-r--r--data/branding/icecatmobile/res/drawable-xxhdpi/widget_icon.pngbin0 -> 17803 bytes
-rw-r--r--data/branding/icecatmobile/res/drawable-xxxhdpi/icon.pngbin0 -> 36606 bytes
-rw-r--r--data/buildscripts/buildall.sh14
-rw-r--r--data/buildscripts/mozconfig-android13
-rw-r--r--data/buildscripts/mozconfig-common2
-rw-r--r--data/buildscripts/toolchain-android.sh14
-rw-r--r--data/extensions/spyblock@gnu.org/lib/utils.js12
-rw-r--r--data/patches/gnuzilla-bug-1172632-1.patch43
-rw-r--r--data/patches/gnuzilla-bug-1172632-2.patch223
-rw-r--r--data/patches/reorder-android-services.mozbuild.patch35
-rw-r--r--data/settings.js45
-rw-r--r--data/vendor.js171
-rw-r--r--makeicecat35
45 files changed, 659 insertions, 76 deletions
diff --git a/data/branding/icecat/LICENSE b/data/branding/icecat/LICENSE
index e69de29..41dc232 100644
--- a/data/branding/icecat/LICENSE
+++ b/data/branding/icecat/LICENSE
@@ -0,0 +1,3 @@
+This Source Code Form is subject to the terms of the Mozilla Public
+License, v. 2.0. If a copy of the MPL was not distributed with this
+file, You can obtain one at http://mozilla.org/MPL/2.0/.
diff --git a/data/branding/icecat/Makefile.in b/data/branding/icecat/Makefile.in
index 3b5c4d5..d858c5b 100644
--- a/data/branding/icecat/Makefile.in
+++ b/data/branding/icecat/Makefile.in
@@ -12,7 +12,6 @@ BRANDING_FILES := \
branding.nsi \
appname.bmp \
bgintro.bmp \
- bgplain.bmp \
clock.bmp \
particles.bmp \
pencil.bmp \
@@ -45,13 +44,6 @@ BRANDING_FILES := \
$(NULL)
endif
-ifeq ($(OS_ARCH),OS2)
-BRANDING_FILES := \
- icecat-os2.ico \
- document-os2.ico \
- $(NULL)
-endif
-
BRANDING_DEST := $(DIST)/branding
BRANDING_TARGET := export
INSTALL_TARGETS += BRANDING
@@ -62,4 +54,3 @@ VISUALMANIFEST_FLAGS := -Fsubstitution -DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNA
VISUALMANIFEST_PATH := $(DIST)/bin
PP_TARGETS += VISUALMANIFEST
endif
-
diff --git a/data/branding/icecat/bgplain.bmp b/data/branding/icecat/bgplain.bmp
deleted file mode 100644
index c82f896..0000000
--- a/data/branding/icecat/bgplain.bmp
+++ /dev/null
Binary files differ
diff --git a/data/branding/icecat/branding.nsi b/data/branding/icecat/branding.nsi
index 9b6ab6a..57a76b2 100644
--- a/data/branding/icecat/branding.nsi
+++ b/data/branding/icecat/branding.nsi
@@ -8,13 +8,11 @@
# BrandFullNameInternal is used for some registry and file system values
# instead of BrandFullName and typically should not be modified.
-!define BrandFullNameInternal "IceCat"
+!define BrandFullNameInternal "GNU IceCat"
!define CompanyName "GNU"
!define URLInfoAbout "http://www.gnu.org/software/gnuzilla/"
-!define URLUpdateInfo "http://www.gnu.org/software/gnuzilla/"
-
-!define URLStubDownload "http://www.gnu.org/software/gnuzilla/"
-!define URLManualDownload "http://ftp.gnu.org/gnu/gnuzilla/"
+!define URLUpdateInfo "https://savannah.gnu.org/projects/gnuzilla/"
+!define HelpLink "http://libreplanet.org/wiki/Group:IceCat/ "
; The OFFICIAL define is a workaround to support different urls for Release and
; Beta since they share the same branding when building with other branches that
@@ -42,9 +40,8 @@
!define FOOTER_CONTROL_TEXT_COLOR_FADED 0x666666
!define FOOTER_BKGRD_COLOR 0xFFFFFF
!define INTRO_BLURB_TEXT_COLOR 0x666666
-!define OPTIONS_TEXT_COLOR_NORMAL 0x000000
-!define OPTIONS_TEXT_COLOR_FADED 0x666666
-!define OPTIONS_BKGRD_COLOR 0xF0F0F0
!define INSTALL_BLURB_TEXT_COLOR 0x666666
!define INSTALL_PROGRESS_TEXT_COLOR_NORMAL 0x666666
-!define INSTALL_PROGRESS_TEXT_COLOR_FADED 0x999999
+!define COMMON_TEXT_COLOR_NORMAL 0x000000
+!define COMMON_TEXT_COLOR_FADED 0x666666
+!define COMMON_BKGRD_COLOR 0xF0F0F0
diff --git a/data/branding/icecat/clock.bmp b/data/branding/icecat/clock.bmp
index c74398e..7da034d 100644
--- a/data/branding/icecat/clock.bmp
+++ b/data/branding/icecat/clock.bmp
Binary files differ
diff --git a/data/branding/icecat/content/about-background.png b/data/branding/icecat/content/about-background.png
deleted file mode 100644
index f626f74..0000000
--- a/data/branding/icecat/content/about-background.png
+++ /dev/null
Binary files differ
diff --git a/data/branding/icecat/content/jar.mn b/data/branding/icecat/content/jar.mn
index b692816..fec1857 100644
--- a/data/branding/icecat/content/jar.mn
+++ b/data/branding/icecat/content/jar.mn
@@ -15,6 +15,7 @@ browser.jar:
content/branding/icon128.png (../mozicon128.png)
content/branding/identity-icons-brand.png (identity-icons-brand.png)
content/branding/identity-icons-brand@2x.png (identity-icons-brand@2x.png)
+ content/branding/silhouette-40.svg (silhouette-40.svg)
content/branding/aboutDialog.css (aboutDialog.css)
#ifdef MOZ_METRO
content/branding/metro-about.css (metro-about.css)
diff --git a/data/branding/icecat/content/silhouette-40.svg b/data/branding/icecat/content/silhouette-40.svg
new file mode 100644
index 0000000..72d2291
--- /dev/null
+++ b/data/branding/icecat/content/silhouette-40.svg
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ x="0px"
+ y="0px"
+ viewBox="-45 31 40 40"
+ enable-background="new -45 31 40 40"
+ id="svg2"
+ inkscape:version="0.48.4 r9939"
+ width="100%"
+ height="100%"
+ sodipodi:docname="silhouette-40.svg">
+ <metadata
+ id="metadata10">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs8" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1364"
+ inkscape:window-height="711"
+ id="namedview6"
+ showgrid="false"
+ inkscape:zoom="13.597656"
+ inkscape:cx="20"
+ inkscape:cy="20"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2" />
+ <path
+ style="fill:#cccccc;fill-opacity:1"
+ d="m -29.459925,62.826172 c -4.282871,-1.498444 -7.01554,-5.271633 -7.038444,-9.718502 -0.0069,-1.336809 0.192968,-2.876549 0.48876,-3.765461 0.275225,-0.827077 0.712775,-2.451219 0.972332,-3.609184 0.766254,-3.418421 2.81783,-5.875581 5.79156,-6.936486 2.71284,-0.967833 7.410895,-0.263677 9.569525,1.434298 0.731058,0.57505 0.839662,0.590069 1.085873,0.150115 0.240694,-0.430097 0.432202,-0.377031 1.593597,0.441595 1.121801,0.790717 1.572211,0.924624 2.999426,0.89172 0.923673,-0.02127 1.679404,0.06969 1.679404,0.202194 0,0.132503 -0.332903,0.692117 -0.739783,1.243652 -0.406881,0.551479 -0.829045,1.626681 -0.938144,2.389329 -0.109101,0.76265 -0.476233,1.690884 -0.815854,2.062731 -0.564659,0.61822 -0.587327,0.806767 -0.264919,2.20349 0.604832,2.620302 0.439528,4.871804 -0.584387,7.959636 -1.041195,3.139961 -2.179996,4.686981 -3.844982,5.223227 -1.584569,0.510408 -8.336739,0.393455 -9.953964,-0.172354 z m 5.669233,-1.663126 -0.3825,-0.692466 -0.171999,0.902282 c -0.123252,0.646598 -0.04155,0.95458 0.28829,1.086823 0.608784,0.244005 0.746551,-0.427023 0.266209,-1.296639 z m 3.352123,1.284001 c 0,-0.278645 -0.82974,-1.224594 -1.074165,-1.224594 -0.07089,0 -0.128899,0.338391 -0.128899,0.75193 0,0.551423 0.160408,0.75193 0.601532,0.75193 0.330842,0 0.601532,-0.125698 0.601532,-0.279266 z m 1.884127,-0.502057 c 0.240948,-0.240958 -0.0744,-1.023297 -0.412477,-1.023297 -0.147724,0 -0.268587,0.27069 -0.268587,0.601577 0,0.586232 0.319012,0.783749 0.681064,0.42172 z m -7.179229,-0.597967 c 0.100673,-0.262341 0.07,-0.678983 -0.06816,-0.925865 -0.206691,-0.369364 -0.337239,-0.317573 -0.736738,0.292129 -0.267046,0.407559 -0.40235,0.824201 -0.30068,0.925865 0.341831,0.341832 0.921037,0.188771 1.105583,-0.292129 z m -5.206852,-1.555369 c -3.206778,-3.206816 -4.013595,-7.760032 -1.713328,-9.669081 0.855182,-0.70973 1.643643,-0.05585 2.941517,2.438582 2.813889,5.408671 5.089386,7.494362 8.206872,7.522402 1.716451,0.01523 2.799811,-0.463412 3.836249,-1.695566 0.854132,-1.015455 1.742132,-3.696519 1.742132,-5.259898 0,-2.411897 -0.296643,-3.348029 -1.165658,-3.678409 -2.086591,-0.793341 -2.840825,-1.317683 -3.227892,-2.244055 -0.594447,-1.422731 -1.016225,-1.548654 -1.820437,-0.543637 -0.846961,1.058501 -0.941663,3.50532 -0.208504,5.387119 0.782503,2.008457 1.451423,4.620183 1.237989,4.83361 -0.39178,0.391818 -1.758031,-0.198081 -2.013184,-0.869222 -0.142339,-0.374385 -0.475913,-0.860871 -0.741277,-1.081068 -0.265364,-0.220253 -0.482481,-0.636331 -0.482481,-0.924623 0,-0.288236 -0.265807,-0.862057 -0.590682,-1.275032 -0.685221,-0.871139 -1.189959,-2.641401 -1.481225,-5.195131 -0.300251,-2.632545 -0.675449,-3.158072 -2.254653,-3.158072 -1.446422,0 -3.023015,0.953284 -4.527204,2.737311 -2.811571,3.334715 -2.706233,8.708294 0.234598,11.967409 0.657167,0.728292 3.14076,2.438977 3.540969,2.438977 0.119802,0 -0.56141,-0.779236 -1.513801,-1.731616 z m 3.409983,0.170719 c 0.62654,-0.894497 0.420769,-0.986288 -0.692941,-0.308998 -0.514327,0.312777 -0.845396,0.658447 -0.735708,0.768122 0.383182,0.383186 0.970975,0.194301 1.428649,-0.459124 z m -1.254282,-1.388769 c 1.133918,-0.973819 0.27441,-1.331336 -0.945553,-0.393341 -0.409113,0.314526 -0.627399,0.703354 -0.505558,0.900476 0.225411,0.364738 0.580305,0.240733 1.451111,-0.507135 z M -30.21346,56.85203 c 0.496264,-0.406769 0.794068,-0.740251 0.661788,-0.741098 -0.473774,-0.0057 -2.015234,0.922084 -2.015234,1.209305 0,0.461494 0.379404,0.33021 1.353446,-0.468207 z m -0.150383,-2.002194 c 0,-0.366656 -1.894056,0.475316 -2.037534,0.90578 -0.08375,0.251227 0.224653,0.204625 0.956982,-0.144597 0.594303,-0.283385 1.080552,-0.62595 1.080552,-0.761183 z m -0.902298,-2.097426 c 0,-0.330888 -1.480537,0.692579 -1.494376,1.033057 -0.0052,0.127898 0.32891,0.01072 0.742463,-0.260197 0.413552,-0.270972 0.751913,-0.618728 0.751913,-0.77286 z m 2.603125,-9.825131 c -0.273771,-0.30251 -0.497763,-0.791218 -0.497763,-1.086005 0,-0.457697 0.09034,-0.432275 0.618514,0.174065 0.581847,0.667935 0.599677,0.671095 0.300765,0.05309 -0.519424,-1.07392 -0.362327,-1.415843 0.300767,-0.654621 0.616371,0.70758 0.617365,0.707675 0.286855,0.02708 -0.415677,-0.855957 -0.121476,-1.443961 0.474854,-0.949053 0.233403,0.193711 0.424371,0.51235 0.424371,0.70809 0,0.195739 0.356492,0.82205 0.792204,1.391842 0.435712,0.569758 0.696922,0.765245 0.580468,0.434357 -0.116454,-0.330831 -0.290592,-1.007569 -0.386972,-1.503832 l -0.175238,-0.902298 0.66581,0.589572 c 0.567604,0.502611 0.706789,0.524793 0.943611,0.150385 0.152791,-0.241556 0.279871,-0.288777 0.282405,-0.10494 0.0027,0.193786 0.320582,0.273848 0.756519,0.190514 0.483184,-0.09236 0.751916,-0.0071 0.751916,0.238703 0,0.255433 0.199766,0.201657 0.601532,-0.161936 0.341125,-0.308715 0.601532,-0.393996 0.601532,-0.196997 0,0.191062 0.33836,0.347383 0.751914,0.347383 1.219033,0 0.873478,-0.43289 -1.096272,-1.373338 -3.245522,-1.549558 -8.20055,-1.103455 -9.852504,0.887033 -0.464142,0.559253 -0.131294,1.310219 0.362056,0.816905 0.230613,-0.230612 0.483679,-0.08718 0.88242,0.500139 l 0.559076,0.823524 -0.164666,-1.203116 -0.164666,-1.203066 0.482221,1.052685 c 0.26522,0.579 0.637515,1.152144 0.827321,1.273667 0.580457,0.371678 0.613046,0.257093 0.09095,-0.31983 z m 13.938997,-0.05134 c 0.349548,-0.225894 0.258394,-0.29258 -0.404743,-0.29619 -0.470741,0 -1.254696,-0.240157 -1.742123,-0.528088 -0.776271,-0.458554 -0.921399,-0.467881 -1.169672,-0.0752 -0.438756,0.694001 -0.343574,1.015409 0.173592,0.586187 0.385152,-0.31966 0.553293,-0.299909 0.966746,0.113567 0.557349,0.557347 1.490332,0.642932 2.1762,0.199717 z m -17.143654,-0.433402 c 0,-0.07294 -0.135343,-0.216282 -0.300765,-0.318516 -0.165421,-0.102234 -0.300765,-0.04254 -0.300765,0.132631 0,0.175188 0.135344,0.318527 0.300765,0.318527 0.165422,0 0.300765,-0.05969 0.300765,-0.132642 z"
+ id="path2998"
+ inkscape:connector-curvature="0" />
+</svg>
diff --git a/data/branding/icecat/document-os2.ico b/data/branding/icecat/document-os2.ico
deleted file mode 100644
index 214e92c..0000000
--- a/data/branding/icecat/document-os2.ico
+++ /dev/null
Binary files differ
diff --git a/data/branding/icecat/icecat-os2.ico b/data/branding/icecat/icecat-os2.ico
deleted file mode 100644
index 560d198..0000000
--- a/data/branding/icecat/icecat-os2.ico
+++ /dev/null
Binary files differ
diff --git a/data/branding/icecat/locales/Makefile.in b/data/branding/icecat/locales/Makefile.in
deleted file mode 100644
index 82f614e..0000000
--- a/data/branding/icecat/locales/Makefile.in
+++ /dev/null
@@ -1,5 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-DEFINES += -DAB_CD=$(AB_CD)
diff --git a/data/branding/icecat/locales/en-US/brand.dtd b/data/branding/icecat/locales/en-US/brand.dtd
index 519de9b..3788266 100644
--- a/data/branding/icecat/locales/en-US/brand.dtd
+++ b/data/branding/icecat/locales/en-US/brand.dtd
@@ -2,7 +2,8 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+<!ENTITY brandShorterName "IceCat">
<!ENTITY brandShortName "IceCat">
-<!ENTITY brandFullName "IceCat">
+<!ENTITY brandFullName "GNU IceCat">
<!ENTITY vendorShortName "GNU">
-<!ENTITY trademarkInfo.part1 "">
+<!ENTITY trademarkInfo.part1 "The IceCat logo is Copyright 2008-2015 Free Software Foundation, released under the terms of the GNU Lesser General Public License, version 3 or any later version.">
diff --git a/data/branding/icecat/locales/en-US/brand.properties b/data/branding/icecat/locales/en-US/brand.properties
index 3120429..73ef208 100644
--- a/data/branding/icecat/locales/en-US/brand.properties
+++ b/data/branding/icecat/locales/en-US/brand.properties
@@ -2,9 +2,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+brandShorterName=IceCat
brandShortName=IceCat
-brandFullName=IceCat
-vendorShortName=GNU
+brandFullName=Mozilla IceCat
+vendorShortName=Mozilla
homePageSingleStartMain=IceCat Start, a fast home page with built-in search
homePageImport=Import your home page from %S
diff --git a/data/branding/icecat/locales/jar.mn b/data/branding/icecat/locales/jar.mn
index ff4e055..ff8c28c 100644
--- a/data/branding/icecat/locales/jar.mn
+++ b/data/branding/icecat/locales/jar.mn
@@ -6,7 +6,6 @@
@AB_CD@.jar:
% locale branding @AB_CD@ %locale/branding/
-# Unofficial branding only exists in en-US
- locale/branding/brand.dtd (en-US/brand.dtd)
- locale/branding/brand.properties (en-US/brand.properties)
- locale/branding/browserconfig.properties (browserconfig.properties)
+ locale/branding/brand.dtd (%brand.dtd)
+* locale/branding/brand.properties (%brand.properties)
+* locale/branding/browserconfig.properties (browserconfig.properties)
diff --git a/data/branding/icecat/locales/moz.build b/data/branding/icecat/locales/moz.build
index 3a54c0c..c97072b 100644
--- a/data/branding/icecat/locales/moz.build
+++ b/data/branding/icecat/locales/moz.build
@@ -4,6 +4,4 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-DEFINES['MOZ_DISTRIBUTION_ID_UNQUOTED'] = CONFIG['MOZ_DISTRIBUTION_ID']
-
JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file
diff --git a/data/branding/icecat/moz.build b/data/branding/icecat/moz.build
index 3e2f88f..408c1f0 100644
--- a/data/branding/icecat/moz.build
+++ b/data/branding/icecat/moz.build
@@ -8,3 +8,8 @@ DIRS += ['content', 'locales']
DIST_SUBDIR = 'browser'
export('DIST_SUBDIR')
+
+JS_PREFERENCE_FILES += [
+ 'pref/icecat-branding.js',
+]
+
diff --git a/data/branding/icecat/particles.bmp b/data/branding/icecat/particles.bmp
index ab74ce0..d523606 100644
--- a/data/branding/icecat/particles.bmp
+++ b/data/branding/icecat/particles.bmp
Binary files differ
diff --git a/data/branding/icecat/pencil-rtl.bmp b/data/branding/icecat/pencil-rtl.bmp
index e50d92d..67d2fe5 100644
--- a/data/branding/icecat/pencil-rtl.bmp
+++ b/data/branding/icecat/pencil-rtl.bmp
Binary files differ
diff --git a/data/branding/icecat/pencil.bmp b/data/branding/icecat/pencil.bmp
index 252c10f..7dd5574 100644
--- a/data/branding/icecat/pencil.bmp
+++ b/data/branding/icecat/pencil.bmp
Binary files differ
diff --git a/data/branding/icecat/pref/icecat-branding.js b/data/branding/icecat/pref/icecat-branding.js
index 58a869e..4c0eb17 100644
--- a/data/branding/icecat/pref/icecat-branding.js
+++ b/data/branding/icecat/pref/icecat-branding.js
@@ -1,3 +1,7 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
pref("startup.homepage_override_url","http://www.gnu.org");
pref("startup.homepage_welcome_url","http://www.gnu.org/software/gnuzilla/");
// The time interval between checks for a new version (in seconds)
@@ -22,3 +26,4 @@ pref("browser.search.param.yahoo-fr", "");
pref("browser.search.param.yahoo-fr-cjkt", ""); // now unused
pref("browser.search.param.yahoo-fr-ja", "");
pref("browser.search.param.yahoo-f-CN", "");
+
diff --git a/data/branding/icecatmobile/locales/Makefile.in b/data/branding/icecatmobile/locales/Makefile.in
deleted file mode 100644
index 82f614e..0000000
--- a/data/branding/icecatmobile/locales/Makefile.in
+++ /dev/null
@@ -1,5 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-DEFINES += -DAB_CD=$(AB_CD)
diff --git a/data/branding/icecatmobile/res/drawable-hdpi/large_icon.png b/data/branding/icecatmobile/res/drawable-hdpi/large_icon.png
new file mode 120000
index 0000000..fd11ee7
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-hdpi/large_icon.png
@@ -0,0 +1 @@
+../drawable-xxhdpi/icon.png \ No newline at end of file
diff --git a/data/branding/icecatmobile/res/drawable-hdpi/launcher_widget.png b/data/branding/icecatmobile/res/drawable-hdpi/launcher_widget.png
new file mode 100644
index 0000000..e4abfe6
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-hdpi/launcher_widget.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-hdpi/widget_icon.png b/data/branding/icecatmobile/res/drawable-hdpi/widget_icon.png
new file mode 100644
index 0000000..26c7ba8
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-hdpi/widget_icon.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-mdpi/large_icon.png b/data/branding/icecatmobile/res/drawable-mdpi/large_icon.png
new file mode 120000
index 0000000..79362e7
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-mdpi/large_icon.png
@@ -0,0 +1 @@
+../drawable-xhdpi/icon.png \ No newline at end of file
diff --git a/data/branding/icecatmobile/res/drawable-mdpi/launcher_widget.png b/data/branding/icecatmobile/res/drawable-mdpi/launcher_widget.png
new file mode 100644
index 0000000..f5875b5
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-mdpi/launcher_widget.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-mdpi/widget_icon.png b/data/branding/icecatmobile/res/drawable-mdpi/widget_icon.png
new file mode 100644
index 0000000..60b338d
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-mdpi/widget_icon.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-xhdpi/large_icon.png b/data/branding/icecatmobile/res/drawable-xhdpi/large_icon.png
new file mode 120000
index 0000000..1752843
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-xhdpi/large_icon.png
@@ -0,0 +1 @@
+../drawable-xxxhdpi/icon.png \ No newline at end of file
diff --git a/data/branding/icecatmobile/res/drawable-xhdpi/launcher_widget.png b/data/branding/icecatmobile/res/drawable-xhdpi/launcher_widget.png
new file mode 100644
index 0000000..60c09a5
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-xhdpi/launcher_widget.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-xhdpi/widget_icon.png b/data/branding/icecatmobile/res/drawable-xhdpi/widget_icon.png
new file mode 100644
index 0000000..630b94d
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-xhdpi/widget_icon.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-xxhdpi/large_icon.png b/data/branding/icecatmobile/res/drawable-xxhdpi/large_icon.png
new file mode 100644
index 0000000..9d303fb
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-xxhdpi/large_icon.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-xxhdpi/launcher_widget.png b/data/branding/icecatmobile/res/drawable-xxhdpi/launcher_widget.png
new file mode 100644
index 0000000..28943ed
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-xxhdpi/launcher_widget.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-xxhdpi/widget_icon.png b/data/branding/icecatmobile/res/drawable-xxhdpi/widget_icon.png
new file mode 100644
index 0000000..eb14f91
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-xxhdpi/widget_icon.png
Binary files differ
diff --git a/data/branding/icecatmobile/res/drawable-xxxhdpi/icon.png b/data/branding/icecatmobile/res/drawable-xxxhdpi/icon.png
new file mode 100644
index 0000000..ced8891
--- /dev/null
+++ b/data/branding/icecatmobile/res/drawable-xxxhdpi/icon.png
Binary files differ
diff --git a/data/buildscripts/buildall.sh b/data/buildscripts/buildall.sh
index 504a95f..a4bb372 100644
--- a/data/buildscripts/buildall.sh
+++ b/data/buildscripts/buildall.sh
@@ -14,11 +14,17 @@ function buildpackage(){
cat << EOF > $SRCDIR/run.sh
set -e
set -x
+
+export LD_PRELOAD="/usr/lib/libeatmydata/libeatmydata.so"
+
mkdir -p $HOME/ccache/$1-$3 || true
export CCACHE_DIR=$HOME/ccache/$1-$3
mkdir $SRCDIR/../../toolchains || true
cd $SRCDIR/../../toolchains
sh ../data/buildscripts/toolchain-${1}.sh
+cd $SRCDIR/python/compare-locales
+python setup.py install
+cp /usr/local/bin/compare* /usr/bin
cd $SRCDIR
sh ../../data/buildscripts/build-${1}.sh
EOF
@@ -30,14 +36,14 @@ env -i TERM=screen eatmydata sudo HOME=/home/ruben BUILDDIST=$2 ARCH=$3 pbuilder
#buildpackage mac belenos amd64 |tee mac.log 2>&1
#buildpackage gnulinux belenos i386 |tee gnulinux-i386.log 2>&1
#mv $SRCDIR/obj-gnulinux $SRCDIR/obj-gnulinux-i386
-buildpackage gnulinux belenos amd64 |tee gnulinux-amd64.log 2>&1
+#buildpackage gnulinux belenos amd64 |tee gnulinux-amd64.log 2>&1
#mv $SRCDIR/obj-gnulinux $SRCDIR/obj-gnulinux-amd64
-#buildpackage android belenos i386 |tee android.log 2>&1
+buildpackage android belenos i386 |tee android.log 2>&1
rm binaries -rf
mkdir binaries/langpacks -p
#cp $1/obj-windows/dist/icecat*.zip binaries
#cp $1/obj-mac/dist/icecat/icecat*.dmg binaries
-cp $1/obj-gnulinux*/dist/icecat*.bz2 binaries
-#cp $1/obj-android/dist/icecat*.apk binaries
+#cp $1/obj-gnulinux*/dist/icecat*.bz2 binaries
+cp $1/obj-android/dist/icecat*.apk binaries
#cp $1/obj-gnulinux-amd64/dist/linux-x86_64/xpi/* binaries/langpacks
diff --git a/data/buildscripts/mozconfig-android b/data/buildscripts/mozconfig-android
index e1d0b6f..3b21e0e 100644
--- a/data/buildscripts/mozconfig-android
+++ b/data/buildscripts/mozconfig-android
@@ -2,9 +2,18 @@ ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-androideabi
mk_add_options MOZ_OBJDIR=./obj-android
ac_add_options --with-android-version=9
+ac_add_options --with-android-min-sdk=11
ac_add_options --enable-update-channel=gnuzilla
+ac_add_options --disable-tests
+ac_add_options --disable-updater
+ac_add_options --disable-eme
+ac_add_options --disable-mochitest
+ac_add_options --disable-crashreporter
+ac_add_options --disable-debug
+
+
#ac_add_options --enable-elf-hack
#ac_add_options --enable-stdcxx-compat
#ac_add_options --with-system-zlib
@@ -15,6 +24,6 @@ mk_add_options 'export MOZ_CHROME_MULTILOCALE=en-US cs da de es-ES fi fr ja ko i
mk_add_options 'export L10NBASEDIR=$PWD/l10n'
ac_add_options --with-l10n-base=$PWD/l10n
-ac_add_options --with-android-sdk=$PWD/../../toolchains/android-build/android-sdk-linux/platforms/android-16/
-ac_add_options --with-android-ndk=$PWD/../../toolchains/android-build/android-ndk-r8e
+ac_add_options --with-android-sdk=$PWD/../../toolchains/android-build/android-sdk-linux/platforms/android-22/
+ac_add_options --with-android-ndk=$PWD/../../toolchains/android-build/android-ndk-r10e
diff --git a/data/buildscripts/mozconfig-common b/data/buildscripts/mozconfig-common
index 0de372d..6b49a6f 100644
--- a/data/buildscripts/mozconfig-common
+++ b/data/buildscripts/mozconfig-common
@@ -5,7 +5,7 @@ mk_add_options MOZ_MAKE_FLAGS=-j7
ac_add_options --with-ccache=/usr/bin/ccache
ac_add_options --disable-debug
-ac_add_options --disable-optimize
+#ac_add_options --disable-optimize
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
diff --git a/data/buildscripts/toolchain-android.sh b/data/buildscripts/toolchain-android.sh
index 3583af8..aca5957 100644
--- a/data/buildscripts/toolchain-android.sh
+++ b/data/buildscripts/toolchain-android.sh
@@ -1,6 +1,7 @@
#!/bin/bash
#https://wiki.mozilla.org/Mobile/Fennec/Android/Detailed_build_instructions#Linux
set -e
+set -x
apt-get -q -y --force-yes install openjdk-7-jdk ant mercurial ccache
apt-get -q -y --force-yes build-dep firefox
@@ -10,11 +11,14 @@ rm -rf $WD
mkdir $WD
cd $WD
-wget https://dl.google.com/android/ndk/android-ndk-r8e-linux-x86.tar.bz2
-tar -xjf android-ndk-r8e-linux-x86.tar.bz2
+#wget https://dl.google.com/android/ndk/android-ndk-r8e-linux-x86.tar.bz2
+#tar -xjf android-ndk-r8e-linux-x86.tar.bz2
+wget http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86.bin
+chmod 755 android-ndk-r10e-linux-x86.bin
+./android-ndk-r10e-linux-x86.bin
-wget http://dl.google.com/android/android-sdk_r24.0.2-linux.tgz
-tar -xzf android-sdk_r24.0.2-linux.tgz
+wget http://dl.google.com/android/android-sdk_r24.3.3-linux.tgz
+tar -xzf android-sdk_r24.3.3-linux.tgz
while true; do echo y; sleep 1; done |./android-sdk-linux/tools/android update sdk -u
while true; do echo y; sleep 1; done |./android-sdk-linux/tools/android update adb
@@ -24,6 +28,6 @@ export PATH=$PATH:$PWD/android-sdk-linux/tools:$PWD/android-sdk-linux/build-tool
ln -s $PWD/android-sdk-linux/build_tools $PWD/android-sdk-linux/build-tools
-pkill adb
+pkill adb || true
echo DONE
diff --git a/data/extensions/spyblock@gnu.org/lib/utils.js b/data/extensions/spyblock@gnu.org/lib/utils.js
index cd69bf9..13f4876 100644
--- a/data/extensions/spyblock@gnu.org/lib/utils.js
+++ b/data/extensions/spyblock@gnu.org/lib/utils.js
@@ -54,18 +54,6 @@ let Utils = exports.Utils =
get isFennec()
{
let {application} = require("info");
- let result = (application == "fennec" || application == "fennec2");
- Object.defineProperty(this, "isFennec", {value: result});
- return result;
- },
-
- /**
- * Returns whether we are running in Fennec, for Fennec-specific hacks
- * @type Boolean
- */
- get isFennec()
- {
- let {application} = require("info");
let result = (application == "fennec" || application == "fennec2" || application == "icecatmobile");
Utils.__defineGetter__("isFennec", () => result);
return result;
diff --git a/data/patches/gnuzilla-bug-1172632-1.patch b/data/patches/gnuzilla-bug-1172632-1.patch
new file mode 100644
index 0000000..326dc34
--- /dev/null
+++ b/data/patches/gnuzilla-bug-1172632-1.patch
@@ -0,0 +1,43 @@
+From 24f14fc16f5ef9046987d45019d98523c27c506c Mon Sep 17 00:00:00 2001
+From: Mike Hommey <mh+mozilla@glandium.org>
+Date: Tue, 9 Jun 2015 09:54:24 +0900
+Subject: [PATCH] Bug 1172632 - Don't guess malloc_usable_size type of argument
+ based on ANDROID_VERSION in mozjemalloc, but use the result of the configure
+ test instead
+
+---
+ memory/mozjemalloc/jemalloc.c | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c
+index f8e36e1..9113d26 100644
+--- a/memory/mozjemalloc/jemalloc.c
++++ b/memory/mozjemalloc/jemalloc.c
+@@ -6509,23 +6509,18 @@ malloc_good_size_impl(size_t size)
+ * malloc_good_size(n).
+ */
+ size = PAGE_CEILING(size);
+ }
+ return size;
+ }
+
+
+-#if defined(MOZ_MEMORY_ANDROID) && (ANDROID_VERSION < 19)
+ MOZ_MEMORY_API size_t
+-malloc_usable_size_impl(void *ptr)
+-#else
+-MOZ_MEMORY_API size_t
+-malloc_usable_size_impl(const void *ptr)
+-#endif
++malloc_usable_size_impl(MALLOC_USABLE_SIZE_CONST_PTR void *ptr)
+ {
+ DARWIN_ONLY(return (szone->size)(szone, ptr));
+
+ #ifdef MALLOC_VALIDATE
+ return (isalloc_validate(ptr));
+ #else
+ assert(ptr != NULL);
+
+--
+2.4.0.2.g36460d1.dirty
+
diff --git a/data/patches/gnuzilla-bug-1172632-2.patch b/data/patches/gnuzilla-bug-1172632-2.patch
new file mode 100644
index 0000000..a3ff76f
--- /dev/null
+++ b/data/patches/gnuzilla-bug-1172632-2.patch
@@ -0,0 +1,223 @@
+From 23da4b840c9bf0713971f07e659394b6f26b7f9e Mon Sep 17 00:00:00 2001
+From: Mike Hommey <mh+mozilla@glandium.org>
+Date: Wed, 10 Jun 2015 09:58:50 +0900
+Subject: [PATCH] bug 1172632 - Move some allocator related configure checks in
+ a common location for both top-level and js/src to use
+
+---
+ aclocal.m4 | 1 +
+ build/autoconf/alloc.m4 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++
+ configure.in | 46 +-----------------------------------------
+ js/src/aclocal.m4 | 1 +
+ js/src/configure.in | 13 ++----------
+ 5 files changed, 58 insertions(+), 56 deletions(-)
+ create mode 100644 build/autoconf/alloc.m4
+
+diff --git a/aclocal.m4 b/aclocal.m4
+index 90356f9..5f30651 100644
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -28,16 +28,17 @@ builtin(include, build/autoconf/arch.m4)dnl
+ builtin(include, build/autoconf/android.m4)dnl
+ builtin(include, build/autoconf/zlib.m4)dnl
+ builtin(include, build/autoconf/linux.m4)dnl
+ builtin(include, build/autoconf/python-virtualenv.m4)dnl
+ builtin(include, build/autoconf/winsdk.m4)dnl
+ builtin(include, build/autoconf/icu.m4)dnl
+ builtin(include, build/autoconf/ffi.m4)dnl
+ builtin(include, build/autoconf/clang-plugin.m4)dnl
++builtin(include, build/autoconf/alloc.m4)dnl
+
+ MOZ_PROG_CHECKMSYS()
+
+ # Read the user's .mozconfig script. We can't do this in
+ # configure.in: autoconf puts the argument parsing code above anything
+ # expanded from configure.in, and we need to get the configure options
+ # from .mozconfig in place before that argument parsing code.
+ MOZ_READ_MOZCONFIG(.)
+diff --git a/build/autoconf/alloc.m4 b/build/autoconf/alloc.m4
+new file mode 100644
+index 0000000..8234a60
+--- /dev/null
++++ b/build/autoconf/alloc.m4
+@@ -0,0 +1,53 @@
++dnl This Source Code Form is subject to the terms of the Mozilla Public
++dnl License, v. 2.0. If a copy of the MPL was not distributed with this
++dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
++
++dnl Check for the existence of various allocation headers/functions
++AC_DEFUN([MOZ_CHECK_ALLOCATOR],[
++
++MALLOC_HEADERS="malloc.h malloc_np.h malloc/malloc.h sys/malloc.h"
++MALLOC_H=
++
++for file in $MALLOC_HEADERS; do
++ MOZ_CHECK_HEADER($file, [MALLOC_H=$file])
++ if test "$MALLOC_H" != ""; then
++ AC_DEFINE_UNQUOTED(MALLOC_H, <$MALLOC_H>)
++ break
++ fi
++done
++
++MOZ_CHECK_HEADERS(alloca.h)
++
++AC_CHECK_FUNCS(strndup posix_memalign memalign)
++
++AC_CHECK_FUNCS(malloc_usable_size)
++MALLOC_USABLE_SIZE_CONST_PTR=const
++MOZ_CHECK_HEADERS([malloc.h], [
++ AC_MSG_CHECKING([whether malloc_usable_size definition can use const argument])
++ AC_TRY_COMPILE([#include <malloc.h>
++ #include <stddef.h>
++ size_t malloc_usable_size(const void *ptr);],
++ [return malloc_usable_size(0);],
++ AC_MSG_RESULT([yes]),
++ AC_MSG_RESULT([no])
++ MALLOC_USABLE_SIZE_CONST_PTR=)
++])
++AC_DEFINE_UNQUOTED([MALLOC_USABLE_SIZE_CONST_PTR],[$MALLOC_USABLE_SIZE_CONST_PTR])
++
++
++dnl In newer bionic headers, valloc is built but not defined,
++dnl so we check more carefully here.
++AC_MSG_CHECKING([for valloc in malloc.h])
++AC_EGREP_HEADER(valloc, malloc.h,
++ AC_DEFINE(HAVE_VALLOC)
++ AC_MSG_RESULT([yes]),
++ AC_MSG_RESULT([no]))
++
++AC_MSG_CHECKING([for valloc in unistd.h])
++AC_EGREP_HEADER(valloc, unistd.h,
++ AC_DEFINE(HAVE_VALLOC)
++ AC_MSG_RESULT([yes]),
++ AC_MSG_RESULT([no]))
++
++
++])
+diff --git a/configure.in b/configure.in
+index 0d54167..988797d 100644
+--- a/configure.in
++++ b/configure.in
+@@ -3394,61 +3394,17 @@ if test -n "$MOZ_LINKER" -a "$OS_TARGET" = "Android"; then
+ dnl we need to use LDFLAGS because nspr doesn't inherit DSO_LDOPTS.
+ dnl Using LDFLAGS in nspr is safe, since we only really build
+ dnl libraries there.
+ DSO_LDOPTS="$DSO_LDOPTS -nostartfiles"
+ NSPR_LDFLAGS="$NSPR_LDFLAGS -nostartfiles"
+ fi
+ fi
+
+-dnl Check for the existence of various allocation headers/functions
+-
+-MALLOC_HEADERS="malloc.h malloc_np.h malloc/malloc.h sys/malloc.h"
+-MALLOC_H=
+-
+-for file in $MALLOC_HEADERS; do
+- MOZ_CHECK_HEADER($file, [MALLOC_H=$file])
+- if test "$MALLOC_H" != ""; then
+- AC_DEFINE_UNQUOTED(MALLOC_H, <$MALLOC_H>)
+- break
+- fi
+-done
+-
+-MOZ_CHECK_HEADERS(alloca.h)
+-
+-AC_CHECK_FUNCS(strndup posix_memalign memalign)
+-
+-AC_CHECK_FUNCS(malloc_usable_size)
+-MALLOC_USABLE_SIZE_CONST_PTR=const
+-MOZ_CHECK_HEADERS([malloc.h], [
+- AC_MSG_CHECKING([whether malloc_usable_size definition can use const argument])
+- AC_TRY_COMPILE([#include <malloc.h>
+- #include <stddef.h>
+- size_t malloc_usable_size(const void *ptr);],
+- [return malloc_usable_size(0);],
+- AC_MSG_RESULT([yes]),
+- AC_MSG_RESULT([no])
+- MALLOC_USABLE_SIZE_CONST_PTR=)
+-])
+-AC_DEFINE_UNQUOTED([MALLOC_USABLE_SIZE_CONST_PTR],[$MALLOC_USABLE_SIZE_CONST_PTR])
+-
+-
+-dnl In newer bionic headers, valloc is built but not defined,
+-dnl so we check more carefully here.
+-AC_MSG_CHECKING([for valloc in malloc.h])
+-AC_EGREP_HEADER(valloc, malloc.h,
+- AC_DEFINE(HAVE_VALLOC)
+- AC_MSG_RESULT([yes]),
+- AC_MSG_RESULT([no]))
+-
+-AC_MSG_CHECKING([for valloc in unistd.h])
+-AC_EGREP_HEADER(valloc, unistd.h,
+- AC_DEFINE(HAVE_VALLOC)
+- AC_MSG_RESULT([yes]),
+- AC_MSG_RESULT([no]))
++MOZ_CHECK_ALLOCATOR
+
+ dnl See if compiler supports some gcc-style attributes
+
+ AC_CACHE_CHECK(for __attribute__((always_inline)),
+ ac_cv_attribute_always_inline,
+ [AC_TRY_COMPILE([inline void f(void) __attribute__((always_inline));],
+ [],
+ ac_cv_attribute_always_inline=yes,
+diff --git a/js/src/aclocal.m4 b/js/src/aclocal.m4
+index 99c73ac..fc36340 100644
+--- a/js/src/aclocal.m4
++++ b/js/src/aclocal.m4
+@@ -27,16 +27,17 @@ builtin(include, ../../build/autoconf/arch.m4)dnl
+ builtin(include, ../../build/autoconf/android.m4)dnl
+ builtin(include, ../../build/autoconf/zlib.m4)dnl
+ builtin(include, ../../build/autoconf/linux.m4)dnl
+ builtin(include, ../../build/autoconf/python-virtualenv.m4)dnl
+ builtin(include, ../../build/autoconf/winsdk.m4)dnl
+ builtin(include, ../../build/autoconf/icu.m4)dnl
+ builtin(include, ../../build/autoconf/ffi.m4)dnl
+ builtin(include, ../../build/autoconf/clang-plugin.m4)dnl
++builtin(include, ../../build/autoconf/alloc.m4)dnl
+
+ define([__MOZ_AC_INIT_PREPARE], defn([AC_INIT_PREPARE]))
+ define([AC_INIT_PREPARE],
+ [if test -z "$srcdir"; then
+ srcdir=`dirname "[$]0"`
+ fi
+ srcdir="$srcdir/../.."
+ __MOZ_AC_INIT_PREPARE($1)
+diff --git a/js/src/configure.in b/js/src/configure.in
+index 9c21772..4f72dc3 100644
+--- a/js/src/configure.in
++++ b/js/src/configure.in
+@@ -3842,28 +3842,19 @@ _INTL_API=yes
+ MOZ_CONFIG_ICU()
+
+ MOZ_SUBCONFIGURE_ICU()
+
+ dnl ========================================================
+ dnl JavaScript shell
+ dnl ========================================================
+
+-MALLOC_HEADERS="malloc.h malloc_np.h malloc/malloc.h sys/malloc.h"
+-MALLOC_H=
+-
+-for file in $MALLOC_HEADERS; do
+- MOZ_CHECK_HEADER($file, [MALLOC_H=$file])
+- if test "$MALLOC_H" != ""; then
+- AC_DEFINE_UNQUOTED(MALLOC_H, <$MALLOC_H>)
+- break
+- fi
+-done
++MOZ_CHECK_ALLOCATOR
+
+-AC_CHECK_FUNCS(setlocale localeconv malloc_size malloc_usable_size)
++AC_CHECK_FUNCS(setlocale localeconv)
+
+ AC_SUBST(MOZILLA_VERSION)
+
+ AC_SUBST(ac_configure_args)
+
+ AC_SUBST(TOOLCHAIN_PREFIX)
+
+ if test -n "$JS_STANDALONE"; then
+--
+2.4.0.2.g36460d1.dirty
+
diff --git a/data/patches/reorder-android-services.mozbuild.patch b/data/patches/reorder-android-services.mozbuild.patch
new file mode 100644
index 0000000..0c8b736
--- /dev/null
+++ b/data/patches/reorder-android-services.mozbuild.patch
@@ -0,0 +1,35 @@
+--- ./mobile/android/base/android-services.mozbuild.orig 2015-07-16 12:27:52.808996807 -0500
++++ ./mobile/android/base/android-services.mozbuild 2015-07-16 12:28:32.980996043 -0500
+@@ -870,8 +870,8 @@
+ 'fxa/authenticator/FxAccountLoginDelegate.java',
+ 'fxa/authenticator/FxAccountLoginException.java',
+ 'fxa/authenticator/FxADefaultLoginStateMachineDelegate.java',
+- 'fxa/FirefoxAccounts.java',
+ 'fxa/FxAccountConstants.java',
++ 'fxa/FirefoxAccounts.java',
+ 'fxa/login/BaseRequestDelegate.java',
+ 'fxa/login/Cohabiting.java',
+ 'fxa/login/Doghouse.java',
+@@ -1024,8 +1024,8 @@
+ 'sync/repositories/android/CachedSQLiteOpenHelper.java',
+ 'sync/repositories/android/ClientsDatabase.java',
+ 'sync/repositories/android/ClientsDatabaseAccessor.java',
+- 'sync/repositories/android/FennecTabsRepository.java',
+ 'sync/repositories/android/FormHistoryRepositorySession.java',
++ 'sync/repositories/android/FennecTabsRepository.java',
+ 'sync/repositories/android/PasswordsRepositorySession.java',
+ 'sync/repositories/android/RepoUtils.java',
+ 'sync/repositories/BookmarkNeedsReparentingException.java',
+@@ -1117,11 +1117,11 @@
+ 'sync/stage/CompletedStage.java',
+ 'sync/stage/EnsureClusterURLStage.java',
+ 'sync/stage/EnsureCrypto5KeysStage.java',
+- 'sync/stage/FennecTabsServerSyncStage.java',
+ 'sync/stage/FetchInfoCollectionsStage.java',
+ 'sync/stage/FetchMetaGlobalStage.java',
+ 'sync/stage/FormHistoryServerSyncStage.java',
+ 'sync/stage/GlobalSyncStage.java',
++ 'sync/stage/FennecTabsServerSyncStage.java',
+ 'sync/stage/NoSuchStageException.java',
+ 'sync/stage/NoSyncIDException.java',
+ 'sync/stage/PasswordsServerSyncStage.java',
diff --git a/data/settings.js b/data/settings.js
index 9a9f3d7..c41320a 100644
--- a/data/settings.js
+++ b/data/settings.js
@@ -59,9 +59,9 @@ pref ("distribution.version", "1.0");
// Spoof the useragent to a generic one
pref("general.useragent.compatMode.firefox",true);
// Spoof the useragent to a generic one
-pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0");
+pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0");
pref("general.appname.override", "Netscape");
-pref("general.appversion.override", "31.0");
+pref("general.appversion.override", "38.0");
pref("general.buildID.override", "Gecko/20100101");
pref("general.oscpu.override", "Windows NT 6.1");
pref("general.platform.override", "Win32");
@@ -183,6 +183,7 @@ pref("pfs.filehint.url", "http://gnuzilla.gnu.org/plugins/PluginFinderService.ph
pref("keyword.URL", "https://duckduckgo.com/html?t=gnu&q=!+");
pref("browser.search.defaultenginename", "DuckDuckGo");
pref("browser.search.order.extra.duckduckgo", "DuckDuckGo");
+pref("browser.search.showOneOffButtons", false);
// https://directory.fsf.org/wiki/Disable_DHE
pref("security.ssl3.dhe_rsa_aes_128_sha", false);
@@ -190,6 +191,42 @@ pref("security.ssl3.dhe_rsa_aes_256_sha", false);
pref("security.ssl3.dhe_dss_aes_128_sha", false);
pref("security.ssl3.dhe_rsa_des_ede3_sha", false);
+// Disable Gecko media plugins: https://wiki.mozilla.org/GeckoMediaPlugins
+pref("media.gmp-manager.url", "http://127.0.0.1/");
+pref("media.gmp-manager.url.override", "data:text/plain,");
+pref("media.gmp-provider.enabled", false);
+// Don't install openh264 codec
+pref("media.gmp-gmpopenh264.enabled", false);
+
+//Disable heartbeat
+pref("browser.selfsupport.url", "");
+
+//Disable Link to FireFox Marketplace, currently loaded with non-free "apps"
+pref("browser.apps.URL", "");
+
+//Disable Firefox Hello
+pref("loop.enabled",false);
+
+// Use old style preferences, that allow javascript to be disabled
+pref("browser.preferences.inContent",false);
+
+// Avoid logjam attack
+pref("security.ssl3.dhe_rsa_aes_128_sha", false);
+pref("security.ssl3.dhe_rsa_aes_256_sha", false);
+pref("security.ssl3.dhe_dss_aes_128_sha", false);
+pref("security.ssl3.dhe_rsa_des_ede3_sha", false);
+
+// Don't download ads for the newtab page
+pref("browser.newtabpage.directory.source", "");
+pref("browser.newtabpage.directory.ping", "");
+pref("browser.newtabpage.introShown", true);
+
+// Disable home snippets
+pref("browser.aboutHomeSnippets.updateUrl", "data:text/html");
+
// Disable hardware acceleration and WebGL
-pref("layers.acceleration.disabled", true);
-pref("webgl.disabled", true);
+//pref("layers.acceleration.disabled", false);
+//pref("webgl.disabled", false);
+
+// Disable SSDP
+pref("browser.casting.enabled", false);
diff --git a/data/vendor.js b/data/vendor.js
new file mode 100644
index 0000000..4f45d6e
--- /dev/null
+++ b/data/vendor.js
@@ -0,0 +1,171 @@
+// Use LANG environment variable to choose locale
+pref("intl.locale.matchOS", true);
+
+// Disable default browser checking.
+pref("browser.shell.checkDefaultBrowser", false);
+
+// Don't disable our bundled extensions in the application directory
+pref("extensions.autoDisableScopes", 11);
+pref("extensions.shownSelectionUI", true);
+
+// Disable "alt" as a shortcut key to open full menu bar. Conflicts with "alt" as a modifier
+pref("ui.key.menuAccessKeyFocuses", false);
+
+// Make sure that Firefox Social stuff are empty
+pref("social.whitelist", "");
+pref("social.directories", "");
+pref("social.shareDirectory", "");
+
+// Disable the GeoLocation API for content
+pref("geo.enabled", false);
+
+// Make sure that the request URL of the GeoLocation backend is empty
+pref("geo.wifi.uri", "");
+
+// Disable the least secure encryption protocols
+pref("security.ssl3.ecdhe_ecdsa_rc4_128_sha", false);
+pref("security.ssl3.ecdhe_rsa_rc4_128_sha", false);
+pref("security.ssl3.rsa_rc4_128_md5", false);
+pref("security.ssl3.rsa_rc4_128_sha", false);
+
+// Disable Sponsored Tiles
+pref("browser.newtabpage.directory.source", "data:application/json,{}");
+pref("browser.newtabpage.directory.ping", "");
+
+// Disable Firefox Hello and make sure that the request URLs of the Firefox Hello are empty
+pref("loop.enabled", false);
+pref("loop.feedback.baseUrl", "");
+pref("loop.gettingStarted.url", "");
+pref("loop.learnMoreUrl", "");
+pref("loop.legal.ToS_url", "");
+pref("loop.legal.privacy_url", "");
+pref("loop.oauth.google.redirect_uri", "");
+pref("loop.oauth.google.scope", "");
+pref("loop.server", "");
+pref("loop.soft_start_hostname", "");
+pref("loop.support_url", "");
+pref("loop.throttled2", false);
+
+// Disable Pocket and make sure that the request URLs of the Pocket are empty
+pref("browser.pocket.enabled", false);
+pref("browser.pocket.api", "");
+pref("browser.pocket.site", "");
+pref("browser.pocket.oAuthConsumerKey", "");
+pref("browser.pocket.useLocaleList", false);
+pref("browser.pocket.enabledLocales", "");
+
+// Make sure that the request URL of the Discover Apps is empty
+pref("browser.apps.URL", "");
+
+// Disable Freedom Violating DRM Feature
+pref("browser.eme.ui.enabled", false);
+pref("media.eme.enabled", false);
+pref("media.eme.apiVisible", false);
+
+// Avoid openh264 being downloaded.
+pref("media.gmp-manager.url.override", "data:text/plain,");
+
+// Disable openh264.
+pref("media.gmp-provider.enabled", false);
+pref("media.gmp-gmpopenh264.provider.enabled", false);
+
+// Default to classic view for about:newtab
+pref("browser.newtabpage.enhanced", false);
+
+// Poodle attack
+pref("security.tls.version.min", 1);
+
+// Disable plugin installer
+pref("plugins.hide_infobar_for_missing_plugin", true);
+pref("plugins.hide_infobar_for_outdated_plugin", true);
+pref("plugins.notifyMissingFlash", false);
+
+// Speeding it up
+pref("network.http.pipelining", true);
+pref("network.http.proxy.pipelining", true);
+pref("network.http.pipelining.maxrequests", 10);
+pref("nglayout.initialpaint.delay", 0);
+
+// Disable third party cookies
+pref("network.cookie.cookieBehavior", 1);
+
+// Disable app updater URL
+pref("app.update.url", "http://127.0.0.1/");"
+
+// Set useragent to Firefox compatible
+//pref("general.useragent.compatMode.firefox", true);
+// Spoof the useragent to a generic one
+pref("general.useragent.compatMode.firefox", true);
+// Spoof the useragent to a generic one
+pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0");
+pref("general.appname.override", "Netscape");
+pref("general.appversion.override", "38.0");
+pref("general.buildID.override", "Gecko/20100101");
+pref("general.oscpu.override", "Windows NT 6.1");
+pref("general.platform.override", "Win32");
+
+// Privacy & Freedom Issues
+// https://webdevelopmentaid.wordpress.com/2013/10/21/customize-privacy-settings-in-mozilla-firefox-part-1-aboutconfig/
+// https://panopticlick.eff.org
+// http://ip-check.info
+// http://browserspy.dk
+// https://wiki.mozilla.org/Fingerprinting
+// http://www.browserleaks.com
+// http://fingerprint.pet-portal.eu
+pref("privacy.donottrackheader.enabled", true);
+pref("privacy.donottrackheader.value", 1);
+pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false);
+pref("browser.safebrowsing.enabled", false);
+pref("browser.safebrowsing.malware.enabled", false);
+//pref("services.sync.privacyURL", "https://www.gnu.org/software/gnuzilla/");
+pref("social.enabled", false);
+pref("social.remote-install.enabled", false);
+pref("datareporting.healthreport.uploadEnabled", false);
+pref("datareporting.healthreport.about.reportUrl", "127.0.0.1");
+pref("datareporting.healthreport.documentServerURI", "127.0.0.1");
+pref("healthreport.uploadEnabled", false);
+pref("social.toast-notifications.enabled", false);
+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);
+//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);
+pref("network.prefetch-next", false);
+pref("network.dns.disablePrefetch", true);
+pref("network.http.sendSecureXSiteReferrer", false);
+pref("toolkit.telemetry.enabled", false);
+// Do not tell what plugins do we have enabled: https://mail.mozilla.org/pipermail/firefox-dev/2013-November/001186.html
+pref("plugins.enumerable_names", "");
+pref("plugin.state.flash", 1);
+// Do not autoupdate search engines
+pref("browser.search.update", false);
+// Warn when the page tries to redirect or refresh
+//pref("accessibility.blockautorefresh", true);
+
+// Disable channel updates
+pref("app.update.enabled", false);
+pref("app.update.auto", false);
+
+// Mobile
+pref("privacy.announcements.enabled", false);
+pref("browser.snippets.enabled", false);
+pref("browser.snippets.syncPromo.enabled", false);
+pref("browser.snippets.geoUrl", "http://127.0.0.1/");
+pref("browser.snippets.updateUrl", "http://127.0.0.1/");
+pref("browser.snippets.statsUrl", "http://127.0.0.1/");
+pref("datareporting.policy.firstRunTime", 0);
+pref("datareporting.policy.dataSubmissionPolicyVersion", 2);
+pref("browser.webapps.checkForUpdates", 0);
+pref("browser.webapps.updateCheckUrl", "http://127.0.0.1/");
+pref("app.faqURL", "http://libreplanet.org/wiki/Group:IceCat/FAQ");
+
+// PFS URL
+pref("pfs.datasource.url", "http://gnuzilla.gnu.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%");
+pref("pfs.filehint.url", "http://gnuzilla.gnu.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%");
+
+// https://directory.fsf.org/wiki/Disable_DHE
+pref("security.ssl3.dhe_rsa_aes_128_sha", false);
+pref("security.ssl3.dhe_rsa_aes_256_sha", false);
diff --git a/makeicecat b/makeicecat
index 0e3f946..93d5db2 100644
--- a/makeicecat
+++ b/makeicecat
@@ -20,8 +20,8 @@
set -e
FFMAJOR=38
-FFMINOR=0
-FFSUB=1
+FFMINOR=1
+FFSUB=0
GNUVERSION=1
FFVERSION=$FFMAJOR.$FFMINOR.${FFSUB}
ICECATVERSION=$FFVERSION-gnu$GNUVERSION
@@ -110,10 +110,10 @@ mv l10n $SOURCEDIR
cd $SOURCEDIR
-#for patch in $DATA/patches/*; do
-# echo Patching with file: $patch
-# patch -p1 < $patch
-#done
+for patch in $DATA/patches/*; do
+ echo Patching with file: $patch
+ patch -p1 < $patch
+done
cp $DATA/Changelog.IceCat $DATA/README.IceCat .
cp $DATA/Changelog.IceCat $DATA/README.IceCat debian
@@ -254,6 +254,11 @@ sed "$LINE,+1 d" debian/build/rules.mk -i
sed "s/^MOZ_APP_NAME\t.*/MOZ_APP_NAME\t\t:= icecat/;" debian/build/config.mk -i
sed "s/^MOZ_PKG_NAME\t.*/MOZ_PKG_NAME\t\t:= icecat/;" debian/build/config.mk -i
+# Hide help buttons in newtab page
+for file in toolkit/themes/linux/global/global.css toolkit/themes/windows/global/global.css toolkit/themes/osx/global/global.css; do
+ echo '#newtab-customize-button, #newtab-intro-what{display:none}' >> $file
+done
+
###############################################################################
# Branding
###############################################################################
@@ -397,12 +402,16 @@ cat << EOF >> browser/confvars.sh
MOZ_APP_VENDOR=GNU
MOZ_APP_VERSION=$FFVERSION
MOZ_APP_PROFILE=mozilla/icecat
-MOZ_SERVICES_SYNC=0
-MOZ_SERVICES_METRICS=0
-MOZ_SERVICES_FXACCOUNTS=0
+MOZ_PAY=0
MOZ_SERVICES_HEALTHREPORT=0
+MOZ_SERVICES_HEALTHREPORTER=0
+MOZ_SERVICES_FXACCOUNTS=0
+MOZ_SERVICES_METRICS=0
MOZ_DATA_REPORTING=0
-MOZ_PAY=0
+MOZ_SERVICES_SYNC=0
+MOZ_DEVICES=0
+MOZ_NATIVE_DEVICES=0
+MOZ_ANDROID_GOOGLE_PLAY_SERVICES=0
EOF
sed 's/mozilla-esr/gnu-esr/' -i browser/confvars.sh
@@ -411,12 +420,15 @@ sed 's/mozilla-esr/gnu-esr/' -i browser/confvars.sh
# Mobile
###############################################################################
+sed '/MOZ_SERVICES_HEALTHREPORT/d; /MOZ_DEVICES/d; /MOZ_ANDROID_RESOURCE_CONSTRAINED/,+2d' -i mobile/android/confvars.sh
+
cat << EOF >> mobile/android/confvars.sh
# IceCat settings
MOZ_APP_VENDOR=GNU
MOZ_APP_VERSION=$FFVERSION
MOZ_PAY=0
MOZ_SERVICES_HEALTHREPORT=0
+MOZ_SERVICES_HEALTHREPORTER=0
MOZ_SERVICES_FXACCOUNTS=0
MOZ_SERVICES_METRICS=0
MOZ_DATA_REPORTING=0
@@ -426,6 +438,9 @@ MOZ_NATIVE_DEVICES=0
MOZ_ANDROID_GOOGLE_PLAY_SERVICES=0
EOF
+rm -R mobile/android/gradle/
+sed -i '/gradle/d' mobile/android/base/Makefile.in
+
cat $DATA/settings.js >> mobile/android/app/mobile.js
cat $DATA/settings-android.js >> mobile/android/app/mobile.js