Bug 859579 - disable pdf.js in metro Firefox r=mbrubeck

--HG--
extra : rebase_source : 4a70d0b03269e0a600e3e738fdcd654f9e710f4c
This commit is contained in:
Rodrigo Silveira 2013-10-02 14:21:39 -07:00
Родитель 6a099f0eed
Коммит ffefc2e8be
3 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -28,9 +28,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
"resource://gre/modules/NetUtil.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "PdfJs",
"resource://pdf.js/PdfJs.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "DownloadUtils",
"resource://gre/modules/DownloadUtils.jsm");

Просмотреть файл

@ -148,7 +148,6 @@ var BrowserUI = {
DialogUI.init();
FormHelperUI.init();
FindHelperUI.init();
PdfJs.init();
} catch(ex) {
Util.dumpLn("Exception in delay load module:", ex.message);
}

Просмотреть файл

@ -564,10 +564,10 @@ pref("browser.chrome.toolbar_tips", false);
// Completely disable pdf.js as an option to preview pdfs within firefox.
// Note: if this is not disabled it does not necessarily mean pdf.js is the pdf
// handler just that it is an option.
pref("pdfjs.disabled", false);
pref("pdfjs.disabled", true);
// Used by pdf.js to know the first time firefox is run with it installed so it
// can become the default pdf viewer.
pref("pdfjs.firstRun", true);
pref("pdfjs.firstRun", false);
// The values of preferredAction and alwaysAskBeforeHandling before pdf.js
// became the default.
pref("pdfjs.previousHandler.preferredAction", 0);