Bug 790106 - Always start online check box does not work
Summary: Always start online check box does not work
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: thunderbird
Version: 16
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 16:50 UTC by David Rees
Modified: 2012-02-28 09:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-28 09:23:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 731145 0 None None None Never

Description David Rees 2012-02-13 16:50:15 UTC
Description of problem:
Thunderbird won't start in online mode.  I have to click the online/offline toggle button in the lower left to get thunderbird online each time I start it.

Version-Release number of selected component (if applicable):
thunderbird-10.0-1.fc16.x86_64

How reproducible:
Every time.

Steps to Reproduce:
1. Start Thunderbird.
2. Note that Thunderbird thinks it's offline.
3. Click online/offline button to go online.
  
Additional info:
After some research I think this is because I don't allow Network Manager to manage any of the interfaces on the computer.  In Gnome legacy/fallback mode the NetworkManager icon in the top-right shows a X.

It appears that the advanced setting "toolkit.networkmanger.disable" set to true should disable using NetworkManager to detect online status for Thunderbird, but setting this to true does not work.

Comment 1 Joe Zeff 2012-02-13 22:12:45 UTC
I have the same issue because NM mangles my DNS at boot, so I can't use it.  I went to Edit-Preferences-Advanced-Network & Disk Space-Offline Settings and selected Always start up Online, but it doesn't make the slightest bit of difference.  Thunderbird simply ignores the setting.  This is related to bug 785618 (https://bugzilla.redhat.com/show_bug.cgi?id=785618) referring to the fact that NM will always report that an interface is down if it doesn't manage it instead of checking and returning the actual status.

Comment 2 Martin Stransky 2012-02-14 07:23:55 UTC
I see. There's nothing we can do with it on the mozilla side, it's a bug in NM.

You can disable it by setting "network.manage-offline-status" to false. One of the way how to do it is to set "about:config" as a homepage in thunderbird (Edit->Preferences->General) and then choose "Go->Mail Start Page".

Comment 3 David Rees 2012-02-14 07:41:20 UTC
Setting network.manage-offline-status to false has no effect.

Surely it's a bug in Thunderbird that it can't ignore NetworkManager when there is at least one about:config setting that should configure Thunderbird to do so?

Yes - the NM bug should be fixed as well - but TB should respect toolkit.networkmanger.disable or network.manage-offline-status.

Comment 4 Martin Stransky 2012-02-14 07:54:00 UTC
(In reply to comment #3)
> Setting network.manage-offline-status to false has no effect.
> 
> Surely it's a bug in Thunderbird that it can't ignore NetworkManager when there
> is at least one about:config setting that should configure Thunderbird to do
> so?
> 
> Yes - the NM bug should be fixed as well - but TB should respect
> toolkit.networkmanger.disable or network.manage-offline-status.

Yes, you're right. So any of the options do not work for you, right?

Comment 5 David Rees 2012-02-14 08:07:13 UTC
(In reply to comment #4)
> Yes, you're right. So any of the options do not work for you, right?

Yes, I can't get any to work.

toolkit.networkmanager.disable = true does not work.
network.manage-offline-status = false does not work.

Comment 6 Martin Stransky 2012-02-14 15:03:26 UTC
The magic options seems to be:

pref("toolkit.networkmanager.disable", false);
pref("offline.autoDetect", true);

so setting offline.autoDetect to false should work for you.

Comment 7 David Rees 2012-02-14 18:21:01 UTC
I can confirm that setting toolkit.networkmanager.disable to true and offline.autoDetect to false works around the NetworkManager bug.

Comment 8 Joe Zeff 2012-02-14 18:50:58 UTC
I got there by going to Edit-Preferences-Advanced-General-Config Editor.  Toggling both of those options worked.  Still, it shouldn't ignore the option under Network & Diskspace-Offline that says "Always start online."  Selecting that should disable any network checks because if it doesn't, there's no point in having it."

Comment 9 Martin Stransky 2012-02-14 18:54:40 UTC
(In reply to comment #8)
> I got there by going to Edit-Preferences-Advanced-General-Config Editor. 
> Toggling both of those options worked.  Still, it shouldn't ignore the option
> under Network & Diskspace-Offline that says "Always start online."  Selecting
> that should disable any network checks because if it doesn't, there's no point
> in having it."

Yeah, that's a good point.

Comment 10 Martin Stransky 2012-02-28 08:52:09 UTC
I think we'd need an extra switch there - which enables/disables NM to control the online/offline state.

Comment 11 Martin Stransky 2012-02-28 09:23:34 UTC
Moving upstream https://bugzilla.mozilla.org/show_bug.cgi?id=731145


Note You need to log in before you can comment on or make changes to this bug.