[tbb-commits] [tor-browser/tor-browser-38.1.0esr-5.0-1] Bug 16316: Fix New Tiles pref bustage.

mikeperry at torproject.org mikeperry at torproject.org
Sun Jul 19 02:25:57 UTC 2015


commit e99a53f4fa96ce4525114403580f3a7194360de5
Author: Mike Perry <mikeperry-git at torproject.org>
Date:   Mon Jul 13 13:19:47 2015 -0700

    Bug 16316: Fix New Tiles pref bustage.
    
    This allows us to set the newtiles pref to 'classic' mode for the default
    value.
---
 browser/modules/DirectoryLinksProvider.jsm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/browser/modules/DirectoryLinksProvider.jsm b/browser/modules/DirectoryLinksProvider.jsm
index 9385c09..3f31b28 100644
--- a/browser/modules/DirectoryLinksProvider.jsm
+++ b/browser/modules/DirectoryLinksProvider.jsm
@@ -139,7 +139,7 @@ let DirectoryLinksProvider = {
    * Set appropriate default ping behavior controlled by enhanced pref
    */
   _setDefaultEnhanced: function DirectoryLinksProvider_setDefaultEnhanced() {
-    if (!Services.prefs.prefHasUserValue(PREF_NEWTAB_ENHANCED)) {
+    if (Services.prefs.getBoolPref(PREF_NEWTAB_ENHANCED)) {
       let enhanced = true;
       try {
         // Default to not enhanced if DNT is set to tell websites to not track





More information about the tbb-commits mailing list