RESOLVED DUPLICATE of bug 152727 151434
Web Inspector: window.error handlers are not profiled
https://bugs.webkit.org/show_bug.cgi?id=151434
Summary Web Inspector: window.error handlers are not profiled
Joseph Pecoraro
Reported 2015-11-18 22:31:17 PST
* SUMMARY window.error handlers are not profiled NOTE: window.addEventListener("error") are profiled. * TEST <button id="x">Click</button> <script> window.x.onclick = function() { ({}).x.x; }; window.onerror = function() { alert("test"); } </script> * STEPS TO REPRODUCE 1. Inspect test page 2. Start timeline 3. Click button 4. Dismiss alert 5. Stop timeline => Scripts Timeline does not show the onerror handler
Attachments
Radar WebKit Bug Importer
Comment 1 2015-11-18 22:31:54 PST
Blaze Burg
Comment 2 2016-02-08 11:05:21 PST
No idea where this handler is being called. Didn't find any obvious JSC::call sites that were missed.
Joseph Pecoraro
Comment 3 2016-02-08 11:12:02 PST
This should be addressed now by Script Profiler.
Joseph Pecoraro
Comment 4 2016-02-08 11:15:41 PST
Fixed by Bug 152727. Source/WebCore/bindings/js/JSErrorHandler.cpp got willCallFunction and didCallFunction inspector instrumentation calls. *** This bug has been marked as a duplicate of bug 152727 ***
Note You need to log in before you can comment on or make changes to this bug.