Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: webkit/glue/devtools/js/devtools.js

Issue 249032: DevTools: temporary fix for bug 23260 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/devtools/js/inspector_controller_impl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/devtools.js
===================================================================
--- webkit/glue/devtools/js/devtools.js (revision 27364)
+++ webkit/glue/devtools/js/devtools.js (working copy)
@@ -410,3 +410,20 @@
orig.call(this, args);
};
})();
+
+// Temporary fix for http://crbug/23260.
+(function() {
+var orig = WebInspector.ResourcesPanel.prototype._createResourceView;
+WebInspector.ResourcesPanel.prototype._createResourceView = function(
+ resource) {
+ if (resource.type == undefined && resource.url) {
+ if (resource.url.search('\.js$') != -1) {
+ resource.type = WebInspector.Resource.Type.Script;
+ } else if (scriptOrResource.url.search('\.html$') != -1) {
+ resource.type = WebInspector.Resource.Type.Document;
+ }
+ }
+
+ return orig.apply(this, arguments);
+};
+})();
« no previous file with comments | « no previous file | webkit/glue/devtools/js/inspector_controller_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698