Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child frames are overlooked inside opened windows #84

Merged
merged 21 commits into from
Jun 8, 2023
Merged

Conversation

weizman
Copy link
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
5 checks passed
@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.

None yet

1 participant