Right now, when chaining promises that aren't exclusive, it requires to copy the resolve/reject value from one promise to the other as the promise itself owns the data that will be passed around. This prevents being able to chain promises for objects that do not have a copy constructor (like unique_ptr). Instead, we could either have the chained promise keeps a reference to the original promise, or store the data in a refcounted container and share that across instead.
<rdar://problem/116664254>
Pull request: https://github.com/WebKit/WebKit/pull/18840
Committed 269241@main (c1b873c21745): <https://commits.webkit.org/269241@main> Reviewed commits have been landed. Closing PR #18840 and removing active labels.