[Webkit-unassigned] [Bug 161634] New: Web Inspector: make Object.awaitEvent synchronously add an event listener, and adopt it in tests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 6 10:54:09 PDT 2016


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

            Bug ID: 161634
           Summary: Web Inspector: make Object.awaitEvent synchronously
                    add an event listener, and adopt it in tests
    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: bburg at apple.com
                CC: bburg at apple.com, joepeck at webkit.org,
                    mattbaker at apple.com, nvasilyev at apple.com,
                    timothy at apple.com, webkit-bug-importer at group.apple.com

Currently, Object.awaitEvent adds a listener inside the promise constructor function argument, which is evaluated on the next tick. This means that if two awaitEvents are chained together, and the event we expect is dispatched synchronously, then the second event will likely be dispatched before the Promise is evaluated and adds its singleFireEventListener.

-- 
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/20160906/b1e1af0a/attachment.html>


More information about the webkit-unassigned mailing list