RESOLVED DUPLICATE of bug 8871088025
Web Inspector: Some resources are not present in Resources even if present in Elements
https://bugs.webkit.org/show_bug.cgi?id=88025
Summary Web Inspector: Some resources are not present in Resources even if present in...
Jan Keromnes
Reported 2012-05-31 17:00:10 PDT
PROBLEM: Sometimes, resources are shown in the Elements panel, but are not present in the Resources panel. This happens in the following cases: - when a script is loaded asynchronously, like Google Analytics' `ga.js`, and the Inspector was opened after the page was loaded - when a resource is of an unknown type (e.g. http://lesscss.org's `main.less` stylesheet) OBSERVED: Clicking on them in the Elements panel opens the Resources panel, but there is no resource to show (i.e. the Resources panel stays blank or shows a previously opened resource) EXPECTED: Clicking on them should make the Web Inspector grab the resource, add it to the Resources panel, and show it to the user.
Attachments
Jan Keromnes
Comment 1 2012-06-01 12:16:21 PDT
STEPS TO REPRODUCE: (asynchronous resource problem) - go to https://thefiletree.com - open the Inspector - in the Elements panel, click on "https://ssl.google-analytics.com/ga.js" - the Resources panel shows, with no file open - refreshing the page solves this problem (unknown type problem) - go to http://lesscss.org - open the Inspector - in the Elements panel, click on "/less/main.less" (in the <head>) - the Resources panel show, with no file open - refreshing the page doesn't solve the problem, but the contents of "/less/main.less" can be found in the Network panel
Vsevolod Vlasov
Comment 2 2012-06-09 08:34:43 PDT
We can not show these resources in Resources Panel because they are not available as cached resources. For the asynchronously loaded script case: we can show this resource in sources panel. For the LESS stylesheets: For now we can reveal them in network panel if possible (if they were loaded after inspector opening), otherwise they should be opened in a new tab. If at some point we implement some sort of source maps for LESS / CSS mapping we might want to reconsider the latter case. *** This bug has been marked as a duplicate of bug 88710 ***
Vsevolod Vlasov
Comment 3 2012-06-09 08:35:19 PDT
https://bugs.webkit.org/show_bug.cgi?id=88710 should take care of revealing these resources in the appropriate panel.
Vsevolod Vlasov
Comment 4 2012-06-09 08:37:15 PDT
*** Bug 88027 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.