зеркало из https://github.com/mozilla/gecko-dev.git
Bug 859579 - disable pdf.js in metro Firefox r=mbrubeck
--HG-- extra : rebase_source : 4a70d0b03269e0a600e3e738fdcd654f9e710f4c
This commit is contained in:
Родитель
6a099f0eed
Коммит
ffefc2e8be
|
@ -28,9 +28,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
|
XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
|
||||||
"resource://gre/modules/NetUtil.jsm");
|
"resource://gre/modules/NetUtil.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "PdfJs",
|
|
||||||
"resource://pdf.js/PdfJs.jsm");
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "DownloadUtils",
|
XPCOMUtils.defineLazyModuleGetter(this, "DownloadUtils",
|
||||||
"resource://gre/modules/DownloadUtils.jsm");
|
"resource://gre/modules/DownloadUtils.jsm");
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,6 @@ var BrowserUI = {
|
||||||
DialogUI.init();
|
DialogUI.init();
|
||||||
FormHelperUI.init();
|
FormHelperUI.init();
|
||||||
FindHelperUI.init();
|
FindHelperUI.init();
|
||||||
PdfJs.init();
|
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
Util.dumpLn("Exception in delay load module:", ex.message);
|
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.
|
// 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
|
// Note: if this is not disabled it does not necessarily mean pdf.js is the pdf
|
||||||
// handler just that it is an option.
|
// 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
|
// Used by pdf.js to know the first time firefox is run with it installed so it
|
||||||
// can become the default pdf viewer.
|
// can become the default pdf viewer.
|
||||||
pref("pdfjs.firstRun", true);
|
pref("pdfjs.firstRun", false);
|
||||||
// The values of preferredAction and alwaysAskBeforeHandling before pdf.js
|
// The values of preferredAction and alwaysAskBeforeHandling before pdf.js
|
||||||
// became the default.
|
// became the default.
|
||||||
pref("pdfjs.previousHandler.preferredAction", 0);
|
pref("pdfjs.previousHandler.preferredAction", 0);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче