Steps to reproduce: 1. Open the testcase 2. Open and attach the Inspector's debugger 3. Put a breakpoint on the "var p =" line. 4. Refresh the page The script is now paused but the source code is not visible in the Scripts tab.
Created attachment 21130 [details] Testcase
<rdar://problem/5933408>
Apparently, this is happening for scripts running before the end of onload event. From IRC : aroben: Rik|work: I bet your script is running before onload fires Rik|work: aroben: source code is not printed even in a onload function aroben: Rik|work: yeah, nothing seems to work until after onload
We don't show source because the resource hasn't finished loading untill after onload fires. We need a way to show source before the load finishes.
Created attachment 24098 [details] Proposed patch
Comment on attachment 24098 [details] Proposed patch r=me
Landed in r37313.