mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
36edf4870f
Destroy uses window.removeEventListener but the ChromeMessageBus doesn't actually depend on a window object. In practice this code is unlikely to ever be reached. If a tab is closed the entire context script JS process is killed so this is not an bug that would be very common or even reachable. That being said for correctness this should not be using window.