[Webkit-unassigned] [Bug 151435] New: Web Inspector: Promise callbacks are not profiled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 18 22:33:37 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=151435

            Bug ID: 151435
           Summary: Web Inspector: Promise callbacks are not profiled
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: bburg at apple.com, graouts at webkit.org,
                    joepeck at webkit.org, mattbaker at apple.com,
                    nvasilyev at apple.com, timothy at apple.com,
                    webkit-bug-importer at group.apple.com

* SUMMARY
Promise callbacks are not profiled

* TEST
<button id="x">Click</button>
<script>
window.x.onclick = function() {
    Promise.resolve(100).then(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 promise handler

* NOTES
Likely places to look are:
- JSJobMicrotask::run - JSJob.cpp
- JSPromiseDeferred::resolve and JSPromiseDeferred::reject - JSPromiseDeferred.cpp
- JSInternalPromise::then - JSInternalPromise.cpp

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151119/a1cccac4/attachment.html>


More information about the webkit-unassigned mailing list