RESOLVED FIXED 10276
Clicking "(global scope)" while paused inside an event handler takes you to first line of HTML page
https://bugs.webkit.org/show_bug.cgi?id=10276
Summary Clicking "(global scope)" while paused inside an event handler takes you to f...
Mark Rowe (bdash)
Reported 2006-08-06 04:33:21 PDT
As per summary. While Drosera is paused inside an event handler function, clicking on the "(global scope)" frame takes you to the first line of the main HTML page. I'm not sure 100% if it makes sense to display the "(global scope)" entry in this context, as there is no JS code that corresponds to it. If it *does* make sense, what effect should selecting it have on the source view?
Attachments
Timothy Hatcher
Comment 1 2006-08-06 10:37:13 PDT
I think it should have a global scope, but the line number should be -1 or somehting that has no affect when selected.
Mark Rowe (bdash)
Comment 2 2006-08-06 13:02:49 PDT
Cool, that seems like a good approach. The problem with this is that willExecuteStatement appears to be called for line 1 of the main HTML page prior to the execution of the event handler. This suggests to me that WebKit is calling webView:willExecuteStatement:sourceId:line:forWebFrame: for line 1 of the main HTML page, even though it doesn't really make sense to do so.
Timothy Hatcher
Comment 3 2008-05-17 09:08:40 PDT
Not an issue with the Web Inspector's debugger.
Note You need to log in before you can comment on or make changes to this bug.