Skip to content

Child frames are overlooked inside opened windows#84

Merged
weizman merged 21 commits intomainfrom
fix-issue-83
Jun 8, 2023
Merged

Child frames are overlooked inside opened windows#84
weizman merged 21 commits intomainfrom
fix-issue-83

Conversation

@weizman
Copy link
Copy Markdown
Member

@weizman weizman commented Jun 7, 2023

Fix attempt for #83

Cool bug.

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.

@weizman weizman changed the title attempt to fix issue 83 child frames are overlooked inside opened windows Jun 7, 2023
@weizman weizman temporarily deployed to github-pages June 7, 2023 11:20 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 7, 2023 11:33 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 7, 2023 11:53 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 7, 2023 12:02 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 7, 2023 12:04 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 7, 2023 12:17 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 7, 2023 12:19 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 8, 2023 03:53 — with GitHub Pages Inactive
@weizman weizman marked this pull request as ready for review June 8, 2023 04:04
@weizman weizman temporarily deployed to github-pages June 8, 2023 04:05 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 8, 2023 04:39 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 8, 2023 05:54 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 8, 2023 05:57 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 8, 2023 06:21 — with GitHub Pages Inactive
@weizman weizman temporarily deployed to github-pages June 8, 2023 06:22 — with GitHub Pages Inactive
@weizman weizman changed the title child frames are overlooked inside opened windows Child frames are overlooked inside opened windows Jun 8, 2023
@weizman weizman merged commit 23ac14c into main Jun 8, 2023
@weizman weizman deleted the fix-issue-83 branch June 8, 2023 06:28
@weizman weizman mentioned this pull request Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant