[Webkit-unassigned] [Bug 254844] Intermittent removal of adoptedStyleSheet CSSStyleSheet instances when assigning adoptedStyleSheet array

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 12 07:54:47 PDT 2023


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

--- Comment #9 from Chris Dumez <cdumez at apple.com> ---
(In reply to Ryosuke Niwa from comment #8)
> The problem occurs on this line (in AdoptedStyleSheetsStyles's addStylesTo):
> target.adoptedStyleSheets = [...target.adoptedStyleSheets,
> ...this.styleSheets];
> 
> Here, somehow ...target.adoptedStyleSheets is turning out to be empty even
> though the length of it is initially 1 immediately before it. Storing items
> in a real array and spreading that array fixes the problem so this is some
> GC issue with observable array.

I am using [CachedAttribute] in WebIDL to cache the observable array in the JSShadowRoot js wrapper.

-- 
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/20230412/2b87e312/attachment-0001.htm>


More information about the webkit-unassigned mailing list