Open
Bug 1799896
Opened 3 years ago
Updated 1 years ago
Provide "contentChanged" C++ callback for setlike/maplike
Categories
(Core :: DOM: Bindings (WebIDL), enhancement)
Core
DOM: Bindings (WebIDL)
Tracking
()
NEW
People
(Reporter: jjaschke, Unassigned)
References
(Blocks 2 open bugs)
Details
For proper implementation of the WebIDL interface for the custom highlight API (Bug 1703961) a callback is needed that executes when elements are added to or removed from the setlike/maplike.
This callback is especially helpful in combination with adding functions for iterating over the setlike/maplike contents from C++ (Bug 1799890).
Comment 1•3 years ago
|
||
FWIW it'd probably be even better to just fix maplike/setlike to not require the JS set object (bug 1311198). I posted a WIP patch there that I was working on but never got around to finish.
Blocks: css-highlight-api-1
See Also: → 1311198
Comment 3•3 years ago
|
||
Add contentChange callback should be trivial, we could hook add()
and remove()
in binding code. But for helper for iterating might be a bit tricky (I commented in Bug 1799890).
Flags: needinfo?(echen)
You need to log in
before you can comment on or make changes to this bug.
Description
•