Bug 238281

Summary: Implement ObservableArray
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: BindingsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ashvayka, cdumez, ggaren, graouts, rego, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=245648
https://bugs.webkit.org/show_bug.cgi?id=245579
Bug Depends on: 245689    
Bug Blocks: 260716    

Description Alex Christensen 2022-03-23 12:45:20 PDT
It's specified by https://webidl.spec.whatwg.org/#idl-observable-array
It's needed by our CSSColor implementation begun in https://bugs.webkit.org/show_bug.cgi?id=238208
Comment 1 Radar WebKit Bug Importer 2022-03-30 12:46:15 PDT
<rdar://problem/91061145>
Comment 2 Chris Dumez 2022-09-26 08:55:24 PDT
We also need this for DocumentOrShadowRoot.adoptedStyleSheets:
https://w3c.github.io/csswg-drafts/cssom-1/#extensions-to-the-document-or-shadow-root-interface

I'll use a FrozenArray instead for now.
Comment 3 Chris Dumez 2022-10-01 11:35:10 PDT
I added some initial support in https://commits.webkit.org/255061@main. It means you *can* have the behavior of an ObservableArray now but it is not yet as convenient as using ObservableArray<FOO> in the IDL.