When debugging the inspector, the highlighted line is not the real debugged line. Steps to reproduce: 1) Open any webpage 2) Open the inspector, the inspector's inspector and active the debugger 3) Put a break on line 2185 (first line in WebInspector.documentClick) 4) Click anywhere in the first inspector, this pauses the debugger 5) Step over next function call Actual behaviour: anchor is still undefined Expected behaviour: anchor should have a value, null or HTMLAnchorElement. If you continue to step over, you can see that blank lines could be highlighted.
Created attachment 22510 [details] Screenshot after step 5
I was seeing this off by one or more lines error with other inspector code. I think this is a regression since the changes Oliver made to fix exceptions.
I went all the way back to the first nightly that had the debugger integrated into the web inspector and the problem exists. In my case it's off by about 64 lines but I'm sure this varies depending on what your script is. The prior builds with drosera don't work for me (drosera always crashes) so I didn't dig further back than that.
With the fix for bug 19053, this bug can be seen on webkit.org. Just attach the debugger, pause and reload the page.
Okay, my testing shows that the original bug here has been fixed at some point along the line. Am filing new bug for tim's issue.