angular/packages/common/http/src
arturovt ca637fe6a9 fix(http): cleanup JSONP script listeners once loading completed (#57877)
This commit removes event listeners from the `script` element once loading is
complete. If the element is not garbage collected properly, in Firefox, the script
element still appears in the memory tree view, captured by
`__zone_symbol__loadfalse -> HTMLScriptElement -> GC Roots`. We should always be good
citizens and clean up event listeners when we no longer need them, as browser's garbage
collectors work differently. Calling `remove()` on the node doesn't guarantee that the
node can be collected.

PR Close #57877
2024-10-01 08:08:40 +00:00
..
backend.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
client.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
context.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
errors.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
fetch.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
headers.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
interceptor.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
jsonp.ts fix(http): cleanup JSONP script listeners once loading completed (#57877) 2024-10-01 08:08:40 +00:00
module.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
params.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
private_export.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
provider.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
request.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
response.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
transfer_cache.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
xhr.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
xsrf.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00