Web Inspector: Extension sever should use Workspace.projectForType() instead of Works...
authorvsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Feb 2013 16:09:59 +0000 (16:09 +0000)
committervsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Feb 2013 16:09:59 +0000 (16:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=109301

Reviewed by Alexander Pavlov.

* inspector/front-end/ExtensionServer.js:
(WebInspector.ExtensionServer.prototype._onGetPageResources):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142283 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/ExtensionServer.js

index 44415c8fbfe471b6a9317beab687751e418f839e..911a42d84528b8caa5a64570fa5741fcc6726280 100644 (file)
@@ -1,3 +1,13 @@
+2013-02-08  Vsevolod Vlasov  <vsevik@chromium.org>
+
+        Web Inspector: Extension sever should use Workspace.projectForType() instead of Workspace.project()
+        https://bugs.webkit.org/show_bug.cgi?id=109301
+
+        Reviewed by Alexander Pavlov.
+
+        * inspector/front-end/ExtensionServer.js:
+        (WebInspector.ExtensionServer.prototype._onGetPageResources):
+
 2013-02-04  Yury Semikhatsky  <yurys@chromium.org>
 
         Web Inspector: simplify Memory.getDOMNodeCount implementation
 2013-02-04  Yury Semikhatsky  <yurys@chromium.org>
 
         Web Inspector: simplify Memory.getDOMNodeCount implementation
index c939e99a02db48d959ba1d3e729281dd7b8e6e76..faa00ba7647898bfaab6242b167930bb78c54503 100644 (file)
@@ -442,7 +442,7 @@ WebInspector.ExtensionServer.prototype = {
             if (!resources[contentProvider.contentURL()])
                 resources[contentProvider.contentURL()] = this._makeResource(contentProvider);
         }
             if (!resources[contentProvider.contentURL()])
                 resources[contentProvider.contentURL()] = this._makeResource(contentProvider);
         }
-        var uiSourceCodes = WebInspector.workspace.project(WebInspector.projectTypes.Network).uiSourceCodes();
+        var uiSourceCodes = WebInspector.workspace.uiSourceCodesForProjectType(WebInspector.projectTypes.Network);
         uiSourceCodes.forEach(pushResourceData.bind(this));
         WebInspector.resourceTreeModel.forAllResources(pushResourceData.bind(this));
         return Object.values(resources);
         uiSourceCodes.forEach(pushResourceData.bind(this));
         WebInspector.resourceTreeModel.forAllResources(pushResourceData.bind(this));
         return Object.values(resources);