Bug 238281 - Implement ObservableArray
Summary: Implement ObservableArray
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 245689
Blocks: 260716
  Show dependency treegraph
 
Reported: 2022-03-23 12:45 PDT by Alex Christensen
Modified: 2023-08-29 20:36 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.