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

Do not execute pass callbacks if their window went away. #3904

Merged
merged 1 commit into from
Jul 6, 2016

Conversation

cramforce
Copy link
Member

This could happen in tests if multiple windows had different lifetime. Also turns timer into a service but does not yet fix all callsites.

Fixes #3709 but all the other timer usages could lead to similar issues.

This could happen in tests if multiple windows had different lifetime. Also turns timer into a service but does not yet fix all callsites.

Fixes ampproject#3709 but all the other timer usages could lead to similar issues.
@muxin
Copy link
Contributor

muxin commented Jul 6, 2016

LGTM

@muxin muxin added LGTM and removed NEEDS REVIEW labels Jul 6, 2016
@mkhatib
Copy link
Contributor

mkhatib commented Jul 6, 2016

Did this fix #3315 by any chance?

@cramforce
Copy link
Member Author

@mkhatib I haven't tried, but it might.

@cramforce
Copy link
Member Author

CC @dvoytenko FYI

@cramforce cramforce merged commit 688ee8d into ampproject:master Jul 6, 2016
@cramforce cramforce deleted the timer-service branch July 6, 2016 18:13
ariangibson pushed a commit to Mixpo/amphtml that referenced this pull request Sep 7, 2016
…3904)

This could happen in tests if multiple windows had different lifetime. Also turns timer into a service but does not yet fix all callsites.

Fixes ampproject#3709 but all the other timer usages could lead to similar issues.
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.

Resource scans happen in test iframes after they are removed
3 participants