This has a very cryptic failure mode if you travel to China. Android will just tells you you can't connect to the internet :)
It's pretty easy to work around. You just go to detectportal.firefox.com/
But naturally you need to know what's gone wrong in the first place !