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

Reduce occurrence of "Detected iframe close" error #426

Merged
merged 12 commits into from
May 1, 2023

Conversation

oscarleonnogales
Copy link
Contributor

Description

We're seeing rare cases when we see Detected iframe close before second render has a chance to finish in slow browsers with poor connection. With this change, we're adding an additional check before we decide to throw the error.

Here is the example:
https://github.com/krakenjs/zoid/blob/main/src/parent/parent.js#L866

Why are we making these changes? Include references to any related Jira tasks or GitHub Issues

https://paypal.atlassian.net/browse/LI-7432

@oscarleonnogales oscarleonnogales requested a review from a team as a code owner April 26, 2023 16:39
src/parent/parent.js Outdated Show resolved Hide resolved
@gregjopa gregjopa changed the title Iframe issue Reduce occurance of "Detected iframe close" error Apr 27, 2023
@gregjopa gregjopa changed the title Reduce occurance of "Detected iframe close" error Reduce occurrence of "Detected iframe close" error Apr 27, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2023

Codecov Report

Patch coverage: 91.66% and project coverage change: -0.06 ⚠️

Comparison is base (e2825bb) 95.64% compared to head (caff2e7) 95.59%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #426      +/-   ##
==========================================
- Coverage   95.64%   95.59%   -0.06%     
==========================================
  Files          18       18              
  Lines        1217     1225       +8     
==========================================
+ Hits         1164     1171       +7     
- Misses         53       54       +1     
Impacted Files Coverage Δ
src/child/child.js 95.83% <75.00%> (-0.95%) ⬇️
src/parent/parent.js 95.66% <100.00%> (+0.04%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gregjopa gregjopa merged commit 5343277 into krakenjs:main May 1, 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.

3 participants