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
Reported 2010-07-27 07:01:22 PDT
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
Alexei Masterov
Comment 1 2010-07-28 01:01:45 PDT
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.
Note You need to log in before you can comment on or make changes to this bug.