From 9c26c3c9d223ef27eb7e48ebbe56ab51eccc4597 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Wed, 7 Sep 2016 15:41:23 +0900 Subject: [PATCH] Get instant apply status correctly --- modules/lib/extensions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lib/extensions.js b/modules/lib/extensions.js index d9b8f206..f06effa2 100644 --- a/modules/lib/extensions.js +++ b/modules/lib/extensions.js @@ -140,7 +140,9 @@ if (typeof window == 'undefined' || } var instantApply = false; try { - instantApply = this._Prefs.getBoolPref('browser.preferences.instantApply'); + instantApply = Cc['@mozilla.org/preferences;1'] + .getService(Ci.nsIPrefBranch) + .getBoolPref('browser.preferences.instantApply'); } catch(e) { }