Steps to reproduce:
- Open a browser on a mobile device or manipulate your desktop browser to load the mobile version of Wikipedia.
- Make sure you are neither logged into Phabricator nor into your global Wikimedia account.
- Go to Wikipedia, log into your global Wikimedia account.
- Go to Phabricator, log in using your MediaWiki account.
Expected result: You are sent the mediawiki.org, logged in automatically (since your are logged in on Wikipedia), and asked to allow logging in Phabricator using OAuth.
Actual result: Special:Login is loaded and reloaded in an endless loop.
When you visit mediawiki.org before, it works as expected. In the desktop version it too works as expected, so it seems to be caused by some unfortunate combination of OAuth, SUL, and the mobile version.
I tested this both with Firefox on an actual mobile device, and with desktop Vivaldi with user agent set to Firefox/Android.