Skip to content

Commit 1d0c005

Browse files
committed
Merge pull request mozilla#2488 from brendandahl/fix-migration2
Fix migration for upgraded profiles.
2 parents 1852f22 + b42136f commit 1d0c005

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

extensions/firefox/content/PdfJs.jsm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ let PdfJs = {
156156
types.push(PDF_CONTENT_TYPE);
157157
}
158158
prefs.setCharPref(PREF_DISABLED_PLUGIN_TYPES, types.join(','));
159+
160+
// Update the category manager in case the plugins are already loaded.
161+
let categoryManager = Cc["@mozilla.org/categorymanager;1"];
162+
categoryManager.getService(Ci.nsICategoryManager).
163+
deleteCategoryEntry("Gecko-Content-Viewers",
164+
PDF_CONTENT_TYPE,
165+
false);
159166
},
160167

161168
// nsIObserver

0 commit comments

Comments
 (0)