Firefox doesn’t recognise network connection

If I open Firefox before starting network connection (tethering or hotspot with my mobile) Firefox doesn’t recognize networks connection and doesn’t access the net. If I restart Firefox it works normally.
Note that when Firefox doesn’t works other browsers (eg Chromium) works normally.