Web Inspector: Split Storage from Resources tab
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Controllers / ApplicationCacheManager.js
index 79866a2..61a55a9 100644 (file)
@@ -44,12 +44,20 @@ WebInspector.ApplicationCacheManager = class ApplicationCacheManager extends Web
 
     initialize()
     {
-        this._applicationCacheObjects = [];
+        this._applicationCacheObjects = {};
 
         if (window.ApplicationCacheAgent)
             ApplicationCacheAgent.getFramesWithManifests(this._framesWithManifestsLoaded.bind(this));
     }
 
+    get applicationCacheObjects()
+    {
+        var applicationCacheObjects = [];
+        for (var id in this._applicationCacheObjects)
+            applicationCacheObjects.push(this._applicationCacheObjects[id]);
+        return applicationCacheObjects;
+    }
+
     networkStateUpdated(isNowOnline)
     {
         this._online = isNowOnline;