Merge pull request #4501 from Snuffleupagus/firefox-lazy-load-network

[Firefox] Lazy load network.js in PdfStreamConverter.js
This commit is contained in:
Yury Delendik 2014-03-25 18:11:24 -05:00
commit dbbe702be5

View File

@ -39,7 +39,9 @@ const MAX_STRING_PREF_LENGTH = 128;
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
Cu.import('resource://gre/modules/Services.jsm');
Cu.import('resource://gre/modules/NetUtil.jsm');
Cu.import('resource://pdf.js/network.js');
XPCOMUtils.defineLazyModuleGetter(this, 'NetworkManager',
'resource://pdf.js/network.js');
XPCOMUtils.defineLazyModuleGetter(this, 'PrivateBrowsingUtils',
'resource://gre/modules/PrivateBrowsingUtils.jsm');