Page MenuHomePhabricator

Font changer does not save changes consistently on mobile web
Closed, ResolvedPublic0 Estimated Story Points

Description

Background

Initially reported by @ABorbaWMF in T185166: [Spike, 2hrs] Can we detect back button clicks after changing font

Steps to recreate

  1. Load an article on the mobile site in iOS Safari
  2. Tap settings in the main menu
  3. Change font to X-large
  4. Tap back (browser hardware button) and view the article
  5. Tap settings
  6. Change to Small
  7. Tap back and view the article

Observed Behavior
Font does not change on back button

Reported on the following devices/browsers

  • iPhone X iOS 11 - Safari
  • iPhone 8 iOS 11 - Safari
  • iPhone 6s iOS 9 - Safari & Chrome & Firefox - Does NOT happen on UC Browser

Developer notes

As noted in the original bug (T185166) this is an upstream problem with the iOS platform and there doesn't appear to be anything we can do our end except report this upstream.

QA Results - Prod

ACStatusDetails
1T187170#7620135

Event Timeline

Jdlrobson changed the task status from Open to Stalled.Feb 13 2018, 6:43 PM
Jdlrobson updated the task description. (Show Details)

Since we don't have consistent instructions to replicate this we can't create a minimal test case just yet. If we can do that we can file it at https://bugs.webkit.org

I suspect that when hitting back Apple's cache is kicking in, and it's ignoring changes to localStorage.

Not really sure how to fix this.

Is is still a problem?

Change 742771 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/MobileFrontend@master] Fix font changer with back/forward cache

https://gerrit.wikimedia.org/r/742771

Jdlrobson changed the task status from Stalled to Open.Nov 30 2021, 5:40 PM

@ovasileva this still seems to be a problem, but only for users changing the font size multiple times, but looks like it can be fixed by the above patch. This was also a good time to clean up that code.

Pushing back to you to prioritize reviewing and merging that patch.

Change 742771 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Fix font changer with back/forward cache

https://gerrit.wikimedia.org/r/742771

Jdlrobson renamed this task from Font changer does not save changes consistently to Font changer does not save changes consistently on mobile web.Dec 21 2021, 5:35 PM
Jdlrobson assigned this task to Edtadros.
Jdlrobson set the point value for this task to 0.
Jdlrobson updated the task description. (Show Details)
Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device: devices below on browserstack

Test Artifact(s):

QA Steps
  1. Load an article on the mobile site in iOS Safari
  2. Tap settings in the main menu
  3. Change font to X-large
  4. Tap back (browser hardware button) and view the article
  5. Tap settings
  6. Change to Small
  7. Tap back and view the article
  8. Observed Behavior
  9. ✅ AC1: Font does not change on back button

Reported on the following devices/browsers

iPhone X iOS 11 - Safari

RegularLargeSmall
Screen Shot 2022-01-13 at 9.32.10 AM.png (908×534 px, 206 KB)
Screen Shot 2022-01-13 at 9.32.41 AM.png (909×534 px, 255 KB)
Screen Shot 2022-01-13 at 9.33.05 AM.png (909×534 px, 209 KB)

iPhone 8 iOS 11 - Safari

RegularLargeSmall
Screen Shot 2022-01-13 at 9.38.01 AM.png (793×537 px, 284 KB)
Screen Shot 2022-01-13 at 9.38.28 AM.png (854×541 px, 295 KB)
Screen Shot 2022-01-13 at 9.38.57 AM.png (856×538 px, 280 KB)

iPhone 6s iOS 9 - Safari & Chrome & Firefox - Does NOT happen on UC Browser
Safari

RegularLargeSmall
Screen Shot 2022-01-13 at 9.41.19 AM.png (840×524 px, 194 KB)
Screen Shot 2022-01-13 at 9.41.54 AM.png (845×528 px, 217 KB)
Screen Shot 2022-01-13 at 9.42.22 AM.png (842×527 px, 207 KB)

Chrome

RegularLargeSmall
Screen Shot 2022-01-13 at 9.45.07 AM.png (827×530 px, 237 KB)
Screen Shot 2022-01-13 at 9.45.37 AM.png (828×527 px, 237 KB)
Screen Shot 2022-01-13 at 9.46.03 AM.png (829×528 px, 256 KB)

Firefox

RegularLargeSmall
Screen Shot 2022-01-13 at 9.48.45 AM.png (843×528 px, 215 KB)
Screen Shot 2022-01-13 at 9.49.12 AM.png (844×529 px, 245 KB)
Screen Shot 2022-01-13 at 9.49.42 AM.png (849×531 px, 234 KB)