RESOLVED INVALID 46167
Web Inspector: Pausing in the inline and onload scripts result in confusing UI.
https://bugs.webkit.org/show_bug.cgi?id=46167
Summary Web Inspector: Pausing in the inline and onload scripts result in confusing UI.
Ilya Tikhonovsky
Reported 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.
Attachments
screenshot (99.87 KB, image/png)
2010-09-21 00:23 PDT, Ilya Tikhonovsky
no flags
Pavel Feldman
Comment 1 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.
Note You need to log in before you can comment on or make changes to this bug.