Index: Source/WebCore/inspector/front-end/ResourceTreeModel.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/ResourceTreeModel.js (revision 130858) |
+++ Source/WebCore/inspector/front-end/ResourceTreeModel.js (working copy) |
@@ -35,6 +35,7 @@ |
*/ |
WebInspector.ResourceTreeModel = function(networkManager) |
{ |
+ networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.ResourceTrackingEnabled, this._onResourceTrackingEnabled, this); |
networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestUpdated, this._onRequestUpdated, this); |
networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestFinished, this._onRequestUpdated, this); |
networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestUpdateDropped, this._onRequestUpdateDropped, this); |
@@ -67,6 +68,11 @@ |
} |
WebInspector.ResourceTreeModel.prototype = { |
+ _onResourceTrackingEnabled: function() |
+ { |
+ this._fetchResourceTree(); |
+ }, |
+ |
_fetchResourceTree: function() |
{ |
this._frames = {}; |