fx-compat: Change "pref(" prefix in prefs file to "user_pref(" for tests

We now copy the prefs file into the app omni.ja, which requires
`pref()`, but for tests we copy it to the profile directory, where it
needs to stay as `user_pref()`.
This commit is contained in:
Dan Stillman 2021-07-30 03:32:23 -04:00
parent c7c61f72c9
commit d838bc952a

View file

@ -145,7 +145,7 @@ fi
cp -R $PDF_TOOLS_CACHE_DIR $PDF_TOOLS_DIR
# Add default prefs, which are apparently no longer read from extensions in Firefox 60
cat "$ZOTERO_PATH/defaults/preferences/zotero.js" > "$PROFILE/prefs.js"
cat "$ZOTERO_PATH/defaults/preferences/zotero.js" | sed 's/^pref/user_pref/g' > "$PROFILE/prefs.js"
cat <<EOF >> "$PROFILE/prefs.js"
user_pref("app.update.enabled", false);