Commit 57f088b9 authored by Kathleen Brade's avatar Kathleen Brade
Browse files

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.
parent db5cdfce
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -231,10 +231,11 @@ script: |
  unzip omni.ja defaults/preferences/000-tor-browser.js
  cp defaults/preferences/000-tor-browser.js ~/build/
  if [ "z$DATA_OUTSIDE_APP_DIR" = "z1" ]; then
    # Embed our default bookmarks.
    mkdir -p defaults/profile/
    cp -p ~/build/bookmarks.html defaults/profile/
    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 ~/build/bookmarks.html chrome/en-US/locale/browser/
    zip -Xm omni.ja chrome/en-US/locale/browser/bookmarks.html
    rm -rf chrome
  fi
  # Set the locale of the bundle.
  echo "pref(\"general.useragent.locale\", \"en-US\");" >> defaults/preferences/000-tor-browser.js
@@ -260,8 +261,8 @@ script: |

  unzip mac-langpacks.zip
  MAC_LOCALES="$BUNDLE_LOCALES $BUNDLE_LOCALES_MAC"
  # 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.
  for LANG in $MAC_LOCALES
  do
    xpi=mac-langpacks/$LANG.xpi
@@ -269,6 +270,7 @@ script: |
    search_plugins_path=prep_$LANG/browser/chrome/$LANG/locale/browser
    rm -rf $search_plugins_path/searchplugins
    cp -rf ~/build/searchplugins $search_plugins_path
    cp ~/build/bookmarks.html prep_$LANG/browser/chrome/$LANG/locale/browser/
    rm $xpi
    cd prep_$LANG
    ~/build/dzip.sh ../$xpi .