Merge pull request #1347 from brendandahl/app_shutdown

Skip unneeded steps on APP_SHUTDOWN.
This commit is contained in:
notmasteryet 2012-03-15 20:54:20 -07:00
commit c8d7d88d0a

View File

@ -79,6 +79,8 @@ function startup(aData, aReason) {
function shutdown(aData, aReason) {
if (Services.prefs.getBoolPref('extensions.pdf.js.active'))
Services.prefs.setBoolPref('extensions.pdf.js.active', false);
if (aReason == APP_SHUTDOWN)
return;
var ioService = Services.io;
var resProt = ioService.getProtocolHandler('resource')
.QueryInterface(Ci.nsIResProtocolHandler);