Bug 773892 - Part 3: only rely on the event to send the crash report. r=fabrice
authorHubert Figuière <hfiguiere@mozilla.com>
Wed, 26 Sep 2012 16:42:17 -0700
changeset 108329 b2644a3626eca532455ac87f89a6cc95702a1d55
parent 108328 5caee20d2dc6da9d494b4eb865a594129fd9d619
child 108330 02e1a6c147261c383338f8f6bea47a9777ada3d2
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersfabrice
bugs773892
milestone18.0a1
Bug 773892 - Part 3: only rely on the event to send the crash report. r=fabrice
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -72,21 +72,16 @@ var shell = {
     let crashID;
     try {
       crashID = Cc["@mozilla.org/xre/app-info;1"]
                 .getService(Ci.nsIXULRuntime).lastRunCrashID;
     } catch(e) { }
     if (Services.prefs.getBoolPref('app.reportCrashes') &&
         crashID) {
 
-      if (!Services.io.offline) {
-        this.CrashSubmit.submit(crashID);
-        return;
-      }
-
       Services.obs.addObserver(function observer(subject, topic, state) {
           if (topic != "network:offline-status-changed")
             return;
           if (state == 'online') {
             shell.CrashSubmit.submit(crashID);
             Services.obs.removeObserver(observer, topic);
           }
         }