Bug 786419 - Part 1 - Provide way to "set network offline" per app r=jduell
Bug 786419 - Part 2 - Modify calls to NS_IsOffline to check for NS_IsAppOffline as well r=jduell,sicking
Bug 786419 - Part 3 - Have the JS TCP sockets check if the app is offline r=jduell
Bug 786419 - Part 4 - Have UDP sockets check if the app is offline r=mcmanus
Bug 786419 - Part 5 - Check app offline status in PeerConnection.js r=rjesup
Bug 786419 - Part 6 - Disable HTMLDNSPrefetches for offline apps r=jduell
Bug 786419 - Part 7 - xpcshell test for HTTP per-app offline r=jduell
Bug 786419 - Part 8 - Several improvements to per-app-offline behaviour r=jduell
Make GetAppId() pure-virtual and add implementation for TCPSocketParent, UDPSocketParent, and one for Necko parent that returns UNKNOWN_APP_ID
Change nsIOService to use IsNeckoChild instead of XRE_ method.
Include nsThreadUtils.h (for nsRunnable and dispatchToMainThread) and NeckoCommon for IsNeckoChild.
Make HttpChannelParent set LOAD_ONLY_FROM_CACHE, LOAD_FROM_CACHE and LOAD_NO_NETWORK_IO when offline.
Bug 786419 - Part 9 - Add better comments to nsIOService. r=jduell
Bug 786419 - Part 10 - Fix app wrongly reporting an offline status r=jduell
In order for the content process to have an up-to-date table of which apps are
offline, we send that status in TabParent::LoadURL. However, the fact that
IsAppOffline returned true when the browser was offline, caused us to send
the offline status to content processes, and caused Bug 1058718.
This also updates the UUID for nsIOService.
Bug 786419 - Part 11 - Address possible issues with offline notifications in nsGlobalWindow and WorkerPrivate r=bent
Part 2 of this bug adds nsGlobalWindow as an observer for the app-offline
notification. There are however a few corner cases we haven't handled.
For example: If the browser is offline, and an app is made offline,
there should be no offline event dispatched.
Also, WorkerPrivate should ignore offline events that cause no change
in its offline state.
Bug 786419 - Part 12: Add getAppOfflineState to nsIIOService r=jduell