Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[dom] Implement AbortSignal.any() memory management"
This reverts commit c2b6a48. Reason for revert: New test wpt_internal/dom/abort/abort-signal-memory-tests.https.any.html likely causes a leak: https://ci.chromium.org/ui/p/chromium/builders/ci/WebKit%20Linux%20Leak/47389/overview Original change's description: > [dom] Implement AbortSignal.any() memory management > > This is the second part of the AbortSignal.any() prototype; it > implements the memory management described in [1]. The idea is as > follows: > > - A signal is "settled" if it can no longer emit events associated > with the composition type (abort or priority). For abort, this > means either the signal is aborted or it never will be; for > priority, this means the priority can no longer change. A signal > becomes settled if it aborts (for abort composition), if the > signal's associated controller has been GCed (implemented with a > prefinalizer), or if it's a composite signal and all of its parents > have been settled. > > - Unsettled composite signals are kept alive as long as their effects > (active event listeners, abort/priority algorithms) can be > observed. This is implemented by making AbortSignal inherit from > LazyActiveScriptWrappable (only enabled for composite signals) and > determining activity based on settled state + active listeners and > algorithms. This allows AbortSignalCompositionManager to hold weak > references to all signals. > > This also adds a number of wpt_internal/ tests using a finalization > registry to test signal lifetimes. The tests are mostly parameterized with an interface type so we can run these for TaskSignal as well > (follow-up). > > [1] https://docs.google.com/document/d/1LvmsBLV85p-PhSGvTH-YwgD6onuhh1VXLg8jPlH32H4/edit?usp=sharing > > Bug: 1323391 > Change-Id: I989c937e5359fffad72ff2c26068cc49b28e1a10 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3704585 > Commit-Queue: Scott Haseley <shaseley@chromium.org> > Reviewed-by: Mason Freed <masonf@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1098063} Bug: 1323391 Change-Id: Icc50f231f660afeb7d1d7f77211f3c7ffbf41725 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4200932 Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Jonathan Lee <jonathanjlee@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Owners-Override: Jonathan Lee <jonathanjlee@google.com> Cr-Commit-Position: refs/heads/main@{#1098105}
- Loading branch information
1 parent
5918a20
commit 4efe206
Showing
11 changed files
with
34 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.