MobileFrontend uses localStorage to keep track of expandedSections indefinitely. This causes localStorage to grow.
Ideally this should use session storage as this information is only really needed inside a session.
https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage
QA steps
- Visit beta cluster page on a mobile device with headings e.g. https://en.m.wikipedia.beta.wmflabs.org/wiki/Albert_Einstein sections should be collapsible by default.
- Expand 3 sections
- Click a link in one of the 3 sections
- Hit the back button to go back to the Albert Einstein page.
- Expected: when going back the 3 sections you opened in step 2 should still be open.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T253137#6765940 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T253137#6773376 |