For developing web sites, I define test domains in /etc/hosts : example.org

I can then access example.org in the browsers.

However I when the Network Manager is not connected to any network, Firefox is not able to access example.org, it gives an error similar to DNS failure. It cannot even load the localhost, if I try to access it by the host name of my machine - i.e. http://rohit-box.

I can access example.org, rohit-box, etc. in Chrome. I can also ping them successfully. Thus I have isolated the problem to Firefox.

I am using Linux Mint 13 Cinnamon, Firefox 19.

Edit - I also tried resetting Firefox from the Help menu. The issue persists.

  • Does the problem persist when you restart Firefox while NM is disconnected? – peterph Mar 22 '13 at 20:22
  • @peterph,Yes the problem remains even if I restart Firefox. – Rohit Mar 23 '13 at 4:03

It appears firefox has switched to "Offline Mode", based on the Network Manager's reported status. You can disable this behaviour by setting "toolkit.networkmanager.disable" (all lowercase) to true in about:config.

More info here

  • The preference did not exist, so I added it. However, the problem was not fixed. – Rohit Mar 24 '13 at 5:34
  • I checked the Offline item in the File menu - Firefox doesn't go into "offline mode" in this situation. – Rohit Mar 24 '13 at 5:55
  • 1
    Same answer as other guy, kind of: the key is toolkit.networkmanager.disable (note the lower case here). – CameronNemo Jun 29 '14 at 11:13

add your domain to your ipv6 localhost example.org

::1     ip6-localhost ip6-loopback example.org
  • Tested using Firefox 32 on Linux Mint 17. Does not work. – Rohit Sep 25 '14 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.