Index: Source/WebCore/inspector/front-end/ResourcesPanel.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/ResourcesPanel.js (revision 77501) |
+++ Source/WebCore/inspector/front-end/ResourcesPanel.js (working copy) |
@@ -105,6 +105,16 @@ |
if (this.visibleView instanceof WebInspector.ResourceView) |
this._showResourceView(this.visibleView.resource); |
+ this._initDefaultSelection(); |
+ }, |
+ |
+ loadEventFired: function() |
+ { |
+ this._initDefaultSelection(); |
+ }, |
+ |
+ _initDefaultSelection: function() |
+ { |
if (this._initializedDefaultSelection) |
return; |
@@ -119,17 +129,14 @@ |
} |
} |
} |
- this._initDefaultSelection(); |
- }, |
- _initDefaultSelection: function() |
- { |
if (WebInspector.mainResource && this.resourcesListTreeElement && this.resourcesListTreeElement.expanded) |
this.showResource(WebInspector.mainResource); |
}, |
reset: function() |
{ |
+ delete this._initializedDefaultSelection; |
this._origins = {}; |
this._domains = {}; |
for (var i = 0; i < this._databases.length; ++i) { |
@@ -170,6 +177,7 @@ |
clear: function() |
{ |
this.resourcesListTreeElement.removeChildren(); |
+ this._treeElementForFrameId = {}; |
this.reset(); |
}, |