Bug 1223811 - Remove error log generated when collecting HAR data; r=jryans
authorJan Odvarko <odvarko@gmail.com>
Wed, 11 Nov 2015 17:32:46 +0100
changeset 308697 abd472b690d7932b2a1b36167bdca62387604efe
parent 308696 dfb8a480a4def6d74a47c8069fac1600fb8b41f5
child 308698 6cbadfaa418a058b493dbdb3dcac2f99dbf0ed5d
push id7514
push users.kaspari@gmail.com
push dateFri, 13 Nov 2015 14:12:41 +0000
reviewersjryans
bugs1223811
milestone45.0a1
Bug 1223811 - Remove error log generated when collecting HAR data; r=jryans
devtools/client/netmonitor/har/har-collector.js
--- a/devtools/client/netmonitor/har/har-collector.js
+++ b/devtools/client/netmonitor/har/har-collector.js
@@ -204,21 +204,21 @@ HarCollector.prototype = {
       attachment: file
     });
   },
 
   onNetworkEventUpdate: function(type, packet) {
     let actor = packet.from;
 
     // Skip events from unknown actors (not in the list).
-    // There could also be zombie requests received after the target is closed.
+    // It can happen when there are zombie requests received after
+    // the target is closed or multiple tabs are attached through
+    // one connection (one DebuggerClient object).
     let file = this.getFile(packet.from);
     if (!file) {
-      Cu.reportError("HarCollector.onNetworkEventUpdate; ERROR " +
-        "Unknown event actor: " + type, packet);
       return;
     }
 
     trace.log("HarCollector.onNetworkEventUpdate; " +
       packet.updateType, packet);
 
     let includeResponseBodies = Services.prefs.getBoolPref(
       "devtools.netmonitor.har.includeResponseBodies");