[Webkit-unassigned] [Bug 189466] New: Add bindings support for representing attributes with JSValueInWrappedObject
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Sep 9 19:37:43 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=189466
Bug ID: 189466
Summary: Add bindings support for representing attributes with
JSValueInWrappedObject
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Bindings
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aestes at apple.com
CC: cdumez at apple.com
In CustomEvent, History, MessageEvent, PaymentMethodChangeEvent, and PaymentResponse, we have custom bindings support for representing attributes of type object or any.
These custom bindings tend to do two things:
1. Add a custom getter for an attribute of type object or any that converts the native value to a JSValue, cache that JSValue in a JSValueInWrappedObject in the wrapper class, then return the cached JSValue.
2. Add a custom mark function that visits the cached JSValueInWrappedObject as well as any other JSValueInWrappedObjects in the wrapper class.
We should teach the bindings generator to do this for us for attributes of object or any type (perhaps with a custom annotation).
--
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/20180910/ff09aae3/attachment-0001.html>
More information about the webkit-unassigned
mailing list