[Pkg-mozext-commits] [requestpolicy] 122/280: move/rename default pref handler

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:30:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 711ff75de26eda9528336104ae719a78a94b6e26
Author: Martin Kimmerle <dev at 256k.de>
Date:   Tue Jan 6 15:56:27 2015 +0100

    move/rename default pref handler
---
 .../default-pref-handler.js}                                 |  0
 src/content/main/pref-manager.jsm                            | 12 +++++++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/content/lib/default-prefs-initializer.js b/src/content/main/default-pref-handler.js
similarity index 100%
rename from src/content/lib/default-prefs-initializer.js
rename to src/content/main/default-pref-handler.js
diff --git a/src/content/main/pref-manager.jsm b/src/content/main/pref-manager.jsm
index 3a8582e..dfd554f 100644
--- a/src/content/main/pref-manager.jsm
+++ b/src/content/main/pref-manager.jsm
@@ -85,11 +85,13 @@ let PrefManager = (function() {
     // to handle their default preferences manually, see Mozilla Bug 564675:
     // https://bugzilla.mozilla.org/show_bug.cgi?id=564675
     // The scope of that script doesn't need to be remembered.
-    Services.scriptloader.loadSubScript("chrome://requestpolicy/content/lib/"+
-                                        "default-prefs-initializer.js", {});
-    // ================================
+    Services.scriptloader.loadSubScript("chrome://requestpolicy/content/main/" +
+                                        "default-pref-handler.js", {});
 
 
+    // ================================
+    // Link/DNS prefetching
+    // --------------------
     // Disable link prefetch.
     if (rpPrefBranch.getBoolPref("prefetch.link.disableOnStartup")) {
       if (rootPrefBranch.getBoolPref("network.prefetch-next")) {
@@ -109,7 +111,10 @@ let PrefManager = (function() {
       }
     }
 
+
+    // ================================
     // Clean up old, unused prefs (removed in 0.2.0).
+    // ----------------------------------------------
     let deletePrefs = [
       "temporarilyAllowedOrigins",
       "temporarilyAllowedDestinations",
@@ -121,6 +126,7 @@ let PrefManager = (function() {
       }
     }
 
+
     Services.prefs.savePrefFile(null);
   };
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list