mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Prior to this commit, a memory leak occurred when the `abort` listener was not removed from the `AbortSignal`. We introduced a fix to remove the event listener, but it was erroneously stored on the `taskData`, which is a shared global object. Consequently, when something attempted to remove an event listener, it immediately removed the last stored abort listener. As a result, events would never be canceled. We have now rectified this by storing the remove abort listener function directly on the task itself. This adjustment ensures that the abort listener is tied only to the specific task. When the `abort` function is called, it cancels the task. Therefore, it is safe to associate the cleanup function directly with the task. Closes: #56148 PR Close #56160 |
||
|---|---|---|
| .. | ||
| browser.spec.ts | ||
| custom-element.spec.js | ||
| define-property.spec.ts | ||
| element.spec.ts | ||
| FileReader.spec.ts | ||
| geolocation.spec.manual.ts | ||
| HTMLImports.spec.ts | ||
| MediaQuery.spec.ts | ||
| messageport.spec.ts | ||
| MutationObserver.spec.ts | ||
| Notification.spec.ts | ||
| registerElement.spec.ts | ||
| requestAnimationFrame.spec.ts | ||
| shadydom.spec.ts | ||
| WebSocket.spec.ts | ||
| Worker.spec.ts | ||
| XMLHttpRequest.spec.ts | ||