Bug 88025
| Summary: | Web Inspector: Some resources are not present in Resources even if present in Elements | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jan Keromnes <janx> |
| Component: | Web Inspector (Deprecated) | Assignee: | Vsevolod Vlasov <vsevik> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | apavlov, bweinstein, caseq, janx, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, vivekgalatage, yurys |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Jan Keromnes
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jan Keromnes
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
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
https://bugs.webkit.org/show_bug.cgi?id=88710 should take care of revealing these resources in the appropriate panel.
Vsevolod Vlasov
*** Bug 88027 has been marked as a duplicate of this bug. ***