Commit d9cbdfc8 authored by Tails developers's avatar Tails developers
Browse files

Merge remote-tracking branch...

Merge remote-tracking branch 'killyourtv/feature/7952-hide-tbb-health-and-get-addons-in-unsafe-browser' into devel
parents 1658d303 c3f8c0d6
......@@ -177,6 +177,8 @@ configure_chroot () {
# for several minutes while trying to communicate with CUPS, since
# access to port 631 isn't allowed through.
echo 'pref("print.postscript.cups.enabled", false);' >> "${CLEARNET_PREFS}"
# Hide "Get Addons" in Add-ons manager
echo 'user_pref("extensions.getAddons.showPane", false);' >> "${CLEARNET_PREFS}"
# Set the name (e.g. window title) of the browser
set_chroot_browser_name "`gettext \"Unsafe Browser\"`"
......@@ -184,6 +186,19 @@ configure_chroot () {
# Set start page to something that explains what's going on
echo 'user_pref("browser.startup.homepage", "'${START_PAGE}'");' >> \
"${CLEARNET_PREFS}"
BROWSER_CHROME="${CLEARNET_PROFILE}/chrome/userChrome.css"
mkdir -p "$(dirname "${BROWSER_CHROME}")"
cat > ${BROWSER_CHROME} << EOF
/* Required, do not remove */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Hide TorBrowser Health Report and its configuration option */
#appmenu_healthReport,
#dataChoicesTab,
#healthReport
{display: none !important}
EOF
# Remove all bookmarks
rm -f ${CHROOT}/"${TBB_PROFILE}"/bookmarks.html
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment