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 amp-state mutation bug when opening new tab #16772

Merged

Conversation

dreamofabear
Copy link

Fixes #15450.

/to @alabiaga

@codecov-io
Copy link

Codecov Report

Merging #16772 into master will decrease coverage by 0.96%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master   #16772      +/-   ##
==========================================
- Coverage   78.06%   77.09%   -0.97%     
==========================================
  Files         558      557       -1     
  Lines       40440    40383      -57     
==========================================
- Hits        31569    31134     -435     
- Misses       8871     9249     +378
Flag Coverage Δ
#integration_tests 12.58% <ø> (-22.28%) ⬇️
#unit_tests 77.09% <100%> (-0.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0cc179f...2fa4939. Read the comment docs.

@dreamofabear
Copy link
Author

Tested manually that this fixes repro case on the bug.

@dreamofabear dreamofabear merged commit 739d6cd into ampproject:master Jul 17, 2018
@dreamofabear dreamofabear deleted the amp-state-viewer-visible-bug branch July 17, 2018 17:08
gopanisandip pushed a commit to gopanisandip/amphtml that referenced this pull request Jul 27, 2018
* Check viewer hasBeenVisible instead of isVisible to support opening tabs.

* Fix other tests.

* Fix tests for real.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants