Web Inspector: Initiated section of Resource Details Sidebar should not display as...
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Models / Resource.js
index c2457e8..56d848e 100644 (file)
@@ -230,6 +230,8 @@ WebInspector.Resource = class Resource extends WebInspector.SourceCode
             return;
 
         this._initiatedResources.push(resource);
+
+        this.dispatchEventToListeners(WebInspector.Resource.Event.InitiatedResourcesDidChange);
     }
 
     get parentFrame()
@@ -693,7 +695,8 @@ WebInspector.Resource.Event = {
     TimestampsDidChange: "resource-timestamps-did-change",
     SizeDidChange: "resource-size-did-change",
     TransferSizeDidChange: "resource-transfer-size-did-change",
-    CacheStatusDidChange: "resource-cached-did-change"
+    CacheStatusDidChange: "resource-cached-did-change",
+    InitiatedResourcesDidChange: "resource-initiated-resources-did-change",
 };
 
 // Keep these in sync with the "ResourceType" enum defined by the "Page" domain.