Bug 43045
| Summary: | Web Inspector: Dynamically loaded JS files are missing | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexei Masterov <masterov> |
| Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Alexei Masterov
Debugger doesn't consistently show dynamically loaded JS files:
When a javascript is loaded using an XHR, it doesn't always show up in the resources panel, and never shows up in a drop-down list in the scripts panel.
To reproduce load a javascript using XHR, and call eval on it.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexei Masterov
It turns out that the issue observed was due to application in question actively detecting the browser type and behaving differently in Mozilla and Webkit browsers. The solution for this problem is to use //@ sourceURL as part of the eval.