chromium | 1 Jul 2012 23:23

Issue 135380 in chromium: Errors in dynamic script in console link to wrong window

Status: Unconfirmed
Owner: ----
Labels: OS-Linux Area-Undefined Type-Bug Pri-2

New issue 135380 by qFo... <at> gmail.com: Errors in dynamic script in console  
link to wrong window
http://code.google.com/p/chromium/issues/detail?id=135380

Chrome Version       : 20.0.1132.43
OS Version:
URLs (if applicable) :
Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
   Not relevant

What steps will reproduce the problem?
1. Include a dynamic generated script element that has a runtime error
2. Click on origin link in console (will show you line x in the html)

What is the expected result?
End up on the correct line in the dynamic script.

What happens instead?
End up on the intended line but relative to the original html (so the html  
as it was loaded, not after modification). It should jump to that line  
number relative to the dynamic script element. This makes debugging very  
hard.

Please provide any additional information below. Attach a screenshot if
possible.

Screenshots and test file are attached.

It is possible to set the error trap in the inspector. This will show you  
the correct file/line, though the filename in the dropdown still says .html  
(which makes sense, I suppose).

Source maps were not used in this experiment, I'm not sure if they would  
change the outcome.

UserAgentString: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML,  
like Gecko) Chrome/20.0.1132.43 Safari/536.11

Attachments:
	test.html  404 bytes
	click.png  35.9 KB
	result.png  64.6 KB

--

-- 
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs


Gmane