Commit a2a42c64 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Mozilla ripped out nsIPrefBranchInternal

Apparently nsIPrefBranchInternal was a trivial subclass of nsIPrefBranch,
so we simply switch which class we use.

https://bugzilla.mozilla.org/show_bug.cgi?id=1374847
parent c5cf235c
// Copyright (c) 2013, The Tor Project, Inc.
// Copyright (c) 2018, The Tor Project, Inc.
// See LICENSE for licensing information.
// TODO: Based on torbutton-logger.js (pull in copyright and license?)
//
......@@ -108,8 +108,8 @@ let TLLoggerInternal = // Private
{
// Register observer
var prefs = Cc["@mozilla.org/preferences-service;1"]
.getService(Ci.nsIPrefBranchInternal)
.QueryInterface(Ci.nsIPrefBranchInternal);
.getService(Ci.nsIPrefBranch)
.QueryInterface(Ci.nsIPrefBranch);
prefs.addObserver("extensions.torlauncher", this, false);
this.mLogLevel = TorLauncherUtil.getIntPref(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment