From b42136f8f95363ccf99fe302406ad18beda6503e Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 19 Dec 2012 12:15:55 -0800 Subject: [PATCH] Fix migration for upgraded profiles. --- extensions/firefox/content/PdfJs.jsm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extensions/firefox/content/PdfJs.jsm b/extensions/firefox/content/PdfJs.jsm index f36fa75a7..786b4790c 100644 --- a/extensions/firefox/content/PdfJs.jsm +++ b/extensions/firefox/content/PdfJs.jsm @@ -156,6 +156,13 @@ let PdfJs = { types.push(PDF_CONTENT_TYPE); } prefs.setCharPref(PREF_DISABLED_PLUGIN_TYPES, types.join(',')); + + // Update the category manager in case the plugins are already loaded. + let categoryManager = Cc["@mozilla.org/categorymanager;1"]; + categoryManager.getService(Ci.nsICategoryManager). + deleteCategoryEntry("Gecko-Content-Viewers", + PDF_CONTENT_TYPE, + false); }, // nsIObserver