Adds stub PdfJs.jsm for FF15

This commit is contained in:
Yury Delendik 2012-08-19 13:07:31 -05:00
parent d38781d72e
commit 1bb7a7ed1c
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// Don't remove this file. FF15+ expects PdfJs module to be present at resource://pdf.js/PdfJs.jsm
// See https://mxr.mozilla.org/mozilla-central/source/browser/components/nsBrowserGlue.js
var EXPORTED_SYMBOLS = ["PdfJs"];
let PdfJs = {
init: function PdfJs_init() {}
};

View File

@ -339,6 +339,8 @@ target.firefox = function() {
mkdir('-p', FIREFOX_BUILD_CONTENT_DIR + BUILD_DIR);
mkdir('-p', FIREFOX_BUILD_CONTENT_DIR + '/web');
cp(FIREFOX_CONTENT_DIR + 'PdfJs-stub.jsm', FIREFOX_BUILD_CONTENT_DIR + 'PdfJs.jsm');
// Copy extension files
cd('extensions/firefox');
cp('-R', FIREFOX_EXTENSION_FILES_TO_COPY, ROOT_DIR + FIREFOX_BUILD_DIR);