SessionStore shutdown debugging draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Thu, 12 May 2016 16:06:10 -0500
changeset 375856 6e29163512d2e56e9cbe016ee1c88504f86e2d9f
parent 375855 580e16cf701869f16e6ab5b0f735ace37160fdcc
child 375857 aed014d97a9a9940be72d35b9dff908f3a07948e
push id20402
push userbmo:jryans@gmail.com
push dateMon, 06 Jun 2016 20:31:20 +0000
milestone49.0a1
SessionStore shutdown debugging MozReview-Commit-ID: 5wfQHoQwL6h
browser/components/sessionstore/SessionStore.jsm
--- a/browser/components/sessionstore/SessionStore.jsm
+++ b/browser/components/sessionstore/SessionStore.jsm
@@ -1465,16 +1465,17 @@ var SessionStoreInternal = {
     let progress = { total: -1, current: -1 };
 
     // We're going down! Switch state so that we treat closing windows and
     // tabs correctly.
     RunState.setQuitting();
 
     if (!syncShutdown) {
       // We've got some time to shut down, so let's do this properly.
+      dump(`SessionStore shutdown blocker\n`)
       AsyncShutdown.quitApplicationGranted.addBlocker(
         "SessionStore: flushing all windows",
         this.flushAllWindowsAsync(progress),
         () => progress);
     } else {
       // We have to shut down NOW, which means we only get to save whatever
       // we already had cached.
     }