[tor-commits] [tor-browser-build/master] Bug 21879: Use our default bookmarks on OSX.

boklm at torproject.org boklm at torproject.org
Fri May 12 11:50:52 UTC 2017


commit a826868cf9771049ae33a710f5a2cd764d99494a
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Fri May 12 13:12:47 2017 +0200

    Bug 21879: Use our default bookmarks on OSX.
    
    Account for the changes Mozilla to support localized default bookmarks
    (see: https://bugzilla.mozilla.org/show_bug.cgi?id=1235107).
    Currently, Tor Browser uses the same bookmarks for all locales.
    
    tor-browser-bundle.git author: Kathy Brade <brade at pearlcrescent.com>
    tor-browser-bundle.git commit: 57f088b981a0292d5370b3c56c6d7e5a18f95aca
---
 projects/tor-browser/build | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/projects/tor-browser/build b/projects/tor-browser/build
index 084ec7d..69469db 100644
--- a/projects/tor-browser/build
+++ b/projects/tor-browser/build
@@ -152,11 +152,12 @@ rm -rf chrome/en-US
 unzip omni.ja defaults/preferences/000-tor-browser.js || [ $? -lt 3 ]
 cp defaults/preferences/000-tor-browser.js $rootdir
 [% IF c("var/osx") %]
-  # Embed our default bookmarks.
-  mkdir -p defaults/profile/
-  cp -p $rootdir/bookmarks.html defaults/profile/
-  [% c("var/touch") %] defaults/profile/bookmarks.html
-  zip -Xm omni.ja defaults/profile/bookmarks.html
+  # Embed our default bookmarks within the en-US locale.
+  mkdir -p chrome/en-US/locale/browser
+  cp -p $rootdir/bookmarks.html chrome/en-US/locale/browser/
+  [% c("var/touch") %] chrome/en-US/locale/browser/bookmarks.html
+  zip -Xm omni.ja chrome/en-US/locale/browser/bookmarks.html
+  rm -rf chrome
 [% END %]
 # Set the locale of the bundle.
 echo "pref(\"general.useragent.locale\", \"en-US\");" >> defaults/preferences/000-tor-browser.js
@@ -165,8 +166,8 @@ zip -Xm omni.ja defaults/preferences/000-tor-browser.js
 rm -rf defaults
 popd
 
-# Prepare our language packs for using the proper search engines. See bug
-# 18915 for more details.
+# Prepare our language packs for using the proper search engines and embed
+# our default bookmarks. See bugs 18915 and 21879 for more details.
 [% FOREACH lang = c('var/locales') %]
 [% SET lang = tmpl(lang);
    SET xpi = '$rootdir/' _ c('input_files_by_name/firefox-langpacks') _ '/' _ lang _ '.xpi';
@@ -175,6 +176,9 @@ popd
   search_plugins_path=prep_[% lang %]/browser/chrome/[% lang %]/locale/browser
   rm -rf $search_plugins_path/searchplugins
   cp -rf $rootdir/searchplugins $search_plugins_path
+  [% IF c("var/osx") -%]
+    cp $rootdir/bookmarks.html prep_[% lang %]/browser/chrome/[% lang %]/locale/browser/
+  [% END -%]
   rm [% xpi %]
   cd prep_[% lang %]
   [% c('zip', {





More information about the tor-commits mailing list