Bug 36812
Summary: | Profiler does not show the correct javascript line after <pre> element | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mihnea Ovidenie <mihnea> |
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | burg, mihnea |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 |
Mihnea Ovidenie
Hello,
I am trying to profile the following HTML code snippet in WebKit:
<html>
<body>
<pre>
Test
</pre>
<input type="button" value="Click" onclick="alert('1');" />
</body>
</html>
After loading the code, i start profiler, click button, dismiss alert and stop profiler.
*onclick* function is reported on line 5, but line 5 is </pre> element.
If i move the ending pre tag on the same line as Test, profiler does show the right line for *onclick* function.
I've tested on both Win/Mac with Safari 4.0.5, latest WebKit and Chrome and all exhibit the same issue.
Regards,
Mihnea Ovidenie
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brian Burg
*** This bug has been marked as a duplicate of bug 21140 ***