[Webkit-unassigned] [Bug 205958] New: Web Inspector: awaitPromise option in Runtime.evaluate and Runtime.callFunctionOn

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 8 14:31:52 PST 2020


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

            Bug ID: 205958
           Summary: Web Inspector: awaitPromise option in Runtime.evaluate
                    and Runtime.callFunctionOn
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: einbinder at chromium.org
                CC: inspector-bugzilla-changes at group.apple.com

Protocol changes:
Runtime.evaluate and Runtime.callFunctionOn both get an awaitPromise option, which will `await` the result.

Frontend Change:
Results of level await now appear as any other console evaluation, instead of coming in separately through console.info. This means they can be used via $_, $1, etc.
when paused, top level awaits now return their promise.

This looks related to: https://bugs.webkit.org/show_bug.cgi?id=174006

I came across this while working with the protocol, and finding `Runtime.awaitPromise` to be inefficient and insufficient for my use case. I'm happy to land just the protocol changes, if the frontend changes are controversial. But they seemed to mostly come for free.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200108/2a45b5a8/attachment.htm>


More information about the webkit-unassigned mailing list