Closed micajuine-ho closed 3 years ago
Approved. Thanks again everyone for moving quickly to address.
This has been CP'd and released to stable (https://github.com/ampproject/amphtml/commits/2103122145004) and LTS (https://github.com/ampproject/amphtml/commits/2102200206009).
Back to @micajuine-ho to fill out the post mortem.
Cherry-pick request
Why does this issue meet the cherry-pick criteria?
Why is an LTS cherry-pick needed?
Bug is in LTS and we would like to fix this for publishers using LTS
List the steps to manually verify the changes in this cherry-pick
Opt into a version of AMP
Open dev tools console (Chrome only)
Search for NYT in Google
Select an AMP NYT article
Find the amp-carousel at the top of page (The Coronavirus Outbreak)
Swipe on carousel and ensure that the carousel scrolls instead of new Article being shown
Mini-postmortem
Summary
The
touchmove
event withinamp-carousel
's scroll container was being propagated up to the viewer, causing the top stories carousel to be moved rather than theamp-carousel
. This behavior had been present since October 2020 (earliest possible RTV to test with).This feature may have regressed sometime between June 2020 (when the publisher said they implemented amp-carousel 0.2) and October 2020 (last RTV we checked). We know that this issue has not worked since October 2020 (at the AMP level).
Another possibility is that #24324 may have intentionally removed the feature where amp-carousel consumes the entire
touchmove
/touchstart
event. No testing/documentation of this feature makes is seem like maintainers may not have been aware that this was a critical feature.We should continue to bisect/test PRs/RTVs until we can find where the regression occurs
In any case, we should re-evaluate our process so that owners of components are aligned to the critical feature set we support. One action item towards this for this feature is adding carousels inside the viewer to our manual QA test passes for every release
Another action item could be to include the ability to test RTVs more long term than 6mo back.
Impact
amp-carousel
, were mistakenly moved to the next top stories article. This probably impacted many users.Action Items
Make sure gesture based components to do not propagate these sorts of events to the viewer:
/cc @ampproject/release-on-duty @ampproject/wg-approvers @ampproject/cherry-pick-approvers