Page MenuHomePhabricator

Font size and section expansion option order are nondeterministic
Closed, DeclinedPublic



  1. Visit http://localhost:8080/w/index.php?title=Special:MobileOptions in mobile view.
  2. Hard reload several times or add an artificial delay to mobileoptions#initLocalStorageElements() (e.g., a console.log('foo')).

The issue is present on the specialpages branch. I was unable to repro this issue in production.


Settings order is deterministic.


Sometimes expand all is on top of the font size changer and other times on the below it:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 4 2018, 4:40 PM

My interpretation is that the UI elements are in different modules and blindly insert themselves above the save button. This means that the visual order is dependent on module load order with the last load appearing furthest down.

@Niedzielski is this in the specialpages or master branch
Both addExpandAllSectionsToForm and addFontChangerToForm (which add the UI elements) are synchronous in the master branch.

@Jdlrobson, ah, I believe this was in specialpages as I was working on T183493 when I uncovered it. I'll update the description.

Niedzielski updated the task description. (Show Details)Jan 16 2018, 9:10 PM

@Niedzielski the screenshots show the old design - are you sure your specialpages branch is up to date and is applied on both MobileFrontend and Minerva?

Niedzielski closed this task as Declined.Jan 17 2018, 6:27 PM

Not an issue in specialpages HEAD. Thanks @Jdlrobson!