Function findWin is being called on top to find the window we're looking for by recursively going down to all child realms of top. However, opened windows have their own top, so when they create a new child frame, findWin is called on the original top and not the opened window top, which naturally makes findWin to not find the window and therefore gives up on it and not applies protection to it.
Fixed by making findWin work on all tracked opened windows' tops instead of just the original top.
Fix attempt for #83
Cool bug.
Function
findWin
is being called ontop
to find the window we're looking for by recursively going down to all child realms of top. However, opened windows have their owntop
, so when they create a new child frame,findWin
is called on the originaltop
and not the opened windowtop
, which naturally makesfindWin
to not find the window and therefore gives up on it and not applies protection to it.Fixed by making
findWin
work on all tracked opened windows' tops instead of just the original top.