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 closing the page attachment through popping the history state. #20443

Conversation

gmajoulet
Copy link
Contributor

Fix closing the page attachment through popping the history state.
If the attachment was not fully open, ie: user was swiping to open it but actually closed it, there's no history state to pop.

#20209

@@ -452,7 +452,19 @@ export class AmpStoryPageAttachment extends AMP.BaseElement {
* @private
*/
close_() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the description of the method please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@Enriqe Enriqe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it looks like the percy diff caught a bug?

@gmajoulet gmajoulet force-pushed the attachment_component_pop_state_when_needed branch from 7e84530 to 74bf726 Compare January 18, 2019 22:54
@gmajoulet
Copy link
Contributor Author

Looks like Percy was a flake ://
PTAL

@gmajoulet gmajoulet merged commit d3ef8d5 into ampproject:master Jan 28, 2019
jsalgueiro added a commit to jsalgueiro/amphtml that referenced this pull request Jan 29, 2019
* commit '273e1fe2ff7719bf555c9614afe19e14231e4dae':
  Changes to make carousel v2 work with lightbox gallery. (ampproject#20558)
  ✅ Additional carousel v2 end to end tests (ampproject#20522)
  ✨Get placeholder background from `placeholder` srcs (ampproject#20563)
  🐛Reparent placeholder to account for incorrect positioning (ampproject#20562)
  Fix amp-sidebar keyboard event forwarding (ampproject#20557)
  📖 Update `amp-video-docking` CSS reference (ampproject#20571)
  ✅Validate `dock` for `amp-youtube` (ampproject#20554)
  ✅Validate `dock` for `amp-brightcove` (ampproject#20567)
  ✅Add overflow prevention test (ampproject#20546)
  ✅Fix amp-date-display flakes (ampproject#20568)
  temporarily disable saucelabs because of flakiness (ampproject#20566)
  Fix closing the page attachment through popping the history state. (ampproject#20443)
  ✨Add AMP layer to E2E tests (ampproject#20502)
  add avenues for CLA help (ampproject#20521)
  provide more details on design reviews (ampproject#20533)
  🗑️ Remove `video-dock` experiment guard. (ampproject#20413)
  ♻️ amp-recaptcha-input: Allow passing the recaptcha API url from the frame (ampproject#20539)
  🐛 Fix amp-list documentation (ampproject#20553)
  launch amp-list-viewport-resize to 75% in prod (ampproject#20552)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants