* Checks whether one window is a descendant of another by climbing * the parent chain. * @param {?Window} ancestor potential ancestor window * @param {?Window} descendant potential descendant window * @return {boolean}
(ancestor, descendant)
| 138 | * @return {boolean} |
| 139 | */ |
| 140 | function isDescendantWindow(ancestor, descendant) { |
| 141 | for (let win = descendant; win && win != win.parent; win = win.parent) { |
| 142 | if (win == ancestor) { |
| 143 | return true; |
| 144 | } |
| 145 | } |
| 146 | return false; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Removes any listenFors registered on listenSentinel that do not have |
no outgoing calls
no test coverage detected