angular/packages/platform-browser/test
Doug Parker d45b7a91f9 fix(platform-browser): remove unused styles when associated host is dropped
This fixes a memory leak in `SharedStylesHost` where calling `removeHost` would leave any `<style>` or `<link>` tags associated with that host in the DOM. This is wasteful in general, and can create even more leaks if the same host is added and removed multiple times, causing styles to be consistently reappended but never removed.

BREAKING CHANGE: This removes styles when they appear to no longer be used by an associated `host`. However other DOM on the page may still be affected by those styles if not leveraging `ViewEncapsulation.Emulated` or if those styles are used by elements outside of Angular, potentially causing other DOM to appear unstyled.
2026-04-06 11:48:14 -07:00
..
browser feat(core): Set default Component changeDetection strategy to OnPush 2026-03-24 16:25:02 -07:00
dom fix(platform-browser): remove unused styles when associated host is dropped 2026-04-06 11:48:14 -07:00
security refactor(platform-browser): switching to relative imports within the platform-browser package (#60559) 2025-03-27 18:31:52 +00:00
static_assets refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
hydration_spec.ts Revert "fix(http): correctly cache blob responses in transfer cache (#67002)" 2026-03-04 09:19:10 -08:00
testing_public_spec.ts Revert "refactor(core): remove ComponentFactoryResolver & ComponentFactory from the api surface" 2026-04-06 09:24:11 -07:00