browser/base/content/test/general/offlineByDefault.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 var offlineByDefault = {
     2   defaultValue: false,
     3   prefBranch: SpecialPowers.Cc["@mozilla.org/preferences-service;1"].getService(SpecialPowers.Ci.nsIPrefBranch),
     4   set: function(allow) {
     5     try {
     6       this.defaultValue = this.prefBranch.getBoolPref("offline-apps.allow_by_default");
     7     } catch (e) {
     8       this.defaultValue = false
     9     }
    10     this.prefBranch.setBoolPref("offline-apps.allow_by_default", allow);
    11   },
    12   reset: function() {
    13     this.prefBranch.setBoolPref("offline-apps.allow_by_default", this.defaultValue);
    14   }
    15 }
    17 offlineByDefault.set(false);

mercurial