Bug 10276
Summary: | Clicking "(global scope)" while paused inside an event handler takes you to first line of HTML page | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mark Rowe (bdash) <mrowe> |
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Mark Rowe (bdash)
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Timothy Hatcher
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)
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
Not an issue with the Web Inspector's debugger.