Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: mobile/android/app/mobile.js

Issue 29330952: Issue 3127 - Merge conflicts, base 42.0.1 (Closed)
Patch Set: Created Nov. 26, 2015, 11:01 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .hgtags ('k') | mobile/android/base/AppConstants.java.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 #filter substitution 5 #filter substitution
6 6
7 // For browser.xml binding 7 // For browser.xml binding
8 // 8 //
9 // cacheRatio* is a ratio that determines the amount of pixels to cache. The 9 // cacheRatio* is a ratio that determines the amount of pixels to cache. The
10 // ratio is multiplied by the viewport width or height to get the displayport's 10 // ratio is multiplied by the viewport width or height to get the displayport's
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 pref("dom.forms.number", true); 175 pref("dom.forms.number", true);
176 176
177 /* extension manager and xpinstall */ 177 /* extension manager and xpinstall */
178 pref("xpinstall.whitelist.directRequest", false); 178 pref("xpinstall.whitelist.directRequest", false);
179 pref("xpinstall.whitelist.fileRequest", false); 179 pref("xpinstall.whitelist.fileRequest", false);
180 pref("xpinstall.whitelist.add", "https://addons.mozilla.org"); 180 pref("xpinstall.whitelist.add", "https://addons.mozilla.org");
181 pref("xpinstall.whitelist.add.180", "https://marketplace.firefox.com"); 181 pref("xpinstall.whitelist.add.180", "https://marketplace.firefox.com");
182 182
183 pref("xpinstall.signatures.required", false); 183 pref("xpinstall.signatures.required", false);
184 184
185 pref("extensions.enabledScopes", 1); 185 pref("extensions.enabledScopes", 4);
186 pref("extensions.autoupdate.enabled", true); 186 pref("extensions.autoupdate.enabled", true);
187 pref("extensions.autoupdate.interval", 86400); 187 pref("extensions.autoupdate.interval", 86400);
188 pref("extensions.update.enabled", false); 188 pref("extensions.update.enabled", false);
189 pref("extensions.update.interval", 86400); 189 pref("extensions.update.interval", 86400);
190 pref("extensions.dss.enabled", false); 190 pref("extensions.dss.enabled", false);
191 pref("extensions.dss.switchPending", false); 191 pref("extensions.dss.switchPending", false);
192 pref("extensions.ignoreMTimeChanges", false); 192 pref("extensions.ignoreMTimeChanges", false);
193 pref("extensions.logging.enabled", false); 193 pref("extensions.logging.enabled", false);
194 pref("extensions.hideInstallButton", true); 194 pref("extensions.hideInstallButton", true);
195 pref("extensions.showMismatchUI", false); 195 pref("extensions.showMismatchUI", false);
196 pref("extensions.hideUpdateButton", false); 196 pref("extensions.hideUpdateButton", false);
197 pref("extensions.strictCompatibility", false); 197 pref("extensions.strictCompatibility", false);
198 pref("extensions.minCompatibleAppVersion", "11.0"); 198 pref("extensions.minCompatibleAppVersion", "11.0");
199 199
200 // We need to disable compatibility checking in Adblock Browser for now,
201 // since it uses different versions than Firefox, and we don't want to modify
202 // the embedded Adblock Plus at this point. In the future, Adblock Browser
203 // should have its own app ID, and we should properly declare compatibility in
204 // Adblock Plus.
205 pref("extensions.checkCompatibility.nightly", false);
206
200 pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/Ve rsionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxA ppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%A PP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersio n=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE% "); 207 pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/Ve rsionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxA ppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%A PP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersio n=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE% ");
201 pref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla .org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM _VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID% &appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&cu rrentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPA TIBILITY_MODE%"); 208 pref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla .org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM _VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID% &appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&cu rrentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPA TIBILITY_MODE%");
202 209
203 pref("extensions.hotfix.id", "firefox-android-hotfix@mozilla.org"); 210 pref("extensions.hotfix.id", "firefox-android-hotfix@mozilla.org");
204 pref("extensions.hotfix.cert.checkAttributes", true); 211 pref("extensions.hotfix.cert.checkAttributes", true);
205 pref("extensions.hotfix.certs.1.sha1Fingerprint", "91:53:98:0C:C1:86:DF:47:8F:35 :22:9E:11:C9:A7:31:04:49:A1:AA"); 212 pref("extensions.hotfix.certs.1.sha1Fingerprint", "91:53:98:0C:C1:86:DF:47:8F:35 :22:9E:11:C9:A7:31:04:49:A1:AA");
206 213
207 /* preferences for the Get Add-ons pane */ 214 /* preferences for the Get Add-ons pane */
208 pref("extensions.getAddons.cache.enabled", true); 215 pref("extensions.getAddons.cache.enabled", true);
209 pref("extensions.getAddons.maxResults", 15); 216 pref("extensions.getAddons.maxResults", 15);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // maximum number of search suggestions, as a string because the search service expects a string pref 264 // maximum number of search suggestions, as a string because the search service expects a string pref
258 pref("browser.search.param.maxSuggestions", "4"); 265 pref("browser.search.param.maxSuggestions", "4");
259 // SSL error page behaviour 266 // SSL error page behaviour
260 pref("browser.ssl_override_behavior", 2); 267 pref("browser.ssl_override_behavior", 2);
261 pref("browser.xul.error_pages.expert_bad_cert", false); 268 pref("browser.xul.error_pages.expert_bad_cert", false);
262 269
263 // ordering of search engines in the engine list. 270 // ordering of search engines in the engine list.
264 pref("browser.search.order.1", "chrome://browser/locale/region.properties"); 271 pref("browser.search.order.1", "chrome://browser/locale/region.properties");
265 pref("browser.search.order.2", "chrome://browser/locale/region.properties"); 272 pref("browser.search.order.2", "chrome://browser/locale/region.properties");
266 pref("browser.search.order.3", "chrome://browser/locale/region.properties"); 273 pref("browser.search.order.3", "chrome://browser/locale/region.properties");
274 // Added 4+5 according to https://issues.adblockplus.org/ticket/3128
275 pref("browser.search.order.4", "chrome://browser/locale/region.properties");
276 pref("browser.search.order.5", "chrome://browser/locale/region.properties");
267 277
268 // Market-specific search defaults 278 // Market-specific search defaults
269 pref("browser.search.geoSpecificDefaults", true); 279 // Changed in Adblock Browser, see: https://issues.adblockplus.org/ticket/3003.
280 pref("browser.search.geoSpecificDefaults", false);
270 pref("browser.search.geoSpecificDefaults.url", "https://search.services.mozilla. com/1/%APP%/%VERSION%/%CHANNEL%/%LOCALE%/%REGION%/%DISTRIBUTION%/%DISTRIBUTION_V ERSION%"); 281 pref("browser.search.geoSpecificDefaults.url", "https://search.services.mozilla. com/1/%APP%/%VERSION%/%CHANNEL%/%LOCALE%/%REGION%/%DISTRIBUTION%/%DISTRIBUTION_V ERSION%");
271 282
272 // US specific default (used as a fallback if the geoSpecificDefaults request fa ils). 283 // US specific default (used as a fallback if the geoSpecificDefaults request fa ils).
273 pref("browser.search.defaultenginename.US", "chrome://browser/locale/region.prop erties"); 284 pref("browser.search.defaultenginename.US", "chrome://browser/locale/region.prop erties");
274 pref("browser.search.order.US.1", "chrome://browser/locale/region.properties"); 285 pref("browser.search.order.US.1", "chrome://browser/locale/region.properties");
275 pref("browser.search.order.US.2", "chrome://browser/locale/region.properties"); 286 pref("browser.search.order.US.2", "chrome://browser/locale/region.properties");
276 pref("browser.search.order.US.3", "chrome://browser/locale/region.properties"); 287 pref("browser.search.order.US.3", "chrome://browser/locale/region.properties");
288 // Added 4+5 (just in case) according to https://issues.adblockplus.org/ticket/3 128
289 pref("browser.search.order.US.4", "chrome://browser/locale/region.properties");
290 pref("browser.search.order.US.5", "chrome://browser/locale/region.properties");
277 291
278 // disable updating 292 // disable updating
279 pref("browser.search.update", false); 293 pref("browser.search.update", false);
280 294
281 // enable tracking protection for private browsing 295 // enable tracking protection for private browsing
282 pref("privacy.trackingprotection.pbmode.enabled", true); 296 pref("privacy.trackingprotection.pbmode.enabled", true);
283 297
284 // disable search suggestions by default 298 // disable search suggestions by default
285 pref("browser.search.suggest.enabled", false); 299 pref("browser.search.suggest.enabled", false);
286 pref("browser.search.suggest.prompted", false); 300 pref("browser.search.suggest.prompted", false);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 461
448 // This pref isn't actually used anymore, but we're leaving this here to avoid c hanging 462 // This pref isn't actually used anymore, but we're leaving this here to avoid c hanging
449 // the default so that we can migrate a user-set pref. See bug 885357. 463 // the default so that we can migrate a user-set pref. See bug 885357.
450 pref("plugins.click_to_play", true); 464 pref("plugins.click_to_play", true);
451 // The default value for nsIPluginTag.enabledState (STATE_CLICKTOPLAY = 1) 465 // The default value for nsIPluginTag.enabledState (STATE_CLICKTOPLAY = 1)
452 pref("plugin.default.state", 1); 466 pref("plugin.default.state", 1);
453 467
454 // product URLs 468 // product URLs
455 // The breakpad report server to link to in about:crashes 469 // The breakpad report server to link to in about:crashes
456 pref("breakpad.reportURL", "https://crash-stats.mozilla.com/report/index/"); 470 pref("breakpad.reportURL", "https://crash-stats.mozilla.com/report/index/");
457 pref("app.support.baseURL", "http://support.mozilla.org/1/mobile/%VERSION%/%OS%/ %LOCALE%/"); 471 // Changed in Adblock Browser, see: https://issues.adblockplus.org/ticket/2930.
458 // Used to submit data to input from about:feedback 472 pref("app.support.baseURL", "https://adblockplus.org/redirect?link=adblock_brows er_android_support&lang=%LOCALE%");
459 pref("app.feedback.postURL", "https://input.mozilla.org/api/v1/feedback/"); 473 // Used to submit data to input from about:feedback, changed in Adblock Browser,
474 // see: https://issues.adblockplus.org/ticket/2930.
475 pref("app.feedback.postURL", "https://adblockbrowser.org/submit-feedback/");
460 pref("app.privacyURL", "https://www.mozilla.org/privacy/firefox/"); 476 pref("app.privacyURL", "https://www.mozilla.org/privacy/firefox/");
461 pref("app.creditsURL", "http://www.mozilla.org/credits/"); 477 pref("app.creditsURL", "http://www.mozilla.org/credits/");
462 pref("app.channelURL", "http://www.mozilla.org/%LOCALE%/firefox/channel/"); 478 pref("app.channelURL", "http://www.mozilla.org/%LOCALE%/firefox/channel/");
463 #if MOZ_UPDATE_CHANNEL == aurora 479 #if MOZ_UPDATE_CHANNEL == aurora
464 pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/au roranotes/"); 480 pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/au roranotes/");
465 #elif MOZ_UPDATE_CHANNEL == beta 481 #elif MOZ_UPDATE_CHANNEL == beta
466 pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%bet a/releasenotes/"); 482 pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%bet a/releasenotes/");
467 #else 483 #else
468 pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/re leasenotes/"); 484 pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/re leasenotes/");
469 #endif 485 #endif
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 pref("ui.windowtext", "#101010"); 533 pref("ui.windowtext", "#101010");
518 pref("ui.windowframe", "#efebe7"); 534 pref("ui.windowframe", "#efebe7");
519 535
520 /* prefs used by the update timer system (including blocklist pings) */ 536 /* prefs used by the update timer system (including blocklist pings) */
521 pref("app.update.timerFirstInterval", 30000); // milliseconds 537 pref("app.update.timerFirstInterval", 30000); // milliseconds
522 pref("app.update.timerMinimumDelay", 30); // seconds 538 pref("app.update.timerMinimumDelay", 30); // seconds
523 539
524 // used by update service to decide whether or not to 540 // used by update service to decide whether or not to
525 // automatically download an update 541 // automatically download an update
526 pref("app.update.autodownload", "wifi"); 542 pref("app.update.autodownload", "wifi");
527 pref("app.update.url.android", "https://aus5.mozilla.org/update/4/%PRODUCT%/%VER SION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/% DISTRIBUTION_VERSION%/%MOZ_VERSION%/update.xml"); 543 #ifdef ABB_RELEASE_BUILD
544 pref("app.update.url.android", "https://update.adblockplus.org/adblockbrowser/up dates.xml?addonName=adblockbrowser&addonVersion=%VERSION%.%BUILD_ID%&application Name=android&applicationVersion=%OS_VERSION_INT%&platform=gecko&platformVersion= %MOZ_VERSION%&locale=%LOCALE%");
545 #else
546 pref("app.update.url.android", "https://adblockplus.org/devbuilds/adblockbrowser /updates.xml?addonName=adblockbrowser&addonVersion=%VERSION%.%BUILD_ID%&applicat ionName=android&applicationVersion=%OS_VERSION_INT%&platform=gecko&platformVersi on=%MOZ_VERSION%&locale=%LOCALE%");
547 #endif
528 548
529 #ifdef MOZ_UPDATER 549 #ifdef MOZ_UPDATER
530 /* prefs used specifically for updating the app */ 550 /* prefs used specifically for updating the app */
531 pref("app.update.enabled", false); 551 pref("app.update.enabled", false);
532 pref("app.update.channel", "@MOZ_UPDATE_CHANNEL@"); 552 pref("app.update.channel", "@MOZ_UPDATE_CHANNEL@");
533 553
534 #endif 554 #endif
535 555
536 // replace newlines with spaces on paste into single-line text boxes 556 // replace newlines with spaces on paste into single-line text boxes
537 pref("editor.singleLine.pasteNewlines", 2); 557 pref("editor.singleLine.pasteNewlines", 2);
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 // How frequently we check for new snippets, in seconds (1 day) 841 // How frequently we check for new snippets, in seconds (1 day)
822 pref("browser.snippets.updateInterval", 86400); 842 pref("browser.snippets.updateInterval", 86400);
823 843
824 // URL used to check for user's country code 844 // URL used to check for user's country code
825 pref("browser.snippets.geoUrl", "https://geo.mozilla.org/country.json"); 845 pref("browser.snippets.geoUrl", "https://geo.mozilla.org/country.json");
826 846
827 // URL used to ping metrics with stats about which snippets have been shown 847 // URL used to ping metrics with stats about which snippets have been shown
828 pref("browser.snippets.statsUrl", "https://snippets-stats.mozilla.org/mobile"); 848 pref("browser.snippets.statsUrl", "https://snippets-stats.mozilla.org/mobile");
829 849
830 // These prefs require a restart to take effect. 850 // These prefs require a restart to take effect.
831 pref("browser.snippets.enabled", true); 851 // We set the following three prefs to 'false', see https://issues.adblockplus.o rg/ticket/2785
832 pref("browser.snippets.syncPromo.enabled", true); 852 pref("browser.snippets.enabled", false);
833 pref("browser.snippets.firstrunHomepage.enabled", true); 853 pref("browser.snippets.syncPromo.enabled", false);
854 pref("browser.snippets.firstrunHomepage.enabled", false);
834 855
835 // The URL of the APK factory from which we obtain APKs for webapps. 856 // The URL of the APK factory from which we obtain APKs for webapps.
836 pref("browser.webapps.apkFactoryUrl", "https://controller.apk.firefox.com/applic ation.apk"); 857 pref("browser.webapps.apkFactoryUrl", "https://controller.apk.firefox.com/applic ation.apk");
837 858
838 // How frequently to check for webapp updates, in seconds (86400 is daily). 859 // How frequently to check for webapp updates, in seconds (86400 is daily).
839 pref("browser.webapps.updateInterval", 86400); 860 pref("browser.webapps.updateInterval", 86400);
840 861
841 // Whether or not to check for updates. Enabled by default, but the runtime 862 // Whether or not to check for updates. Enabled by default, but the runtime
842 // disables it for webapp profiles on firstrun, so only the main Fennec process 863 // disables it for webapp profiles on firstrun, so only the main Fennec process
843 // checks for updates (to avoid duplicate update notifications). 864 // checks for updates (to avoid duplicate update notifications).
(...skipping 22 matching lines...) Expand all
866 887
867 // Enable device storage API 888 // Enable device storage API
868 pref("device.storage.enabled", true); 889 pref("device.storage.enabled", true);
869 890
870 // Enable meta-viewport support for font inflation code 891 // Enable meta-viewport support for font inflation code
871 pref("dom.meta-viewport.enabled", true); 892 pref("dom.meta-viewport.enabled", true);
872 893
873 // Enable GMP support in the addon manager. 894 // Enable GMP support in the addon manager.
874 pref("media.gmp-provider.enabled", true); 895 pref("media.gmp-provider.enabled", true);
875 896
897 // Suppress the first run page of Adblock Plus in Adblock Browser.
898 pref("extensions.adblockplus.preconfigured.suppress_first_run_page", true);
899
876 // The default color scheme in reader mode (light, dark, auto) 900 // The default color scheme in reader mode (light, dark, auto)
877 // auto = color automatically adjusts according to ambient light level 901 // auto = color automatically adjusts according to ambient light level
878 // (auto only works on platforms where the 'devicelight' event is enabled) 902 // (auto only works on platforms where the 'devicelight' event is enabled)
879 pref("reader.color_scheme", "auto"); 903 pref("reader.color_scheme", "auto");
880 904
881 // Color scheme values available in reader mode UI. 905 // Color scheme values available in reader mode UI.
882 pref("reader.color_scheme.values", "[\"dark\",\"auto\",\"light\"]"); 906 pref("reader.color_scheme.values", "[\"dark\",\"auto\",\"light\"]");
883 907
884 // Whether to use a vertical or horizontal toolbar. 908 // Whether to use a vertical or horizontal toolbar.
885 pref("reader.toolbar.vertical", false); 909 pref("reader.toolbar.vertical", false);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 pref("consoleservice.logcat", false); 948 pref("consoleservice.logcat", false);
925 #else 949 #else
926 pref("consoleservice.logcat", true); 950 pref("consoleservice.logcat", true);
927 #endif 951 #endif
928 952
929 // Enable Cardboard VR on mobile, assuming VR at all is enabled 953 // Enable Cardboard VR on mobile, assuming VR at all is enabled
930 pref("dom.vr.cardboard.enabled", true); 954 pref("dom.vr.cardboard.enabled", true);
931 955
932 // TODO: Disabled until bug 1190301 is fixed. 956 // TODO: Disabled until bug 1190301 is fixed.
933 pref("browser.tabs.showAudioPlayingIcon", false); 957 pref("browser.tabs.showAudioPlayingIcon", false);
OLDNEW
« no previous file with comments | « .hgtags ('k') | mobile/android/base/AppConstants.java.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld