Bug 46167 - Web Inspector: Pausing in the inline and onload scripts result in confusing UI.
Summary: Web Inspector: Pausing in the inline and onload scripts result in confusing UI.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-21 00:23 PDT by Ilya Tikhonovsky
Modified: 2014-03-10 16:24 PDT (History)
10 users (show)

See Also:


Attachments
screenshot (99.87 KB, image/png)
2010-09-21 00:23 PDT, Ilya Tikhonovsky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Tikhonovsky 2010-09-21 00:23:09 PDT
Created attachment 68196 [details]
screenshot

quite simply code 


<html>
<head>
<script>

function doit()
{
    var xhr = new XMLHttpRequest();
    xhr.open("GET", "test.xhr", false);
    xhr.send();

}

</script>
</head>

<body onload="doit()">
</body>
</html>

If we set a breakpoint in the code then on reload we will get:

1) two entry in the list of file at Scripts panel. Just one per each call stack entry.
2) second entry in call stack with wrapper around onload event.
3) file content has only the text of function which was selected in the call stack. No other functions, no other html text.

See screenshot.
Comment 1 Pavel Feldman 2010-09-21 01:19:50 PDT
Two problems here:
1) Resource has not been pushed to the front-end at the time of script evaluation yet.
2) inline DOM handlers are shown with their wrappers

 I think (1) can be solved for many cases via swapping order of notifications in the frame loader.