RESOLVED FIXED 26253
Still update main resource meta-data if resource tracking is disabled
https://bugs.webkit.org/show_bug.cgi?id=26253
Summary Still update main resource meta-data if resource tracking is disabled
Yury Semikhatsky
Reported 2009-06-08 05:27:04 PDT
Try to enable debugger for an HTML page with some inline js with resource tracking disabled. The page URL is in the file list in Scripts panel but the page's source is not available. The problem is that InspectorController does not track main resource's MIME-type when resource tracking is disabled. In that case inspector front-end will fail to show main resource in Scripts panel as it doesn't know its MIME-type. Although resource tracking should explicitly be enabled to get Resources panel running the main resource is always tracked and it's metadata including MIME-type should always be updated no matter resource tracking enabled or not.
Attachments
Update main resource meta-data when resource tracking is off (4.54 KB, patch)
2009-06-08 05:49 PDT, Yury Semikhatsky
no flags
Update main resource meta-data when resource tracking is off (4.54 KB, patch)
2009-06-08 05:49 PDT, Yury Semikhatsky
timothy: review-
Update main resource meta-data when resource tracking is off (4.47 KB, patch)
2009-06-08 06:46 PDT, Yury Semikhatsky
timothy: review+
Yury Semikhatsky
Comment 1 2009-06-08 05:49:45 PDT
Created attachment 31043 [details] Update main resource meta-data when resource tracking is off
Yury Semikhatsky
Comment 2 2009-06-08 05:49:47 PDT
Created attachment 31044 [details] Update main resource meta-data when resource tracking is off
Timothy Hatcher
Comment 3 2009-06-08 06:22:56 PDT
Comment on attachment 31044 [details] Update main resource meta-data when resource tracking is off Using PassRefPtr here isn't correct, since you are not transfering ownership. The InspectorController still owns the resources. A plain pointer return is best. r+ if you change that.
Yury Semikhatsky
Comment 4 2009-06-08 06:46:50 PDT
Created attachment 31047 [details] Update main resource meta-data when resource tracking is off Previous patch with Timothy's comment addressed.
Brent Fulgham
Comment 5 2009-06-10 10:18:13 PDT
Landed in @r44568
Note You need to log in before you can comment on or make changes to this bug.