Bug 839757: UDP Server Socket support in Necko - Interface definition r=honzab.moz, a=blocking-b2g:leo+
Bug 839757: UDP Server Socket support in Necko - Implementation r=honzab.moz, a=blocking-b2g:leo+
Bug 839757: UDP Server Socket support in Necko - Net glue r=honzab.moz, a=blocking-b2g:leo+
Bug 839757: UDP Server Socket support in Necko - Tests r=honzab.moz, a=blocking-b2g:leo+
Bug 822712 - Simple Push notifications for b2g - Interfaces sr=jonas, a=blocking-b2g:leo+
Bug 822712 - SimplePush WebSocket implementation, r=dougt, jlebar, jst. a=blocking-b2g:leo+

This patch sets up the build.

Push.js is the object that sits on navigator as navigator.pushNotification.
PushService always runs as soon as Gecko starts.

Folded:
Bug 822712 - setup, initialization
* * *
Bug 822712 - Notify app/site using system messages
* * *
Bug 822712 Extra notification, bad code but needed to prevent massive MQ conflicts
* * *
Bug 822712 - Parallel requests prohibited for sync. Needs tuning.
* * *
Bug 822712 - Protocol implementation
* * *
Bug 822712 - Use origin instead of manifest as identity for sites. Use DOM principal too.
* * *
Lots of changes to system messages to try out things. WIP
* * *
Minor PushService fixes for Android.
* * *
Add Push[Service] files to the Android package.
* * *
Bug 822712 - Remove registration sync attempt in register callback
* * *
Bug 822712 - Don't clear pending requests on websocket disconnect
* * *
Bug 822712 - Mark creation time of request
* * *
Bug 822712 - Retry conflicting channelIDs
* * *
Bug 822712 - Webapps.jsm cannot be imported in child processes.

This will prevent us from delivering system messages to the page specified in the manifest.
FIXME
* * *
Bug 822712 - Three changes

Do not fake desktop notifications, they are not working.
Add necko_websocket.xpt to b2g build.
onStop is not the same as onServerClose. the status is a NS_ error code. This needs further fixes
* * *
Bug 822712 - Prefs exceptions
* * *
Bug 822712: Use Preferences to prevent exceptions
* * *
Bug 822712 - Start WebSocket if we have registrations
* * *
Bug 822712 - Reconnect on socket error
* * *
Bug 822712 - Send channelIDs in hello
* * *
Bug 822712 - Unregister should clear local database first
* * *
Retry connecting to server with exponential backoff
Bug 822712 - Start UDP socket on boot if required. r=dougt, jlebar, jst, a=blocking-b2g:leo+