[Webkit-unassigned] [Bug 243492] New: [GTK][WPE] Support asynchronously returning values from user script messages

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 3 06:11:30 PDT 2022


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

            Bug ID: 243492
           Summary: [GTK][WPE] Support asynchronously returning values
                    from user script messages
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com

The initial implementation of user script messages was added in
bug #133730 (it feels like ages ago!). Currently script messages
handlers never return values, but these days we have support in
WebKit which allows returbning values asynchronously, by means
of a returned Promise object. We would like to expose this
functionality in the public API.

The Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.cpp
file contains the implementation of the ScriptMessageClientGtk
class (around line 227), which needs to be modified to indicate
that it supports asynchronous replies. An implementation of
the didPostMessageWithAsyncReply() method needs to be filled in.

The tricky part here is maintaining API/ABI compatibility with
older release of the GTK/WPE ports, while keeping the changes
as small as possible -- I will add some ideas about this in a
follow comment later.

-- 
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/20220803/a88f445a/attachment-0001.htm>


More information about the webkit-unassigned mailing list