Bug 1376795 - Print a message when quitting in response to a content crash; r=cyu
authorGabriele Svelto <gsvelto@mozilla.com>
Wed, 16 Aug 2017 11:22:04 +0200
changeset 648512 135ecb6cf04a9a88254a248a191f7c9cc8a349d9
parent 648511 469f4ca42da33d0c11ae7addd155dc5243182d62
child 648513 929d3ef69803bb8b101e4894c8c4b50507d14c9e
push id74775
push userbmo:ted@mielczarek.org
push dateThu, 17 Aug 2017 21:15:41 +0000
reviewerscyu
bugs1376795
milestone57.0a1
Bug 1376795 - Print a message when quitting in response to a content crash; r=cyu MozReview-Commit-ID: HluXiBtux23
browser/modules/ContentCrashHandlers.jsm
--- a/browser/modules/ContentCrashHandlers.jsm
+++ b/browser/modules/ContentCrashHandlers.jsm
@@ -145,16 +145,18 @@ this.TabCrashHandler = {
         }
 
         // check for environment affecting crash reporting
         let env = Cc["@mozilla.org/process/environment;1"]
                     .getService(Ci.nsIEnvironment);
         let shutdown = env.exists("MOZ_CRASHREPORTER_SHUTDOWN");
 
         if (shutdown) {
+          dump("A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is " +
+               "set, shutting down\n");
           Services.startup.quit(Ci.nsIAppStartup.eForceQuit);
         }
 
         break;
       }
       case "oop-frameloader-crashed": {
         aSubject.QueryInterface(Ci.nsIFrameLoader);