Closed Bug 667596 Opened 15 years ago Closed 1 year ago

Don't use the "browser.offline" pref to determine offline state, as it has been removed from Firefox

Categories

(Other Applications Graveyard :: ChatZilla, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: steffen.wilberg, Assigned: rginda)

References

Details

In bug 663253, I removed the "browser.offline" pref from Firefox 7. That was used to persist an user-initiated offline mode across sessions. So Chatzilla should stop getting and setting that pref: http://mxr.mozilla.org/comm-central/search?string=%22browser.offline%22&find=irc Just get and set client.iosvc.offline instead.
The feature it represented is gone entirely? Should be still be using "network.online" for XULRunner (ChatZilla as an app)?
Correct, nobody is getting or setting the browser.offline pref except Chatzilla... You can ignore the network.online pref as well. When that pref is *locked*, Firefox and SeaMonkey disable their "Work Offline" UI: 5963 var offlineLocked = gPrefService.prefIsLocked("network.online"); 5964 if (offlineLocked) 5965 this._uiElement.setAttribute("disabled", "true"); Getting or setting the pref value is useless anyhow. See http://mxr.mozilla.org/comm-central/search?string=network.online&find=&findi=&filter=%5E%5B%5E%5C0%5D*%24&hitlimit=&tree=comm-central You already observe "network:offline-status-changed" and get and set iosvc.offline. That's necessary and sufficient. I guess you can remove updateOfflineFromPref and updatePrefFromOffline altogether.
In my user.js, I had user_pref("browser.offline", true); to start the browser offline. I use that to prevent the 50 open tabs to load all pages when firefox starts. How can I do that now?
(In reply to Jens Martin Schlatter from comment #3) > How can I do that now? Preferences -> General -> Startup -> "Don't load tabs until selected"
I have never seen this. Thank you!
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.