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

fix window.parent override: #2

Merged
merged 5 commits into from
Jul 3, 2019
Merged

fix window.parent override: #2

merged 5 commits into from
Jul 3, 2019

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Jul 3, 2019

  • remove directly setting 'window.parent', as it may result in infinite loops if window object leaks because 'window.top != window.parent' when traversing hierarchy
  • fix override of 'window.parent' in object proxy, window.parent overriden only if window.top is also overriden

- remove directly setting 'window.parent', as it may result in infinite loops if window object leaks because 'window.top != window.parent' when traversing hierarchy
- fix override of 'window.parent' in object proxy, window.parent overriden only if window.top is also overriden
@ikreymer ikreymer requested a review from N0taN3rd July 3, 2019 19:29
src/wombat.js Show resolved Hide resolved
src/wombat.js Outdated Show resolved Hide resolved
@N0taN3rd N0taN3rd self-requested a review July 3, 2019 20:25
@ikreymer ikreymer merged commit 5ad8ce8 into master Jul 3, 2019
@ikreymer ikreymer deleted the fix-parent branch July 11, 2019 00:34
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.

2 participants